Skip to content
ProductFireProductFire

Qwen4-35B-A3B VRAM Requirements: Which Quant Fits Your GPU

How much VRAM and RAM does Qwen4-35B-A3B need? Real GGUF sizes, why the 11.5 GB engram file can skip VRAM, and the best quant for 12, 16, 24 and 32 GB setups.

Published 6 min read

ProductFire graphic titled Qwen4-35B-A3B VRAM and RAM requirements, with an outline of a 24 GB graphics card on a dark blue background
Qwen4-35B-A3B is a 35B mixture-of-experts model, but the memory you need depends mostly on which quant you pick. Graphic: ProductFire.

Key takeaways

  • Qwen4-35B-A3B came out on December 4, 2026 under the Apache 2.0 licence. It has 35B parameters, about 3B of them active per token, and a 1M-token context window.
  • Each Unsloth GGUF comes as two files: the model, plus an n-gram 'engram' table that is 11.5 GB at 4-bit and below. llama.cpp can keep that table in system RAM or read it from SSD, so it does not need VRAM.
  • Unsloth's suggested picks: UD-IQ2_XXS for 12 GB of combined memory, UD-Q3_K_XL for 16 GB, UD-IQ4_XS for 24 GB GPUs and Macs, and UD-Q4_K_XL for 32 GB.
  • Quality rises quickly up to about 4-bit and then levels off. On Unsloth's tests, top-1 agreement with the full BF16 model goes from 80.1% at UD-IQ1_S to 93.2% at UD-Q4_K_XL and 94.2% at UD-Q5_K_XL.
  • Ollama's default qwen4 tag is a 36 to 37 GB download, so on a 24 GB card part of the model will not fit in VRAM.

Qwen4-35B-A3B needs about 20 to 25 GB of memory for a good 4-bit build. A 24 GB GPU or a 24 GB Mac can run Unsloth's UD-IQ4_XS, and 32 GB can run UD-Q4_K_XL. The trick is the 11.5 GB "engram" file in every quant. It can stay in system RAM or on your SSD instead of your graphics card.

Alibaba's Qwen team released the model on December 4, 2026. It is the first open-weight Qwen4 model, under the Apache 2.0 licence. Local AI users picked it up fast: Unsloth's GGUF repo had more than 7 million downloads by December 6, according to the Hugging Face API. The question everyone is asking on day two is simple: will it fit on my machine?

This guide answers that with real file sizes from the Unsloth GGUF repo and Unsloth's own hardware notes. We have not benchmarked the model ourselves. Every number below comes from those pages, the official model card or Ollama's library.

Quick answer: which quant for your memory

Table graphic matching memory to quant: 12 GB UD-IQ2_XXS, 16 GB (RTX 5080) UD-Q3_K_XL, 18 GB short context UD-IQ3_XXS, 24 GB (RTX 4090, RX 7900 XTX, 24 GB Mac) UD-IQ4_XS, 32 GB GPU or Mac UD-Q4_K_XL

Unsloth's suggestions count RAM plus VRAM together, or unified memory on a Mac:

Your memory Unsloth's pick Weights in memory (engram on SSD) Full download
12 GB UD-IQ2_XXS 11.9 GB 23.4 GB
16 GB (e.g. RTX 5080) UD-Q3_K_XL 19.4 GB 30.9 GB
18 GB, short context UD-IQ3_XXS 17.2 GB 28.7 GB
24 GB GPU or Mac UD-IQ4_XS 20.5 GB 32.0 GB
32 GB GPU or Mac UD-Q4_K_XL 24.7 GB 36.2 GB

One thing the table does not hide: the 16 GB pick is bigger than 16 GB. With a 16 GB card, UD-Q3_K_XL spills a few gigabytes into system RAM. If you want the whole model on the GPU, a 2-bit quant like UD-IQ2_M (15.1 GB) is the closer fit. Leave room for context too.

By bit level, Unsloth gives these rough totals: 1-bit 10–11 GB, 2-bit 12–16 GB, 3-bit 17–19 GB, 4-bit 21–25 GB, 5-bit 26–28 GB, 6-bit 29–31 GB and 8-bit 41 GB.

Why the download is bigger than the memory you need

Qwen4 adds something most local models do not have. The model card lists "35B with 3B activated, plus 20B n-gram embedding and 2B MTP." That 20B n-gram table is what Unsloth calls the engram.

Stacked bar chart showing each Unsloth quant as two files: UD-Q4_K_XL is 24.7 GB of model plus an 11.5 GB engram, UD-IQ4_XS is 20.5 GB plus 11.5 GB, UD-Q3_K_XL is 19.4 GB plus 11.5 GB

According to the Hugging Face blog, each token reads just 16 rows of this table. It is a lookup, not heavy maths, so it does not have to live on the GPU. Unsloth's engram README says the flag -ot per_layer_token_embd=CPU keeps it in system RAM. In its words, "a larger table needs more RAM, not more VRAM." Unsloth's run command adds --load-mode mmap --lazy-mode on, which reads the table from SSD when needed.

In practice, every Unsloth quant is two files:

  • File 1: the model itself, plus the optional MTP head.
  • File 2: the engram table. It is 11.5 GB (IQ4_NL) for every quant from UD-IQ1_S up to UD-Q4_K_XL, 15.4 GB for the 5-bit quants and 21.8 GB for 6-bit and 8-bit.
Grouped bar chart comparing total download and in-memory weights for nine Qwen4-35B-A3B quants, for example UD-Q4_K_XL 36.2 GB download versus 24.7 GB in memory and UD-IQ2_XXS 23.4 GB versus 11.9 GB

That explains why a "36 GB model" can run on a 32 GB machine. Unsloth says moving the engram to SSD saves "over 30% of RAM and VRAM usage."

You can also swap tables. The engram folder holds the same table at BF16 (40.96 GB), Q8_0 (21.76 GB), Q5_1 (15.36 GB) and IQ4_NL (11.52 GB). llama.cpp's --ple flag loads whichever one you choose. Unsloth measured about 6% lower mean KLD with a Q8_0 table on one test set, at the cost of more RAM or disk.

How much quality you lose at each size

Smaller quants are not free. Unsloth compared every quant against the full BF16 model. "Top-1 agreement" means how often the quant picks the same next token as the original.

Line chart of top-1 agreement with BF16 against in-memory size: UD-IQ1_S 80.1% at 9.8 GB, UD-IQ2_XXS 84.0% at 11.9 GB, UD-IQ3_XXS 90.0% at 17.2 GB, UD-IQ4_XS 91.8% at 20.5 GB, UD-Q4_K_XL 93.2% at 24.7 GB, UD-Q5_K_XL 94.2% at 27.8 GB
Quant Weights (engram on SSD) Top-1 agreement Mean KLD
UD-IQ1_S 9.8 GB 80.10% 0.3008
UD-IQ2_XXS 11.9 GB 84.00% 0.1935
UD-IQ3_XXS 17.2 GB 89.96% 0.0760
UD-IQ4_XS 20.5 GB 91.83% 0.0532
UD-Q4_K_XL 24.7 GB 93.20% 0.0375
UD-Q5_K_XL 27.8 GB 94.20% 0.0278

The curve is steep up to about 3-bit and flat after 4-bit. Going from UD-Q4_K_XL to UD-Q5_K_XL costs 3.1 GB more memory for one extra point of agreement. Unsloth also warns that the smallest quants (UD-IQ1_S, UD-IQ1_M, UD-IQ2_XXS) sometimes loop. It recommends min_p=0.01 and presence_penalty=1.5 for them.

How fast it runs on real hardware

Only about 3B parameters are active per token, so the model is quick for its size. Unsloth tested UD-Q4_K_XL in mainline llama.cpp (greedy decoding, thinking off):

Horizontal bar chart of decode speed for UD-Q4_K_XL: RTX 5090 174.9 tokens per second without draft and 224.0 with MTP, Mac M5 Max 91.2 and 118.5, RTX Spark 62.8 and 81.3
Device No draft (tokens/s) With MTP draft, code (tokens/s)
RTX 5090 (32 GB) 174.9 224.0 (1.28x)
Mac M5 Max (128 GB) 91.2 118.5 (1.30x)
RTX Spark (128 GB) 62.8 81.3 (1.29x)

The MTP head comes inside every Unsloth quant. Unsloth recommends --spec-draft-n-max 2.

What if the model does not fit in VRAM? In Unsloth's own app, a MoE GPU cache (--moe-cache-mib) gave 131–138 tokens/s on a 24 GB card against 69–72 without it. It gave 127 against 70 on 16 GB, and 95 against 53 on 8 GB. These are Unsloth's figures for its own tool, not plain llama.cpp.

Ollama, LM Studio and Mac: what to expect

Ollama. The qwen4 library page lists the default qwen4:35b-a3b tag at 36–37 GB and q4_K_M at 37 GB. The BF16 and NVFP4 builds are 114 GB and 36 GB. On a 24 GB card, expect part of the default model to run from system RAM, which is slower. Our Ollama vs LM Studio comparison explains how each app handles models that are bigger than your VRAM.

llama.cpp. Qwen4 support is in mainline llama.cpp from pull request #33626, so build the latest master. This route gives you the most control over the engram (-ot, --ple).

Mac. Unsloth's MLX 4-bit build is 34.0 GB and text only, with no vision and no MTP. On a 128 GB MacBook Pro M5 Max it decoded at 75 tokens/s with peak memory of 35.0 GB at a 512-token prompt. At a 4,096-token prompt it ran at 69 tokens/s with 36.2 GB. Smaller Macs should use the GGUF quants from the table above.

New to running models at home? Start with our general guide on how much RAM you need to run an LLM locally, and our list of the best local LLMs for 16 GB of VRAM.

Before you download: a 5-point checklist

  1. Add up RAM plus VRAM, or check your Mac's unified memory, and pick the quant from the first table.
  2. Keep about 12 to 22 GB of SSD space for the engram file on top of the model file.
  3. Leave headroom for context. The model supports 1M tokens, but long contexts need extra memory. Start at 32K like Unsloth's example command.
  4. Download from known uploaders. Uploads named "uncensored", "abliterated" or similar are community re-uploads, not Qwen releases. Our guide on whether GGUF models are safe shows how to check a repo.
  5. Use recommended sampling. For thinking mode, the model card suggests temperature 1.0, top_p 0.95 and top_k 20. For non-thinking mode it suggests temperature 0.7, top_p 0.80, top_k 20 and presence_penalty 1.5.

Qwen4-35B-A3B vs other new open-weight models

Qwen4-35B-A3B targets a different user from this week's other big open release. Amazon's Ergo is a much larger model aimed at AWS Bedrock and data-centre hardware. Our guide to using Amazon Ergo covers that route. Qwen4-35B-A3B is built for single-GPU and laptop use: the model card says it "runs on a single GPU when quantized." Unsloth calls it the strongest model under 50B parameters and cites 61.8 on DeepSWE v1.1 and 21.2 on Terminal-Bench 4.1. Those are vendor-reported figures, not our tests.

Key points to remember

  • A good 4-bit build needs about 20–25 GB of combined memory, not the 36 GB download size.
  • The 11.5 GB engram file can sit in system RAM or on SSD. Use -ot per_layer_token_embd=CPU in llama.cpp.
  • 24 GB setups: UD-IQ4_XS. 32 GB: UD-Q4_K_XL. 16 GB: a 3-bit quant with some RAM offload, or a 2-bit quant to stay on the GPU.
  • Quality levels off after 4-bit. Spend extra memory on context before you move to 5-bit.
  • File sizes and speeds here come from Unsloth, Qwen and Ollama pages as of December 6, 2026, and may change as builds are updated.

Frequently asked questions

How much VRAM do I need for Qwen4-35B-A3B?

Unsloth suggests starting with the 4-bit UD-IQ4_XS on a 24 GB GPU such as an RTX 4090 or Radeon RX 7900 XTX, or a Mac with 24 GB of unified memory. With the engram table left on SSD, that quant needs about 20.5 GB for its weights. Smaller 2-bit and 3-bit quants fit 12 to 18 GB setups.

Can Qwen4-35B-A3B run on a 16 GB GPU?

Yes, with a 2-bit or 3-bit quant. Unsloth recommends UD-Q3_K_XL for 16 GB setups like the RTX 5080. Its weights are about 19.4 GB with the engram on SSD, so some of the model will sit in system RAM. A 2-bit quant such as UD-IQ2_M (about 15.1 GB) fits more fully in VRAM.

What is the engram file in Qwen4 GGUFs?

It is the model's per-layer n-gram embedding table, about 20.5 billion values. Each token reads only 16 rows of it, so llama.cpp can keep it in system RAM or read it from SSD with -ot per_layer_token_embd=CPU. In Unsloth's quants it is the second file, 11.5 GB at 4-bit and below.

How big is the Qwen4-35B-A3B download?

On Unsloth's Hugging Face repo, downloads range from 21.3 GB (UD-IQ1_S) to about 36.2 GB for UD-Q4_K_XL and 42.4 GB for UD-Q5_K_M, including the engram file. The full BF16 GGUF is about 112.8 GB. Ollama's default qwen4 tag is listed at 36 to 37 GB.

Can I run Qwen4-35B-A3B on a Mac?

Yes. Unsloth suggests UD-IQ4_XS for a 24 GB Mac and UD-Q4_K_XL for 32 GB. Its 34.0 GB MLX 4-bit build hit a peak of 35.0 to 36.2 GB of memory on a 128 GB MacBook Pro M5 Max in Unsloth's test, so it is meant for bigger Macs.

How fast is Qwen4-35B-A3B locally?

In Unsloth's llama.cpp tests with UD-Q4_K_XL, decoding ran at 174.9 tokens per second on an RTX 5090 and 91.2 on a Mac M5 Max without a draft model. Turning on the built-in MTP draft raised that to about 224 and 118.5 tokens per second on code.

Sources

  1. Qwen/Qwen4-35B-A3B model card - Hugging Face
  2. Welcome Qwen 4: Cutting-edge intelligence on-device - Hugging Face blog
  3. Qwen4 35B-A3B: How to Run Locally - Unsloth docs
  4. unsloth/Qwen4-35B-A3B-GGUF (files and engram README) - Hugging Face
  5. Qwen (@Alibaba_Qwen) release post, December 4, 2026 - X
  6. qwen4 model tags - Ollama library
  7. qwen4-35b-a3b model info - Alibaba Cloud Model Studio

Spotted a mistake? Read our corrections policy or tell us.

Comments (0)

No login needed. Your name and comment are public.

0/1000

No comments yet. Be the first to share your view.

Keep reading

The ProductFire Brief

Get explainers like this every week

Free, one email a week. Unsubscribe anytime.

  1. Personal FinanceSocial Security payment schedule December 2026: dates left
  2. Personal FinanceTrump Account SpaceX stock: who gets the share, and when
  3. Personal FinanceForm 1040 citizenship question is now final: what to check on your 2026 tax return
  4. Personal FinanceIs there a stimulus check in 2026? No. Here's the status
  5. Personal FinanceTrump Account app not working? The fixes that help