Skip to content
E
Educatum
Qwen Dense + GQAVerified Qwen/Qwen3-8B config.json

Qwen3-8B VRAM & GPU Requirements Calculator

Qwen3-8B requires 15.3 GiB in FP16, 7.6 GiB in FP8, and 4.7 GiB in GGUF Q4_K_M for weights alone (36 layers · GQA (32Q / 8KV = 4× KV savings)). At 8K context (batch=1, FP16 KV), KV-cache adds 1.13 GiB (4.0× smaller than MHA).

FP16 Inference (8K)
17.9 GiB
15.3 GiB weights
FP8 Weights + FP8 KV
9.7 GiB
7.6 GiB weights
GGUF Q4_K_M (8K)
7.2 GiB
4.7 GiB weights
32K KV-Cache (FP16)
4.50 GiB
4.0× vs MHA

Can Your GPU or Mac Run Qwen3-8B? (8K Context, Batch=1)

Pre-computed fit verdict and estimated decode speed across RTX 4090/3090, Apple Silicon Unified Memory, and NVIDIA H100 clusters.

Hardware RigQ4_K_M (7.2 GiB)FP8 (9.7 GiB)FP16 (17.9 GiB)
1× RTX 4090 (23.9 GiB usable)FIT · ~127 tok/sFIT · ~89 tok/sFIT · ~45 tok/s
2× RTX 4090 / 3090 (47.8 GiB usable)FIT · ~118 tok/sFIT · ~97 tok/sFIT · ~60 tok/s
Apple M4 Max (128 GiB Unified · 96 GiB GPU)FIT · ~63 tok/sFIT · ~45 tok/sFIT · ~22 tok/s
Apple M3 Ultra (256 GiB Unified · 192 GiB GPU)FIT · ~95 tok/sFIT · ~67 tok/sFIT · ~33 tok/s
1× H100 SXM (79.6 GiB usable)FIT · ~421 tok/sFIT · ~297 tok/sFIT · ~148 tok/s
4× H100 SXM (318.4 GiB usable)FIT · ~306 tok/sFIT · ~282 tok/sFIT · ~222 tok/s
8× H100 SXM (636.8 GiB usable)FIT · ~235 tok/sFIT · ~227 tok/sFIT · ~203 tok/s
8× H200 SXM (1,123.2 GiB usable)FIT · ~241 tok/sFIT · ~235 tok/sFIT · ~217 tok/s

Interactive Qwen3-8B VRAM & Roofline Simulator

1. Model & Workload

GQA · 8.2B Dense

36 layers · GQA (32Q / 8KV = 4× KV savings)

Execution Mode
Weight Precision (Datacenter & GGUF)
KV:
8,192 tok
1 reqs

2. Target GPU / Mac Silicon

23.9 GiB Usable · 1.01 TB/s eff.
GPU Count (Tensor Parallel)
FITS IN VRAM (+6.0 GiB headroom)
17.9 / 23.9 GiB usable (75%)

Fits cleanly across 1× RTX 4090 24 GiB with headroom.

Total VRAM
17.9 GiB
Weights 15.3 GiB (FP16)
KV-Cache
1.1 GiB
4.0× vs MHA
Decode / User
~44.7 tok/s
HBM Bound
Cluster Output
~45 tok/s
AI 0.9 FLOP/B

VRAM Allocation vs. Hardware Capacity

Binary GiB (1 GiB = 2³⁰ B) · Usable VRAM excludes ECC/OS & per-GPU CUDA/NCCL buffers

Dashed line = Usable VRAM
Used: 17.9 GiB · Usable: 23.9 GiB (75%) 23.9 GiB Usable Weights: 15.3 GiBKV-Cache: 1.1 GiBAct + CUDA: 1.5 GiB educatum.com/kv-cache

Decode Arithmetic Intensity Roofline

AI 0.9 vs Ridge 327 FLOPs/B
1416642561024 Ridge: 327 FLOPs/B · 330 TFLOPS Memory-Bandwidth Bound (0.9 FLOP/B) Arithmetic Intensity (FLOPs / Byte, log scale) educatum.com/kv-cache
Canonical URL stays clean; click Copy Shareable Link to share your exact slider config.
Qwen3-8B Dense · KV_tok = 2 × 36L × 8 KV heads × 128d × 2B = 144.0 KiB/tok (4.0× vs MHA)
Decode Step Read: 15.3 GiB active weights + 1.13 GiB KV-cache → AI = 0.93 FLOPs/Byte (Memory-Bandwidth Bound; BW in decimal GB/s)

Compare Other LLM VRAM Requirements

All 14 Models →

Frequently Asked Questions

Can 1× or 2× RTX 4090 (24 GiB / 48 GiB) run Qwen3-8B?

At 8K context (batch=1) in GGUF Q4_K_M, Qwen3-8B needs 7.2 GiB total VRAM including CUDA runtime overhead (4.7 GiB weights). Single 23.9 GiB usable RTX 4090: Fits at ~127 tok/s. Dual 47.8 GiB usable (2× 4090/3090): Fits Q4_K_M cleanly (~118 tok/s).

Can an Apple M4 Max (128 GiB) Mac Studio / MacBook Pro run Qwen3-8B?

An Apple M4 Max 128 GiB reserves 96 GiB wired GPU memory by default. In GGUF Q4_K_M (7.2 GiB needed at 8K), it fits on M4 Max 128 GiB at ~63.3 tok/s.

How much KV-cache does Qwen3-8B use at 32K context?

Qwen3-8B uses GQA, giving a 4.0× KV-cache reduction vs standard MHA. At 32,768 context (batch=1, FP16 KV), KV-cache occupies 4.50 GiB.

Try keywords like RoPE, FlashAttention, DPO, or Blind 75.