Can I run Qwen3 8B?
Last updated • By Will Schulz
Qwen3 8B needs about 7.37 GB of memory at 4-bit (Q4_K_M) with an 8K-token context, so it fits on a single 8 GB GPU, or runs on a Mac with 24 GB of unified memory. At 16-bit it needs 19.1 GB, so it fits on a single 24 GB GPU such as the RTX 3090, RTX 4090 or L4, or runs on a Mac with 24 GB of unified memory.
How much memory does Qwen3 8B need?
| Precision | Weights | Total, 8K context | Total, 32K context | Total, 128K context |
|---|---|---|---|---|
| 16-bit (BF16 / FP16) | 16.4 GB | 19.1 GB | 22.7 GB | 37.2 GB |
| 8-bit (Q8_0) | 8.71 GB | 11.2 GB | 14.8 GB | 29.3 GB |
| 4-bit (Q4_K_M) | 5.01 GB | 7.37 GB | 11.0 GB | 25.5 GB |
Total = weights + FP16 KV cache + 3% of the weights + 1 GB of runtime overhead, as in the VRAM calculator. Longer contexts are only usable up to the model's own context window; check the model card.
Which GPUs can run Qwen3 8B?
| GPU memory | 16-bit (BF16 / FP16) | 8-bit (Q8_0) | 4-bit (Q4_K_M) |
|---|---|---|---|
| 8 GB | 4 cards | 2 cards | fits on 1 |
| 12 GB | 2 cards | fits on 1 | fits on 1 |
| 16 GB | 2 cards | fits on 1 | fits on 1 |
| 24 GBRTX 3090, RTX 4090, L4 | fits on 1 | fits on 1 | fits on 1 |
| 32 GBRTX 5090 | fits on 1 | fits on 1 | fits on 1 |
| 40 GBA100 40GB | fits on 1 | fits on 1 | fits on 1 |
| 48 GBRTX A6000, RTX 6000 Ada, L40S | fits on 1 | fits on 1 | fits on 1 |
| 80 GBA100 80GB, H100 PCIe, H100 SXM | fits on 1 | fits on 1 | fits on 1 |
| 141 GBH200 | fits on 1 | fits on 1 | fits on 1 |
| 180 GBB200 | fits on 1 | fits on 1 | fits on 1 |
| 192 GBAMD MI300X | fits on 1 | fits on 1 | fits on 1 |
Assumes the runtime can allocate 95% of each card and every card pays the fixed overhead. Vendor memory sizes are binary (a 24 GB card holds 25.8 × 10⁹ bytes), and that is accounted for.
Can I run Qwen3 8B on a Mac?
| Unified memory | 16-bit (BF16 / FP16) | 8-bit (Q8_0) | 4-bit (Q4_K_M) |
|---|---|---|---|
| 24 GBM4 Pro | fits | fits | fits |
| 32 GBM2 Max | fits | fits | fits |
| 48 GBM3 Max (40-core GPU), M4 Pro, M4 Max (40-core GPU) | fits | fits | fits |
| 64 GBM2 Max, M2 Ultra, M3 Max (40-core GPU), M4 Pro, M4 Max (40-core GPU) | fits | fits | fits |
| 96 GBM2 Max, M3 Ultra | fits | fits | fits |
| 128 GBM2 Ultra, M3 Max (40-core GPU), M4 Max (40-core GPU) | fits | fits | fits |
| 192 GBM2 Ultra | fits | fits | fits |
| 256 GBM3 Ultra | fits | fits | fits |
| 512 GBM3 Ultra | fits | fits | fits |
macOS lets the GPU use about 75% of unified memory by default; you can raise the limit with sudo sysctl iogpu.wired_limit_mb.
How fast does Qwen3 8B run at 4-bit?
| Hardware | Memory bandwidth | Tokens / s | |
|---|---|---|---|
| RTX 309024 GB | 936 GB/s | 117 | estimator |
| RTX 409024 GB | 1,008 GB/s | 126 | estimator |
| RTX 509032 GB | 1,792 GB/s | 223 | estimator |
| RTX A600048 GB | 768 GB/s | 95.7 | estimator |
| RTX 6000 Ada48 GB | 960 GB/s | 120 | estimator |
| L424 GB | 300 GB/s | 37.4 | estimator |
| L40S48 GB | 864 GB/s | 108 | estimator |
| A100 40GB40 GB | 1,555 GB/s | 194 | estimator |
| A100 80GB80 GB | 2,039 GB/s | 254 | estimator |
| H100 PCIe80 GB | 2,000 GB/s | 249 | estimator |
| H100 SXM80 GB | 3,350 GB/s | 418 | estimator |
| H200141 GB | 4,800 GB/s | 598 | estimator |
| B200180 GB | 8,000 GB/s | 997 | estimator |
| AMD MI300X192 GB | 5,300 GB/s | 661 | estimator |
| Apple M2 Max32 GB config or larger | 400 GB/s | 46.3 | estimator |
| Apple M2 Ultra64 GB config or larger | 800 GB/s | 92.6 | estimator |
| Apple M3 Max (40-core GPU)48 GB config or larger | 400 GB/s | 46.3 | estimator |
| Apple M3 Ultra96 GB config or larger | 819 GB/s | 94.8 | estimator |
| Apple M4 Pro24 GB config or larger | 273 GB/s | 31.6 | estimator |
| Apple M4 Max (40-core GPU)48 GB config or larger | 546 GB/s | 63.2 | estimator |
Decoding reads the model weights and the KV cache once per token, so speed is roughly memory bandwidth ÷ bytes per token. Assumes 70% of peak bandwidth on GPUs and 65% on Macs, one GPU or Mac holding the whole model. Only hardware that holds it alone is listed.
Questions
How much VRAM does Qwen3 8B need?
About 7.37 GB at 4-bit (Q4_K_M), 11.2 GB at 8-bit (Q8_0) and 19.1 GB at 16-bit (BF16), for one request with an 8K-token context. At 4-bit the weights are 5.01 GB; the rest is the KV cache and runtime overhead. With 128K tokens of context the 4-bit total rises to 25.5 GB.
Can I run Qwen3 8B on a 24 GB GPU like the RTX 4090?
Yes, at 16-bit (BF16 / FP16) with an 8K context. A 24 GB card such as the RTX 3090, RTX 4090 or L4 holds it with the runtime's usual headroom.
Can I run Qwen3 8B on a Mac?
Yes: at 4-bit it needs a Mac with at least 24 GB of unified memory, and at 16-bit 24 GB. By default macOS lets the GPU use about 75% of unified memory, which these figures allow for.
How fast does Qwen3 8B run?
At 4-bit, one request generates about 126 tokens per second on a RTX 4090 and 63.2 tokens per second on an Apple M4 Max (40-core GPU). These are estimates from memory bandwidth (70% of peak on GPUs, 65% on Macs) with 4K tokens in context; real runtimes vary.
Work it out for your setup
- Free toolVRAM calculator: Qwen3 8B at Q4_K_MChange the quantization, context, KV-cache precision and batch size.
- Free toolLLM inference speed estimatorTokens per second, time to first token and batching on any GPU or Mac.
- GuideCan I run it? All open-weight modelsMemory needed for every model we track, and what each GPU or Mac can run.
Sources
- Qwen3 8B model card and config.json — Hugging Face
