Qwen4-35B-A3B: the 1M-token multimodal MoE that runs on a single PC

Qwen4-35B-A3B shipped on December 4: it is the first open-weight model of Qwen's fourth generation, and it changes the one thing that has been a pain for local AI — context memory. There is no product to catalog here: there is a new architecture to understand, and the criterion to take home is when a 3B-active MoE gives you the context of a big model without spending the RAM of one.
The numbers that matter
The name is a trick to read. "35B-A3B" means 35 billion parameters total, of which ~3.8 billion are active per token (the "A3B" is the active part). But the declared total is not 35: the model adds ~20.5 billion per-layer n-gram embedding (PLE) parameters and a 2B MTP layer, for ~56B in total. It is multimodal (text, image, video in), has a native context window of 1,048,576 tokens (1M) and is licensed under Apache-2.0 — the same as gpt-oss, the most commercially permissive among open models. Model card.
| Checkpoint | Weight | Notes |
|---|---|---|
| BF16 | ~112 GB | full precision, needs a cluster |
| FP8 | ~56 GB | half the bits, one 64 GB+ GPU |
| GGUF Q4_K_M | ~31 GB | the real entry point for 32 GB of VRAM |
| oMLX oQ4 (Apple) | ~25–28 GB | for Apple Silicon, with MTP |
The number to remember: ~31 GB in Q4. It is the same weight class as a quantized gpt-oss-120b, but here the per-token cost is that of a 3B-active model, not a 120B.
Why RAM if only 3B are active
That is the right question, and the answer is the architecture. An MoE is not a "bigger" model: it is a model with 256 experts of which 8 (plus 1 shared) activate per token. The 35B total sit in memory, but the math work per token is that of a ~3.8B model. So:
- the RAM is there to hold the 35B (weights + PLE embeddings), not to compute them;
- the speed is that of a small model: decoding reads ~3.8B active weights per token, so the memory-bandwidth bottleneck is ~10x lower than on a dense model of comparable quality.
This is the point that separates Qwen4-35B-A3B from a dense 27B: on a 16 GB RTX 5070 Ti it does not fit whole, but on 32 GB (or a Mac with 36+ GB unified) it runs with a wide context at 3B speed. Qwen4 blog on Hugging Face.
The 1M context: Gated DeltaNet and the small cache
The real novelty is not the window, it is why it holds. Qwen4 uses a hybrid decoder: each block of four layers has three linear-attention layers (Gated DeltaNet) and one sparse-attention (QSA) layer. Linear attention keeps a fixed-size memory as it reads tokens — it does not accumulate a KV cache that grows with context like standard attention. The result is that the cache footprint drops drastically and 1M tokens become physically manageable on hardware a classic KV-cache model could never reach. Model card.
The QSA layer is the compromise: when it really needs to look far back, a small indexer groups tokens in fours, groups them by key and lets the current token read up to 2,048 selected tokens (512 groups). So it is neither "attention on everything" (quadratic cost) nor "short window": it is sparse, you only pay for the lookbacks that count. For RAG on big corpora or long-document analysis, this is the selection criterion: long context no longer costs you a huge RAM for the KV cache, but the model weights, which are already there.
PLE: quality without more compute
The ~20.5B PLE parameters live in the second decoder layer. They are not a model inside the model: they are an n-gram embedding table (bigrams and trigrams) with 10,000,000 rows. Each token reads only 16 rows (8 for the last 2 tokens, 8 for the previous 3) and mixes them. It is a way to give the model "n-gram memory" at near-zero cost: the 20.5B sit in memory but only 16 are used per token, so they do not lengthen decoding. That is why the model "sounds" richer than its active part suggests, without spending extra FLOPs.
How to run it
The simplest route is llama.cpp with the official GGUFs. Three commands, one per mode you need (GGUF repo):
# server (OpenAI API) with the Q4 quant
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M
# interactive CLI
llama cli -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M
# MTP speculative decoding: +22% speed measured on Apple M5 with Q4
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M --spec-type draft-mtp --spec-draft-n-max 3
On Mac there is also the MLX route with oMLX quants, which use custom Metal kernels for sparse attention and the gated residual, and offload the PLE to SSD when RAM runs out. Ollama supports it day-0: ollama run qwen4. Ollama.
Reasoning is controlled with reasoning_effort, four levels: off, low, high, xhigh. At high (the default) the model reasons more and costs more tokens; for quick tasks (classification, summary) low or off cut the bill and the latency.
The benchmarks, read honestly
Qwen4-35B-A3B "punches above its class" on the benchmarks Artificial Analysis uses for code and agents: Terminal-Bench 4.1 and FrontiersCode-AA put it at the level of Qwen3.8-Flash-Next, a much larger model, and better on some tasks. On GPQA Diamond it reaches 86.9. Artificial Analysis.
But the number to watch with a critical eye is the context. A "native" 1M tokens means the architecture holds it, not that you exploit it on every hardware: at 1M context even the reduced Gated DeltaNet cache demands serious RAM. On 32 GB of VRAM you get a wide context (tens of thousands of tokens) at a comfortable speed; the real 1M is the realm of 64 GB+ setups or FP8 checkpoints.
The limits, stated plainly
- It is not a laptop model. ~31 GB in Q4: you need 32 GB of VRAM or 36+ GB unified RAM. Below that, you offload part (slowing down) or drop to a more aggressive quant with quality loss.
- The 1M context is not free everywhere. The small cache makes it possible, but the RAM that holds the weights is still there. "Native 1M" ≠ "1M on 16 GB".
- The benchmarks are the vendor's and Artificial Analysis's. The agentic numbers (APEX-Agents, Terminal-Bench) are promising but should be read as a "model class", not a guarantee on your case.
- Multimodal in, text out. Image and video come in, there is no image generation: for that Qwen-Image remains, which is another thing.
In summary
Qwen4-35B-A3B is the first open model of the Qwen4 generation: 35B total (3.8B active), ~56B with the PLE embeddings, multimodal, 1M native context, Apache-2.0. The criterion to take home: a 3B-active MoE gives you the quality of a big model and the speed of a small one, and long context no longer costs you the KV cache but the weights, which fit in ~31 GB in Q4. It is the 32 GB of VRAM (or 36+ GB unified Mac) model for wide context and agentic work without a cluster. If you have 24 GB and want the Qwen family in general, the guide on sizing it to your hardware is the next step.
- How to size the Qwen family to the hardware you have: generation by generation
- Qwen: the open model with the best multilingual support
Sources
- Welcome Qwen 4: Cutting-edge intelligence on-device (Hugging Face blog)
- Qwen/Qwen4-35B-A3B — model card
- ggml-org/Qwen4-35B-A3B-GGUF — GGUF quants
- Qwen4-35B-A3B on Artificial Analysis
- Ollama — qwen4
Article generated with AI
Enjoyed this article?
Subscribe to the newsletter for new tutorials and guides.
Related Articles

Thinking Machines' Inkling: the open-weight looped family, from a 26B laptop model to a 975B cluster beast
MoE, 1M context, loops that re-run the middle layers: Inkling 2 Mini (3.4B active, ~20 GB) runs on a 32GB Mac, Inkling 2 Small feeds the clusters.

CompoundingKernel: the agent that writes GPU kernels on its own, the real numbers on SOL-ExecBench
A self-improving agent system beats hand-written kernels: 235 correct problems, 4.40x faster than the baseline, and the top of L1 since October 27. The bottleneck is not the agents: it is the measurements.

