Qwen4 35B-A3B
Qwen4 35B-A3B needs roughly 26.7 GB VRAM at Q4_K_M quantization (80.7 GB at FP16). 57 GPUs we track can run it fully in VRAM at 8k context.
57 GPUs run this natively · 31 with CPU offload
- Q4_K_M total
- 26.7 GB
- at 8k context
- Smallest GPU
- 32 GB
- NVIDIA RTX 5090, at Q4_K_M
- KV cache, full context
- 21.5 GB
- 10 of 40 layers cache
- Inputs
- Text · Image · Video
- Apache 2.0, released December 2026
- Parameters on disk
- 56.8B
- 35B backbone + 20B n-gram table + 2B MTP
- N-gram table
- 11.52 GB
- second file of every 4-bit GGUF, kept in system RAM
Qwen4 35B-A3B is a Mixture of Experts (MoE) model with 56.8B total parameters but only 3B active per token developed by Alibaba. Released on December 4, 2026 under Apache 2.0, the first open model of the Qwen4 series and the first time the architecture Qwen previewed in Qwen3.8-Flash-Next ships at a home-hardware size. Qwen's 35B is the mixture-of-experts backbone, where each token is routed to 8 of 256 experts plus one shared. On top of that sit a 20B n-gram embedding table, a lookup of word-pair and word-triple embeddings that each token reads only a few rows of, and a 2B multi-token-prediction module for faster decoding: 56.8B on disk in all. Its 40 layers repeat one pattern ten times, three Gated DeltaNet layers with a fixed-size memory and then one Qwen Sparse Attention layer, so only 10 layers keep a cache that grows with the prompt. That is what makes its native 1,048,576-token window practical. It reads text, images and video.
To run Qwen4 35B-A3B locally: the download is bigger than a 35B-A3B model suggests. Every GGUF build is two files, and the second is the n-gram table alone, so Unsloth's UD-Q4_K_M is 35.18 GB: a 23.66 GB model file plus an 11.52 GB table. Each token reads only a few rows of the table, so llama.cpp keeps it in system RAM (the -ot per_layer_token_embd=CPU flag in Unsloth's commands), and this site counts it that way on a PC: the GPU holds the model file, 26.7 GB in total at an 8k context, with about 11.5 GB of system RAM free for the table. That fits a 32 GB RTX 5090, at about 216.2 tokens per second on this site's estimate (Unsloth measured about 175 with its slightly larger UD-Q4_K_XL build). On a 24 GB card such as the RTX 4090, Q4_K_M spills some experts into system RAM (about 87.1 tokens per second), while the smaller UD-Q3_K_XL build fits outright. A Mac has one memory pool, so there both files count: 39.6 GB at 8k, which takes a 48 GB Mac. As a MoE model, inference speed depends on active parameters (3B) rather than total size.
Qwen pitches it at long-running agent work, and its own chart backs that up against the dense Qwen3.8-27B: DeepSWE v1.1 61.8 against 42.2, Terminal Bench 4.1 21.2 against 5.6, NL2Repo 51.7 against 42.3 and APEX-Agents v1.1 59.0 against 47.5. The 27B still wins on GPQA Diamond (89.2 against 86.9), and Qwen3.8-Flash-Next, a far bigger model, stays ahead on several rows. Thinking is on by default with four effort levels (xhigh, high, low and off). All of these are Qwen's own runs, with a few rows taken from Artificial Analysis and Mercor, and had not been reproduced independently at time of writing.
Three fixed-memory layers for every one that remembers everything
Qwen4 35B-A3B keeps the 40-layer shape of Qwen 3.6 35B-A3B and swaps one part. One block repeats ten times: three Gated DeltaNet layers, then one Qwen Sparse Attention layer, and every layer feeds a mixture-of-experts block that picks 8 of 256 experts plus a shared one. The sparse-attention layers replace Qwen 3.6's plain full attention with the indexed design Qwen first shipped in Qwen3.8-Flash-Next.
10 of 40 layers keep a KV cache that grows with the full context. The other 30 hold a fixed-size recurrent state, so their memory cost does not move as the context window grows.
Only the 10 sparse-attention layers store keys and values for every token, 20,480 bytes per token on this site's math. The 30 DeltaNet layers carry a fixed-size state that costs the same at 2,000 tokens or a million. The sparse layers' indexer chooses which 2,048 earlier tokens each query reads, which saves compute on long prompts, but it chooses from a cache that still holds every token. In other words: a token costs the memory of 10 layers instead of 40.
What the full 1M-token window costs
At everyday lengths the cache is small next to the 35.18 GB Q4_K_M download: 0.17 GB at 8k and 2.68 GB at 128k. The chart runs out to the full 1,048,576-token window, which Qwen says the model handles natively.
KV cache only, at FP16. Weights and activation overhead sit on top of these figures.
Filling the whole window costs 21.5 GB of KV cache, against 85.9 GB if every layer cached. With Q4_K_M weights, counting both files as a Mac does, that is a full-window total of 63.5 GB instead of 135.6 GB. In practice: a 96 GB RTX Pro 6000 holds the model with a million tokens loaded (50.6 GB on the card, the n-gram table in system RAM), and so does a 128 GB Mac or DGX Spark. A 64 GB Mac holds Q4_K_M up to 262,144 tokens but not the full window, and a 32 GB RTX 5090 runs out at about 170,000 tokens.
VRAM at each quantization
Calculated at 8k context. Because only part of this model's stack keeps a growing KV cache, longer sessions cost far less extra VRAM than a full-attention model of the same size.
| Quant | Weights | KV cache | Total | System RAM |
|---|---|---|---|---|
| FP32 | 143.7 GB | 0.17 GB | 161.1 GB | 81.9 GB |
| BF16 | 71.8 GB | 0.17 GB | 80.7 GB | 41.0 GB |
| FP16 | 71.8 GB | 0.17 GB | 80.7 GB | 41.0 GB |
| Q8_0 | 38.2 GB | 0.17 GB | 43.0 GB | 21.8 GB |
| Q6_K | 29.2 GB | 0.17 GB | 32.9 GB | 21.8 GB |
| Q5_K_M | 27.0 GB | 0.17 GB | 30.4 GB | 15.4 GB |
| Q4_K_Mrec | 23.7 GB | 0.17 GB | 26.7 GB | 11.5 GB |
| Q3_K_M | 19.4 GB | 0.17 GB | 21.9 GB | 11.5 GB |
| Q2_K | 16.2 GB | 0.17 GB | 18.3 GB | 11.5 GB |
| NVFP4cuda | 26.4 GB | 0.17 GB | 29.8 GB | 20.5 GB |
Weights and Total are what a discrete GPU holds. The n-gram table is a lookup each token reads only a few rows of, so it stays in system RAM (the System RAM column) and is not counted as VRAM. On a Mac or other unified-memory machine it shares the one memory pool, so add the two. Shown at 8k context with FP16 KV cache. NVFP4 needs a CUDA GPU to run. Toggle TurboQuant in the calculator to view compressed KV cache numbers.
Benchmarks
Against Qwen3.8-27B, the dense model it is meant to replace
Qwen's launch chart compares it with Qwen3.8-27B, which is also the model this site ranks highest among Qwen's own releases for a 24 GB or 32 GB card. The 27B reads all 27B parameters on every token; this one reads about 3B. Qwen3.8-Flash-Next and Inkling 2 Mini are in the same chart and are left out here.
Qwen's benchmark chart on the Qwen4-35B-A3B model card (Hugging Face, 4 December 2026). Terminal Bench 4.1, FrontierCode-AA 2.0 and AutomationBench-AA are cited from Artificial Analysis, APEX-Agents from Mercor's leaderboard, and Work360 is Qwen's own internal suite. The AA-Briefcase Elo row is left out because it is not on a 0 to 100 scale. Only GPQA Diamond has a field in this site's benchmark data.
The biggest gaps are agent and coding work: 19.6 points on DeepSWE v1.1, and 15.6 on Terminal Bench 4.1, where the 27B manages only 5.6. The 27B wins one row, GPQA Diamond, by 2.3 points, and the two tie on Chartography. Against the much larger Qwen3.8-Flash-Next, which is not plotted, Qwen's chart has it ahead on DeepSWE and NL2Repo and behind on Terminal Bench 4.1 (21.2 against 24.2) and FrontierCode-AA (16.1 against 27.1).
GPUs that run Qwen4 35B-A3B natively (57)
- NVIDIA RTX 5090NVFP4 · 209.7 t/s
- NVIDIA RTX 4090Q3_K_M · 189.7 t/s
- NVIDIA RTX 3090Q3_K_M · 184.3 t/s
- NVIDIA RTX 3090 TiQ3_K_M · 189.7 t/s
- NVIDIA B300 288GBBF16 · 154 t/s
Show 52 more
- NVIDIA B200 180GBBF16 · 154 t/s
- NVIDIA H200 141GBBF16 · 141.4 t/s
- NVIDIA H100 80GBQ8_0 · 175.8 t/s
- NVIDIA A100 80GBQ8_0 · 155.9 t/s
- NVIDIA A100 40GBQ6_K · 162.4 t/s
- NVIDIA L40SQ8_0 · 111.9 t/s
- NVIDIA RTX A6000Q8_0 · 121.9 t/s
- NVIDIA RTX 4000 AdaQ2_K · 124.6 t/s
- NVIDIA RTX 4500 AdaQ3_K_M · 126.1 t/s
- NVIDIA RTX 5000 AdaQ4_K_M · 133.9 t/s
- NVIDIA RTX 6000 AdaQ8_0 · 138.6 t/s
- NVIDIA RTX Pro 6000NVFP4 · 209.7 t/s
- NVIDIA DGX Spark (128GB)NVFP4 · 70 t/s
- AMD Radeon RX 7900 XTXQ3_K_M · 107.6 t/s
- AMD Radeon RX 7900 XTQ2_K · 107.1 t/s
- AMD Radeon PRO W7800Q4_K_M · 87.8 t/s
- AMD Radeon PRO W7900Q8_0 · 86.4 t/s
- AMD Instinct MI300XBF16 · 92.1 t/s
- AMD Radeon AI PRO R9700 32GBQ4_K_M · 91.2 t/s
- AMD Strix Halo (128GB)Q8_0 · 45.4 t/s
- AMD Strix Halo (96GB)Q8_0 · 45.4 t/s
- AMD Strix Halo (64GB)Q5_K_M · 55.9 t/s
- Apple M5 Ultra (512GB)BF16 · 65.9 t/s
- Apple M5 Ultra (256GB)BF16 · 65.9 t/s
- Apple M5 Ultra (96GB)Q8_0 · 81.5 t/s
- Apple M5 Max (128GB)Q8_0 · 64.1 t/s
- Apple M5 Max (64GB)Q5_K_M · 73 t/s
- Apple M5 Max (48GB)Q4_K_M · 77.4 t/s
- Apple M5 Pro (64GB)Q5_K_M · 53.8 t/s
- Apple M5 Pro (48GB)Q4_K_M · 58.7 t/s
- Apple M4 Max (128GB)Q8_0 · 60.8 t/s
- Apple M4 Max (64GB)Q5_K_M · 69.9 t/s
- Apple M4 Max (48GB)Q4_K_M · 74.4 t/s
- Apple M4 Pro (48GB)Q4_K_M · 55.3 t/s
- Apple M3 Ultra (512GB)BF16 · 55.1 t/s
- Apple M3 Ultra (256GB)BF16 · 55.1 t/s
- Apple M3 Ultra (96GB)Q8_0 · 72 t/s
- Apple M3 Max (128GB)Q8_0 · 52 t/s
- Apple M3 Max (96GB)Q8_0 · 44.1 t/s
- Apple M3 Max (64GB)Q5_K_M · 61.3 t/s
- Apple M3 Max (48GB)Q4_K_M · 66.1 t/s
- Apple M2 Ultra (192GB)BF16 · 54.4 t/s
- Apple M2 Ultra (64GB)Q5_K_M · 79.6 t/s
- Apple M2 Max (96GB)Q8_0 · 52 t/s
- Apple M2 Max (64GB)Q5_K_M · 61.3 t/s
- Apple M1 Ultra (128GB)Q8_0 · 71.4 t/s
- Apple M1 Ultra (64GB)Q5_K_M · 79.6 t/s
- Apple M1 Max (64GB)Q5_K_M · 61.3 t/s
- Intel Arc Pro B70 32GBQ4_K_M · 89.6 t/s
- Intel Arc Pro B60 24GBQ3_K_M · 86.2 t/s
- Intel Data Center GPU Max 1550BF16 · 85.7 t/s
- Intel Data Center GPU Max 1100Q8_0 · 86.6 t/s
Plus 31 GPUs that run it with CPU offload (slower)
- NVIDIA RTX 5080Q4_K_M · 43.6 t/s
- NVIDIA RTX 5070 TiQ4_K_M · 43.3 t/s
- NVIDIA RTX 5070Q3_K_M · 46.1 t/s
- NVIDIA RTX 5060 Ti 16GBQ4_K_M · 39.7 t/s
- NVIDIA RTX 5060 Ti 8GBQ3_K_M · 35.3 t/s
- NVIDIA RTX 5060Q3_K_M · 35.3 t/s
- NVIDIA RTX 5050Q3_K_M · 33.8 t/s
- NVIDIA RTX 4080Q4_K_M · 42.3 t/s
- NVIDIA RTX 4070 Ti SUPERQ4_K_M · 42 t/s
- NVIDIA RTX 4070 TiQ3_K_M · 44.5 t/s
- NVIDIA RTX 4070 SUPERQ3_K_M · 44.5 t/s
- NVIDIA RTX 4070Q3_K_M · 44.5 t/s
- NVIDIA RTX 4060 Ti 16GBQ4_K_M · 36.3 t/s
- NVIDIA RTX 4060Q3_K_M · 33 t/s
- NVIDIA RTX 3080 10GBQ3_K_M · 41.2 t/s
- NVIDIA RTX 3060 12GBQ3_K_M · 42.2 t/s
- AMD Radeon RX 9070 XTQ4_K_M · 35.9 t/s
- AMD Radeon RX 7900 GREQ4_K_M · 35.5 t/s
- AMD Radeon RX 7800 XTQ4_K_M · 35.8 t/s
- AMD Radeon RX 6800 XTQ4_K_M · 35 t/s
- Intel Arc B580 12GBQ3_K_M · 37.4 t/s
- Intel Arc B570 10GBQ3_K_M · 33.2 t/s
- Intel Arc Pro B50 16GBQ4_K_M · 29.9 t/s
- Intel Arc A770 16GBQ4_K_M · 35.4 t/s
- Intel Arc A770 8GBQ3_K_M · 31.4 t/s
- Intel Arc A750 8GBQ3_K_M · 31.4 t/s
- Intel Arc A580 8GBQ3_K_M · 31.4 t/s
- Intel Arc A380 6GBQ2_K · 30.5 t/s
- Intel Arc Pro A60 12GBQ3_K_M · 36.6 t/s
- Intel Arc Pro A50 6GBQ2_K · 30.7 t/s
- Intel Arc Pro A40 6GBQ2_K · 30.7 t/s
No GPU? Rent an RTX A6000 from $0.33/hr ↗
Prices as of Nov 26, 2026. Rates change; check RunPod for current pricing. Affiliate link: CanItRun may earn a commission. Doesn't affect the fit calculation above.
Notes
The first open model in Alibaba's Qwen4 series, released on December 4, 2026 under Apache 2.0, and the first time the architecture Qwen previewed in Qwen3.8-Flash-Next has shipped at a size people run at home. It is a mixture of experts: 35B backbone parameters with about 3B active per token (8 of 256 experts plus a shared one), plus a 20B n-gram embedding table and a 2B multi-token-prediction module, for 56.8B on disk. The n-gram table is a lookup of word-pair and word-triple embeddings that each token reads only a few rows of, so llama.cpp can leave it in system RAM or on the SSD. Of the 40 layers, 30 are Gated DeltaNet linear attention with a fixed-size state and 10 are Qwen Sparse Attention, so only 10 keep a cache that grows with the prompt, which is how it reaches a native 1,048,576-token context. It reads text, images and video. In Qwen's own chart it beats the dense Qwen3.8-27B on most agent and coding rows (DeepSWE v1.1 61.8 against 42.2, Terminal Bench 4.1 21.2 against 5.6) but not on GPQA Diamond (86.9 against 89.2), and lands close to the much larger Qwen3.8-Flash-Next. Thinking is on by default, with reasoning_effort xhigh, high, low or off.
Compare Qwen4 35B-A3B with other models
How to run Qwen4 35B-A3B locally
Q4_K_M needs 26.7 GB of VRAM: needs a 32 GB GPU such as the RTX 5090, plus 11.5 GB of free system RAM for its n-gram table.
llama.cpp (current master, Qwen4 support from PR #33626) or Ollama
# Unsloth's command: -hf downloads both files of the build plus the vision projector.
# -ot per_layer_token_embd=CPU keeps the 11.52 GB n-gram table in system RAM, not VRAM.
./llama.cpp/llama-server -hf unsloth/Qwen4-35B-A3B-GGUF:UD-Q4_K_M \
--load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0
# Faster decoding with the built-in multi-token-prediction head (no separate draft file):
# add --spec-type draft-mtp --spec-draft-n-max 2
# Thinking off: add --reasoning off and use --temp 0.7 --top-p 0.8 --presence-penalty 1.5Ollama
ollama run qwen4:35b-a3bLM Studio: Ollama has it on day one as qwen4:35b-a3b (36 to 37 GB, 1M context, text and images); its page does not say whether it keeps the n-gram table off the GPU, so this page's VRAM figures follow the llama.cpp command above. In llama.cpp, build current master: Qwen4 support landed in pull request #33626. LM Studio had not announced support at time of writing. On Macs, the mlx-community 4-bit builds are text only (no vision encoder, no MTP head), so use the GGUF for images. For servers, Qwen recommends SGLang, vLLM or TokenSpeed with the BF16 or official FP8 checkpoint.
Why this quantization? Q4_K_M is the quant this page's numbers use: Unsloth's UD-Q4_K_M is 35.18 GB, a 23.66 GB model file plus the 11.52 GB n-gram table. The command above keeps the table in system RAM, and this site counts it that way on a discrete GPU, so the card needs 26.7 GB at an 8k context; on a Mac, where both share one memory pool, the total is 39.6 GB. Smaller builds save less than their names suggest, because every build from UD-IQ1_S to UD-Q4_K_XL carries the same 11.52 GB IQ4_NL n-gram table: the UD-Q2_K_XL file is still 27.68 GB, though only 16.16 GB of it is on the GPU. In the table above, the Q3_K_M row is Unsloth's UD-Q3_K_XL and the Q2_K row is UD-Q2_K_XL, since no plain Q3_K_M or Q2_K was published.
Who is Qwen4 35B-A3B for?
Anyone with a 32 GB or larger GPU and about 12 GB of free system RAM, or a Mac with 48 GB or more, who wants a fast local agent model with a very long context window. On a 24 GB card it runs at Q4_K_M with some experts in system RAM, or fits outright at Unsloth's smaller UD-Q3_K_XL build.
Best for
- Coding and terminal agents: Qwen reports DeepSWE v1.1 61.8 and Terminal Bench 4.1 21.2, against 42.2 and 5.6 for Qwen3.8-27B
- Very long inputs: the full 1,048,576-token window adds 21.5 GB of KV cache on this site's math, because only 10 of 40 layers cache
- Fast decoding on modest hardware, since only about 3B parameters are read per token
- Image and video questions alongside text, through the vision projector file
Not ideal for
- Pure knowledge and reasoning questions: Qwen3.8-27B scores higher on GPQA Diamond (89.2 against 86.9)
- 16 GB cards: even UD-Q2_K_XL, below the quality this site recommends, needs 18.3 GB on the GPU with its table in system RAM, so experts still spill
- LM Studio or older llama.cpp builds, until they pick up Qwen4 support
So, which hardware is it for?
This is a model for a 32 GB card and up, as long as the PC has about 12 GB of system RAM free for the n-gram table. Each token reads only a few rows of that table, so Unsloth's llama.cpp command keeps it in system RAM, and this site counts it that way: at Q4_K_M the GPU holds the 23.66 GB model file, 26.7 GB with an 8k cache. That fits an RTX 5090 at about 216.2 tokens per second on this site's estimate (Unsloth measured about 175 with its slightly larger UD-Q4_K_XL build), and a 48 GB L40S or RTX A6000 at about 145.2 and 155.8. A Mac has one memory pool, so there both files count: 39.6 GB, which a 48 GB Mac holds (about 77.4 tokens per second on an M5 Max). On a 24 GB RTX 4090 or 3090, Q4_K_M is a little too big, and this site estimates about 87.1 tokens per second with some experts spilling to RAM; the smaller UD-Q3_K_XL build (the Q3_K_M row) fits outright at 21.9 GB. If a 24 GB card is all you have and the work is not agentic, Qwen3.8-27B fits it at Q5_K_M and scores higher on GPQA Diamond.
Frequently asked questions
- What are the VRAM requirements for Qwen4 35B-A3B?
- Qwen4 35B-A3B requires approximately 26.7 GB of VRAM at Q4_K_M quantization, 43.0 GB at Q8, and 80.7 GB at FP16. These numbers assume 8k context window; its hybrid attention stack caches far fewer than all layers, so VRAM grows much slower than linearly with context. On a discrete GPU those figures leave out its n-gram table, a lookup each token reads only a few rows of, which stays in system RAM: 11.5 GB at Q4_K_M and 21.8 GB at Q8. On a Mac or other unified-memory machine it shares the one memory pool, so add it to the total.
- How many parameters does Qwen4 35B-A3B have?
- Qwen4 35B-A3B has 56.8 billion total parameters, but only 3 billion are active per token thanks to its Mixture of Experts (MoE) architecture. This makes inference significantly faster than the total parameter count suggests.
- Can Qwen4 35B-A3B run on a 16 GB GPU?
- No. At Q4_K_M, Qwen4 35B-A3B needs 26.7 GB of VRAM, more than 16 GB. You will need a 32 GB GPU like the RTX 5090.
- Can Qwen4 35B-A3B run on a 24 GB GPU?
- No. Even at Q4_K_M, Qwen4 35B-A3B needs 26.7 GB. Consider a 32 GB card like the RTX 5090.
- What is the highest-quality quantization of Qwen4 35B-A3B that fits in 24 GB of VRAM?
- At Q3_K_M, Qwen4 35B-A3B needs 21.9 GB, the highest-quality quantization that fits in 24 GB of VRAM.
- What GPU do I need to run Qwen4 35B-A3B locally?
- A 32 GB GPU is the minimum. At Q4_K_M, Qwen4 35B-A3B needs 26.7 GB VRAM. Good option: RTX 5090 (32 GB).
- Can I run Qwen4 35B-A3B in the cloud?
- Yes. The cheapest RunPod setup we found that holds Qwen4 35B-A3B entirely in GPU memory at 8k context is 1× RTX A6000 at Q8_0, at roughly 121.9 tokens per second and from $0.33 per hour for the whole pod. Prices as of Nov 26, 2026; RunPod rates change, so check their pricing page for the current figure.
- How much VRAM does Qwen4 35B-A3B need?
- With the recommended Q4_K_M build, 26.7 GB of VRAM at an 8k context on this site's math, plus 11.52 GB of system RAM. Unsloth's 35.18 GB download is two files: a 23.66 GB model file the GPU holds, and the n-gram table, which llama.cpp keeps in system RAM because each token reads only a few rows of it. A 32 GB card such as the RTX 5090 runs it. On a Mac, where the GPU and the system share one memory pool, plan on 39.6 GB.
- Why is a 35B model a 56.8B download?
- Qwen's 35B counts the mixture-of-experts backbone. The checkpoint also carries a 20B n-gram embedding table, lookups of word pairs and word triples that the model reads only a few rows of per token, and a 2B multi-token-prediction module that speeds up decoding. With the vision encoder that comes to 56.8B parameters on disk.
- Can Qwen4 35B-A3B run on a 24 GB GPU like the RTX 4090?
- Yes, with a trade-off. Even with the n-gram table in system RAM, the Q4_K_M model file plus its cache needs 26.7 GB, a little more than a 24 GB card holds, so some experts spill to system RAM. Because only about 3B parameters are read per token, it stays fast: this site estimates about 87.1 tokens per second on an RTX 4090 and 85.8 on an RTX 3090 at Q4_K_M. The smaller UD-Q3_K_XL build fits the card outright at 21.9 GB, about 189.7 tokens per second on the 4090, and Unsloth suggests its UD-IQ4_XS build (a 20.52 GB model file) as the starting point for 24 GB cards.