Qwen 4 VRAM Requirements: Which Quant Fits Your GPU
Dec 5, 2026

Qwen 4 VRAM Requirements: Which Quant Fits Your GPU

Qwen 4 VRAM requirements by GPU: 8GB, 12GB, 16GB, 24GB, 32GB and Macs. Which Qwen4-35B-A3B quant to download, where the engram goes, and how to get speed.

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 levelRAM + VRAM neededSuggested Unsloth fileFits
1-bit10–11 GBUD-IQ1_S / IQ1_MExperiments only
2-bit12–16 GBUD-IQ2_XXS12 GB GPU + RAM
3-bit17–19 GBUD-IQ3_XXS / UD-Q3_K_XL16 GB GPU (RTX 5080, RX 9070 XT)
4-bit21–25 GBUD-IQ4_XS24 GB GPU, 24 GB Mac
4-bit (larger)~25+ GBUD-Q4_K_XL32 GB GPU (RTX 5090), 32 GB+ Mac
5-bit26–28 GBUD-Q532 GB
6-bit29–31 GBUD-Q6_K32 GB+
8-bit41 GBUD-Q8_K_XL48 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):

PartSizeNeeds fast memory?
Expert layers35B parameters (~3B active per token)Yes, though cold experts can live in system RAM
Engram (n-gram embedding)~20B parametersNo. Each token reads only 16 rows, so it can be memory-mapped from SSD
MTP head~0.5–1.7 GB depending on quantYes (small)

Unsloth ships the engram as a separate file at different precisions:

Engram fileSizeQuality note
IQ4_NL11.52 GBUsed in quants up to UD-Q4_K_XL
Q5_115.36 GBUsed in the UD-Q5 quants
Q8_021.76 GBAbout 6% lower KL divergence than IQ4_NL on UD-Q4_K_XL
BF1640.96 GBNo 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 hardwareStart withNotes
8 GB GPU + 32 GB RAMUD-IQ2/IQ3, experts in RAMWorks; users report roughly 25–40 tok/s with expert caching
12 GB GPU (RTX 3060, 4070)UD-IQ2_XXSUnsloth's recommendation for 12 GB total
16 GB GPU (RTX 5070 Ti, 5080, 4060 Ti 16G)UD-Q3_K_XLOr UD-IQ4_XS with experts spilling to RAM
24 GB GPU (RTX 3090, 4090, 7900 XTX)UD-IQ4_XSThe sweet spot; vision + MTP fit at moderate context
32 GB GPU (RTX 5090)UD-Q4_K_XLUnsloth measured ~175 tok/s, ~224 with MTP
Mac, 24 GBUD-IQ4_XS or MLX 4-bitClose other apps
Mac, 32–64 GBUD-Q4_K_XL or Unsloth MLX 4-bit (34 GB)MLX build is text-only
Mac, 128 GBQ6–Q8Unsloth measured 75 tok/s decode (MLX 4-bit, M5 Max)
CPU only, 32 GB+ RAM3–4-bitWorks, 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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.01 and presence_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.

Start Using GLM 5 Today

Try GLM 5 free — reasoning, coding, agents, and image generation in one platform.