Models › Qwen

Alibaba Qwen · 4.02B

Can I run Qwen3 4B locally?

Qwen3 4B needs about 4.2 GB at Q4_K_M with 8K context, so it fits fully on a 6 GB GPU.

Check it on your rig

Model facts

Parameters4.02B params
Max context40,960 tokens
Attention36 full-attention layers, 8 KV heads (grouped-query)
Good forChat, Reasoning
SourceQwen/Qwen3-4B

Quick answer

Smallest GPU that holds it fully: 6 GB (Q4_K_M, 8K context)

Consumer GPUs that fit it fully: 39 of 39

With partial offload (32 GB RAM): 0 more

Fitting fully is what you want: offloading works, but generation speed drops to what your system RAM can deliver.

Memory needed by quant and context

Total estimate: weights + KV cache (FP16) + runtime buffer. Pick a row whose number is below your VRAM (or about 2/3 of a Mac's memory). To try another quant, context length or KV cache precision, open Qwen3 4B in the VRAM calculator.

Qwen3 4B: memory needed at 8K context, by quant
  1. Q8_05.9 GB
  2. Q6_K5.0 GB
  3. Q5_K_M4.6 GB
  4. Q4_K_M4.2 GB
  5. Q3_K_M3.8 GB

Dashed lines mark common card or memory sizes in GB.

Quant4K ctx8K ctx32K ctx40K ctxQuality
Q8_05.4 GB5.9 GB9.3 GB10.4 GBnear-lossless
Q6_K4.5 GB5.0 GB8.4 GB9.5 GBvery close to full quality
Q5_K_M4.1 GB4.6 GB8.0 GB9.1 GBsmall quality loss
Q4_K_M3.7 GB4.2 GB7.6 GB8.7 GBthe usual sweet spot
Q3_K_M3.2 GB3.8 GB7.2 GB8.3 GBnoticeable quality loss

GPUs that run Qwen3 4B

At 8K context with 32 GB of DDR5 system RAM for offload. Speeds are estimates.

GPUVRAMVerdictQuantSpeed (est.)
GeForce RTX 509032 GBFits on GPUQ8_0170–265 tok/s
GeForce RTX 508016 GBFits on GPUQ8_095–150 tok/s
GeForce RTX 5070 Ti16 GBFits on GPUQ8_090–140 tok/s
GeForce RTX 507012 GBFits on GPUQ8_065–105 tok/s
GeForce RTX 5060 Ti 16GB16 GBFits on GPUQ8_045–70 tok/s
GeForce RTX 5060 Ti 8GB8 GBFits on GPUQ8_045–70 tok/s
GeForce RTX 50608 GBFits on GPUQ8_045–70 tok/s
GeForce RTX 409024 GBFits on GPUQ8_0100–155 tok/s
GeForce RTX 4080 Super16 GBFits on GPUQ8_075–115 tok/s
GeForce RTX 408016 GBFits on GPUQ8_070–115 tok/s
GeForce RTX 4070 Ti Super16 GBFits on GPUQ8_065–105 tok/s
GeForce RTX 4070 Ti12 GBFits on GPUQ8_050–80 tok/s
GeForce RTX 4070 Super12 GBFits on GPUQ8_050–80 tok/s
GeForce RTX 407012 GBFits on GPUQ8_050–80 tok/s
GeForce RTX 4060 Ti 16GB16 GBFits on GPUQ8_030–45 tok/s
GeForce RTX 4060 Ti 8GB8 GBFits on GPUQ8_030–45 tok/s
GeForce RTX 40608 GBFits on GPUQ8_030–45 tok/s
GeForce RTX 3090 Ti24 GBFits on GPUQ8_0100–155 tok/s
GeForce RTX 309024 GBFits on GPUQ8_095–145 tok/s
GeForce RTX 3080 Ti12 GBFits on GPUQ8_090–140 tok/s
GeForce RTX 3080 10GB10 GBFits on GPUQ8_075–120 tok/s
GeForce RTX 30708 GBFits on GPUQ8_045–70 tok/s
GeForce RTX 3060 Ti8 GBFits on GPUQ8_045–70 tok/s
GeForce RTX 3060 12GB12 GBFits on GPUQ8_035–60 tok/s
GeForce RTX 2080 Ti11 GBFits on GPUQ8_060–100 tok/s
GeForce RTX 2060 6GB6 GBFits on GPUQ6_K40–65 tok/s
Radeon RX 9070 XT16 GBFits on GPUQ8_050–90 tok/s
Radeon RX 907016 GBFits on GPUQ8_050–90 tok/s
Radeon RX 9060 XT 16GB16 GBFits on GPUQ8_025–45 tok/s
Radeon RX 7900 XTX24 GBFits on GPUQ8_075–130 tok/s
Radeon RX 7900 XT20 GBFits on GPUQ8_065–110 tok/s
Radeon RX 7900 GRE16 GBFits on GPUQ8_045–80 tok/s
Radeon RX 7800 XT16 GBFits on GPUQ8_050–85 tok/s
Radeon RX 7700 XT12 GBFits on GPUQ8_035–60 tok/s
Radeon RX 76008 GBFits on GPUQ8_025–40 tok/s
Radeon RX 6800 XT16 GBFits on GPUQ8_040–70 tok/s
Radeon RX 6700 XT12 GBFits on GPUQ8_030–55 tok/s
Arc B58012 GBFits on GPUQ8_030–55 tok/s
Arc A770 16GB16 GBFits on GPUQ8_040–65 tok/s

Macs and unified-memory PCs

The smallest memory configuration that holds it fully at 8K context.

ChipMemory neededQuantSpeed (est.)
Apple M18 GBQ5_K_M7–15 tok/s
Apple M1 Pro16 GBQ8_014–30 tok/s
Apple M1 Max32 GBQ8_030–60 tok/s
Apple M1 Ultra64 GBQ8_055–120 tok/s
Apple M28 GBQ5_K_M10–20 tok/s
Apple M2 Pro16 GBQ8_014–30 tok/s
Apple M2 Max32 GBQ8_030–60 tok/s
Apple M2 Ultra64 GBQ8_055–120 tok/s
Apple M38 GBQ5_K_M10–20 tok/s
Apple M3 Pro18 GBQ8_011–25 tok/s
Apple M3 Max (40-core GPU)48 GBQ8_030–60 tok/s
Apple M3 Ultra96 GBQ8_060–120 tok/s
Apple M416 GBQ8_09–18 tok/s
Apple M4 Pro24 GBQ8_019–40 tok/s
Apple M4 Max (16-core CPU)48 GBQ8_040–80 tok/s
Apple M516 GBQ8_011–25 tok/s
AMD Ryzen AI Max+ 39564 GBQ8_020–35 tok/s
NVIDIA DGX Spark128 GBQ8_030–45 tok/s

Parameter count and architecture come from the model's Hugging Face page and config.json. Memory and speed are calculated; see methodology.