Quick answer: Qwen4-35B-A3B needs about 21–25GB of combined RAM + VRAM at 4-bit, 17–19GB at 3-bit and 12–16GB at 2-bit, according to Unsloth's tables. That assumes the 20B-parameter engram table stays on your SSD instead of in memory. A 24GB GPU (RTX 4090, RX 7900 XTX) or a 24GB+ Mac is the comfortable starting point with UD-IQ4_XS. On a 16GB GPU, use UD-Q3_K_XL. On 12GB, use UD-IQ2_XXS. The download is bigger than these numbers, about 30–40GB at 4-bit, because the file includes the engram. Qwen4-Max can't be run locally at all. It has no public weights.
"Why is a 35B model a 36GB download if it only needs 24GB?" was the top question in the first-day megathreads. Close behind came "will it run on my 8GB card?" The answer to both is the same: Qwen 4 separates the parts that must be in fast memory from the parts that can sit on disk. Get that split right and the model runs well on hardware that looks too small for it on paper.
Sources and scope: memory figures come from Unsloth's Qwen4 documentation and the Ollama library page. Architecture details come from the official Hugging Face model card. Checked December 5, 2026. Speeds quoted from users are labeled as community reports. We have not measured them ourselves.
Qwen 4 memory by quant
Unsloth's figures are RAM + VRAM combined (or unified memory on a Mac), with the engram on SSD:
| Quant level | RAM + VRAM needed | Suggested Unsloth file | Fits |
|---|---|---|---|
| 1-bit | 10–11 GB | UD-IQ1_S / IQ1_M | Experiments only |
| 2-bit | 12–16 GB | UD-IQ2_XXS | 12 GB GPU + RAM |
| 3-bit | 17–19 GB | UD-IQ3_XXS / UD-Q3_K_XL | 16 GB GPU (RTX 5080, RX 9070 XT) |
| 4-bit | 21–25 GB | UD-IQ4_XS | 24 GB GPU, 24 GB Mac |
| 4-bit (larger) | ~25+ GB | UD-Q4_K_XL | 32 GB GPU (RTX 5090), 32 GB+ Mac |
| 5-bit | 26–28 GB | UD-Q5 | 32 GB |
| 6-bit | 29–31 GB | UD-Q6_K | 32 GB+ |
| 8-bit | 41 GB | UD-Q8_K_XL | 48 GB+, or a 64 GB+ Mac |
For the full 1M context, budget extra memory on top of this. Unsloth notes that "the full 1M context needs more headroom." Most community setups run 32K–256K.
Why the download is bigger than the memory
Qwen4-35B-A3B has three parts (details in our 35B A3B explainer):
| Part | Size | Needs fast memory? |
|---|---|---|
| Expert layers | 35B parameters (~3B active per token) | Yes, though cold experts can live in system RAM |
| Engram (n-gram embedding) | ~20B parameters | No. Each token reads only 16 rows, so it can be memory-mapped from SSD |
| MTP head | ~0.5–1.7 GB depending on quant | Yes (small) |
Unsloth ships the engram as a separate file at different precisions:
| Engram file | Size | Quality note |
|---|---|---|
| IQ4_NL | 11.52 GB | Used in quants up to UD-Q4_K_XL |
| Q5_1 | 15.36 GB | Used in the UD-Q5 quants |
| Q8_0 | 21.76 GB | About 6% lower KL divergence than IQ4_NL on UD-Q4_K_XL |
| BF16 | 40.96 GB | No measurable gain over Q8_0 |
The practical tip almost nobody mentions: if you have spare SSD space, pair a 4-bit model with the Q8_0 engram. You get a small quality gain at no VRAM cost, because the table never loads into VRAM.
Which quant for your hardware
| Your hardware | Start with | Notes |
|---|---|---|
| 8 GB GPU + 32 GB RAM | UD-IQ2/IQ3, experts in RAM | Works; users report roughly 25–40 tok/s with expert caching |
| 12 GB GPU (RTX 3060, 4070) | UD-IQ2_XXS | Unsloth's recommendation for 12 GB total |
| 16 GB GPU (RTX 5070 Ti, 5080, 4060 Ti 16G) | UD-Q3_K_XL | Or UD-IQ4_XS with experts spilling to RAM |
| 24 GB GPU (RTX 3090, 4090, 7900 XTX) | UD-IQ4_XS | The sweet spot; vision + MTP fit at moderate context |
| 32 GB GPU (RTX 5090) | UD-Q4_K_XL | Unsloth measured ~175 tok/s, ~224 with MTP |
| Mac, 24 GB | UD-IQ4_XS or MLX 4-bit | Close other apps |
| Mac, 32–64 GB | UD-Q4_K_XL or Unsloth MLX 4-bit (34 GB) | MLX build is text-only |
| Mac, 128 GB | Q6–Q8 | Unsloth measured 75 tok/s decode (MLX 4-bit, M5 Max) |
| CPU only, 32 GB+ RAM | 3–4-bit | Works, but slower |
Ollama users: the default qwen4 tag is a 36–37GB package, and the bf16 tag is 114GB. On a 24GB machine, Unsloth's GGUFs with the engram on SSD are usually the better fit. Our Qwen 4 Ollama guide covers both routes.
How to get speed, not just "it loads"
The speed gap between two people with the same GPU comes down to a few settings:
- Keep the engram on SSD. In llama.cpp, use
--load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU. Unsloth Desktop does this for you. - Use an expert cache when the model doesn't fit. Unsloth measured decoding roughly 2× faster with
--moe-cache-mib: 131–138 vs 69–72 tok/s on 24GB, 127 vs 70 on 16GB, and 95 vs 53 on 8GB. - Turn on MTP. Speculative decoding with the built-in MTP head gave about 1.3× in Unsloth's tests. Draft depth 2 is the recommended default.
- Quantize the KV cache only if you must. Qwen 4 keeps a normal KV cache in just 10 of 40 layers, so the cache is already small.
- Turn vision off if you don't need it. The vision projector costs memory.
Make sure your llama.cpp build includes PR #33626 (merged December 3, 2026). Older builds don't recognize the architecture.
Small-quant gotchas
- Loops at 1–2-bit. Set
min_p=0.01andpresence_penalty=1.5. Unsloth found tiny quants sometimes repeat themselves. - Quality drift. Expect slightly worse results than the benchmark chart at 2–3 bits.
- Not enough SSD speed. Engram reads are tiny, but a slow HDD can stall generation. Use an NVMe drive.
Not sure your machine can handle any of this? Test the model's answers first. Qwen 4 35B runs in glm5.app chat with no download. If it fits your work, size the local setup afterward.
FAQ
How much VRAM does Qwen 4 need? At 4-bit, plan for 21–25GB of combined RAM and VRAM, with the engram table on SSD. A 24GB GPU is the comfortable minimum for a full-speed 4-bit setup.
Can Qwen 4 run on 8GB of VRAM? Yes, with a 2–3-bit quant, most experts in system RAM (32GB recommended) and the engram on SSD. Expect lower speed and quality than on a 24GB card.
Can I run Qwen4-Max locally? No. Qwen4-Max has no public weights. It has a 2.4T-parameter backbone, which would be far beyond consumer hardware anyway.
Does Qwen 4 run on a Mac? Yes. Use Unsloth's GGUFs, the Unsloth MLX 4-bit build (34GB, text-only) or oMLX, which supports moving the engram to SSD.
Why does my Qwen 4 download say 36GB? The file includes the ~20B-parameter engram table, which can stay on disk while you run the model.
Summary
The Qwen 4 VRAM requirements are lower than the file size suggests. Plan for 24GB at 4-bit with the engram on SSD, then go down to 3-bit at 16GB or 2-bit at 12GB. Turn on the expert cache and MTP for speed. If you just want to see how good the model is first, chat with Qwen 4 35B on glm5.app before you download anything.
Sources
Checked December 5, 2026. Quant files and engine flags change quickly, so check the latest docs.
- Unsloth documentation, Qwen4 35B-A3B: How to Run Locally: https://unsloth.ai/docs/models/qwen4
- Hugging Face model card, Qwen4-35B-A3B: https://huggingface.co/Qwen/Qwen4-35B-A3B
- Ollama library, qwen4: https://ollama.com/library/qwen4
- llama.cpp, "model: qwen4" PR #33626: https://github.com/ggml-org/llama.cpp/pull/33626




