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

Alibaba56.8B params3B active (MoE)1M contextApache 2.0Commercial use ok
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.

Gated DeltaNetlinear attention, fixed-size stateQwen Sparse Attention2 KV heads × 256 dim, 2,048-token budget
layer 13:1 pattern × 10layer 40

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.

0255075100128k512k768k1M21.5 GBQwen4 35B85.9 GBall 40 layers
Qwen4 35B-A3B: 10 of 40 layers cacheThe same model if all 40 layers cached keys and values

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.

QuantWeightsKV cacheTotalSystem RAM
FP32143.7 GB0.17 GB161.1 GB81.9 GB
BF1671.8 GB0.17 GB80.7 GB41.0 GB
FP1671.8 GB0.17 GB80.7 GB41.0 GB
Q8_038.2 GB0.17 GB43.0 GB21.8 GB
Q6_K29.2 GB0.17 GB32.9 GB21.8 GB
Q5_K_M27.0 GB0.17 GB30.4 GB15.4 GB
Q4_K_Mrec23.7 GB0.17 GB26.7 GB11.5 GB
Q3_K_M19.4 GB0.17 GB21.9 GB11.5 GB
Q2_K16.2 GB0.17 GB18.3 GB11.5 GB
NVFP4cuda26.4 GB0.17 GB29.8 GB20.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.

DeepSWE v1.1
Qwen4 35B-A3B
61.8
Qwen3.8-27B
42.2
Terminal Bench 4.1
Qwen4 35B-A3B
21.2
Qwen3.8-27B
5.6
NL2Repo
Qwen4 35B-A3B
51.7
Qwen3.8-27B
42.3
APEX-Agents v1.1
Qwen4 35B-A3B
59.0
Qwen3.8-27B
47.5
AutomationBench-AA
Qwen4 35B-A3B
57.9
Qwen3.8-27B
48.2
Work360
Qwen4 35B-A3B
42.9
Qwen3.8-27B
37.1
HealthBench Professional
Qwen4 35B-A3B
47.4
Qwen3.8-27B
29.8
FrontierCode-AA 2.0
Qwen4 35B-A3B
16.1
Qwen3.8-27B
14.9
VideoIndex
Qwen4 35B-A3B
52.9
Qwen3.8-27B
51.9
Chartography
Qwen4 35B-A3B
27.8
Qwen3.8-27B
27.8
GPQA Diamond
Qwen4 35B-A3B
86.9
Qwen3.8-27B
89.2

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)

Show 52 more
Plus 31 GPUs that run it with CPU offload (slower)

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.

Hugging Face ↗Ollama ↗Released 2026-12-04

Compare Qwen4 35B-A3B with other models

How to run Qwen4 35B-A3B locally

8244880160320

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.5

Ollama

ollama run qwen4:35b-a3b

LM 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.