35B core MoE plus 20B host-offloadable n-gram table
Standard dense calculators assume every stored parameter sits in VRAM during decode. Qwen4’s hybrid Gated DeltaNet and Sparse Attention architecture slashes KV-cache growth (~0.021 GB per 1K tokens in our planner), while its 20B bigram/trigram lookup table lives at layer 2.
That means the active compute footprint is only ~3B parameters per token, making Q4 weights (~21 GB) responsive on both 24–32 GB discrete GPUs and Apple Silicon Unified Memory when you leave host RAM headroom for the full 56.8B safetensors tree.
Q4 vs Q8 vs Full Precision (FP16/BF16)
In Q4 (~4.8 bpw), 24 GB cards fit an 8K context cleanly, while 16 GB cards like the RTX 4060 Ti 16 GB offload part of the weights to system RAM. Stepping up to Q8 (~39 GB) or FP16/BF16 (~72 GB+) pushes Qwen4 into 96 GB–128 GB Macs, RTX PRO 6000 workstations, or DGX Spark 128 GB nodes.
Select FP16/BF16 in the Benchmarks quantization dropdown to compare unquantized memory budgets directly.
What happens when context gets longer?
The same model on one RTX 3090 with 64 GB of system RAM and a fixed weight format. Only the context allowance changes.
| Context | Cache allowance | Estimated total | Placement |
|---|---|---|---|
| 8K tokens | 0.2 GB | 22.7 GB | All on GPU |
| 32K tokens | 0.7 GB | 23.2 GB | All on GPU |
| 64K tokens | 1.3 GB | 23.8 GB | Uses system RAM |
Common questions
Does Qwen4 35B A3B fit on an RTX 3090 or RTX 4090 (24 GB)?
At Q4 (~4.8 bpw) and 8K context, the 35B core weights (~21.0 GB) plus ~0.2 GB KV cache and 1.5 GB runtime overhead total ~22.7 GB, fitting a 24 GB GPU budget. Leave sufficient system RAM if your runtime keeps n-gram or vision tensors on host memory.
Why does Qwen4 use less KV cache than older 32B models?
Qwen4 alternates 3 Gated DeltaNet linear attention layers per Sparse Attention layer with MQA indexer compression, keeping KV-cache growth modest even as context scales toward 64K–1M tokens.
Sources and calculation notes
- Qwen4 35B A3B publisher model card
- llama.cpp project and supported inference tools
- llama-bench documentation
Model metadata snapshot: . Hardware snapshot: . Editorial review: .