Skip to content
AI Dev Toolkit.
Esc
  • Loading…

VRAM · Local model

Qwen3 8B VRAM requirements: can you run it locally?

Yes: Qwen3 8B runs on an 8 GB GPU such as the GeForce RTX 4060 at Q4_K_M (about 6.8 GB with an 8K context), with room for about 16K tokens of context. At 8-bit (Q8_0) it needs about 10 GB, which fits a 12 GB card. Estimates from the model’s official config.json, checked 2026-10-08.

Parameters
8.2B
Layers
36
Max context
40,960
Experts
Dense

Attention: 36 full-attention layers.

Requirements

How much VRAM does Qwen3 8B need?

Quantisation8K context32K context40K context
FP16 / BF1618 GB22 GB23 GB
Q8_0 (8-bit)10 GB14 GB15 GB
Q6_K8.4 GB12 GB13 GB
Q5_K_M7.6 GB11 GB12 GB
Q4_K_M6.8 GB10 GB11 GB
Q3_K_M5.9 GB9.3 GB10 GB
Q2_K5.1 GB8.5 GB9.6 GB

Weights + FP16 KV cache + overhead, batch 1; the VRAM calculator shows the formula.

GPUs

Which GPUs can run Qwen3 8B?

MemoryExample cardBest quality at 8KLongest context at that qualityLongest context at Q4_K_M
8 GBGeForce RTX 4060Q5_K_M · 7.6 GB11K16K
12 GBGeForce RTX 5070Q8_0 (8-bit) · 10 GB19K40K
16 GBGeForce RTX 5080Q8_0 (8-bit) · 10 GB40K40K
24 GBRadeon RX 7900 XTXFP16 / BF16 · 18 GB40K40K
32 GBGeForce RTX 5090FP16 / BF16 · 18 GB40K40K
48 GBL40SFP16 / BF16 · 18 GB40K40K
80 GBH100 80GBFP16 / BF16 · 18 GB40K40K
96 GBRTX PRO 6000 BlackwellFP16 / BF16 · 18 GB40K40K

The smallest card that holds Qwen3 8B at Q4_K_M with an 8K context has 8 GB, such as the GeForce RTX 4060; there it has room for about 16K tokens. Every extra gigabyte goes to context: on a 12 GB card the limit rises to 40K. For 8-bit or better you need a 12 GB card, and full 16-bit precision (18 GB) fits from 24 GB.

Apple Silicon

Can you run Qwen3 8B on a Mac?

Mac memoryGPU can useBest quality at 8KLongest context
16 GB11 GBQ8_0 (8-bit) · 10 GB11K
24 GB16 GBQ8_0 (8-bit) · 10 GB40K
32 GB21 GBFP16 / BF16 · 18 GB29K
36 GB27 GBFP16 / BF16 · 18 GB40K
48 GB36 GBFP16 / BF16 · 18 GB40K
64 GB48 GBFP16 / BF16 · 18 GB40K
96 GB72 GBFP16 / BF16 · 18 GB40K
128 GB96 GBFP16 / BF16 · 18 GB40K
192 GB144 GBFP16 / BF16 · 18 GB40K
256 GB192 GBFP16 / BF16 · 18 GB40K
512 GB384 GBFP16 / BF16 · 18 GB40K

At Q4_K_M and an 8K context, Qwen3 8B needs a Mac with at least 16 GB of unified memory; 8-bit fits the same Mac and full precision needs 32 GB. By default macOS lets the GPU use about two thirds of memory on Macs with 32 GB or less and about three quarters on larger ones; the table uses that limit. You can raise it with sudo sysctl iogpu.wired_limit_mb, leaving at least 8 GB for macOS.

Context

How much memory does Qwen3 8B’s context use?

ContextKV cache, FP16KV cache, 8-bitTotal at Q4_K_M
8,1921.1 GB0.6 GB6.8 GB
32,7684.5 GB2.4 GB10 GB
40,9605.6 GB3.0 GB11 GB

Qwen3 8B’s FP16 cache grows by about 141 MB for every 1,000 tokens. At 8K tokens that is 1.1 GB, 17% of the total at Q4_K_M; at its full 40,960-token context it is 5.6 GB, 1.2× the size of the 4.7 GB of Q4_K_M weights. All 36 layers use full attention and cache 2,048 values (keys plus values for its KV heads) per token, so the cache grows in a straight line with the context. On a 24 GB card at Q4_K_M, the longest context is about 40K tokens with an FP16 cache, its full context.

Download

How big is the Qwen3 8B download?

GGUF quantisationBits per weightApproximate size
FP16 / BF1616.0015 GB
Q8_0 (8-bit)8.508.1 GB
Q6_K6.566.3 GB
Q5_K_M5.705.4 GB
Q4_K_M4.894.7 GB
Q3_K_M4.003.8 GB
Q2_K3.163.0 GB

An 8.2B-parameter model takes about 4.7 GB of disk at Q4_K_M and 15 GB as 16-bit weights, so the quantised file saves about 11 GB. Sizes are parameters × bits per weight; real GGUF files differ by a few per cent because some tensors stay at higher precision.

Compare

How does Qwen3 8B compare with other Qwen models?

ModelParametersTypeQ4 at 8KSmallest GPUContext on 24 GB
Qwen2.5 7B7.6BDense5.8 GB8 GB32K
Qwen3 8B8.2BDense6.8 GB8 GB40K
Qwen3 14B14.8BDense11 GB12 GB40K
Qwen 3.8 27B27.8BDense18 GB24 GB96K
Qwen3 30B-A3B30.5BMoE20 GB24 GB40K
Qwen3 32B32.8BDense23 GB24 GB12K
Qwen2.5 Coder 32B32.8BDense23 GB24 GB12K
Qwen2.5 72B72.7BDense48 GBNone—
Qwen3 235B-A22B235.1BMoE149 GBNone—

Qwen3 8B is number 2 by size of the 9 Qwen models we cover. The next smaller, Qwen2.5 7B, needs about 5.8 GB at Q4 with an 8K context. The next larger, Qwen3 14B, needs about 11 GB.

FAQ

Frequently asked questions

How much VRAM does Qwen3 8B need?

With an 8K context, about 6.8 GB at Q4_K_M, 10 GB at 8-bit (Q8_0) and 18 GB at full 16-bit precision. That covers the weights, the KV cache and runtime overhead.

Can Qwen3 8B run on a 24 GB GPU like the RTX 4090?

Yes: the best quality that fits with an 8K context is FP16 / BF16, at about 18 GB, and at that setting it has room for about 40K tokens.

Can I run Qwen3 8B on a Mac?

Yes: at Q4_K_M and an 8K context it fits a Mac with 16 GB of unified memory using macOS’s default GPU memory limit (about 11 GB for the GPU).

Can Qwen3 8B run on 16 or 8 GB?

Best quality with an 8K context: 16 GB: Q8_0 (8-bit) at about 10 GB, with up to 40K tokens; 8 GB: Q5_K_M at about 7.6 GB, with up to 11K tokens.

How big is the Qwen3 8B download?

About 4.7 GB for a Q4_K_M GGUF, 8.1 GB at Q8_0 and 15 GB for the 16-bit weights.

What is the longest context Qwen3 8B can use on 24 GB?

About 40K tokens at Q4_K_M with an FP16 cache. Its maximum is 40,960 tokens.

Related

Try other settings in the VRAM calculator

Keep exploring