Qwen 4 35B A3B: Specs, Engram, MTP and How It Works
Dec 5, 2026

Qwen 4 35B A3B: Specs, Engram, MTP and How It Works

Qwen 4 35B A3B explained: 35B MoE with ~3B active, a 20B engram table, MTP head, 1M context and Apache-2.0. Full specs, why the file is 36GB, and settings.

Quick answer: Qwen 4 35B A3B (Qwen/Qwen4-35B-A3B) is Alibaba's first open-weight Qwen4 model, released on December 3–4, 2026 under Apache-2.0. It is a mixture-of-experts model with 35B parameters and about 3B active per token. On top of that sit a 20B n-gram embedding table (the "engram") and a 2B multi-token-prediction (MTP) head. It reads text, images and video, has a native 1,048,576-token context, and supports four reasoning levels (xhigh, high, low, off). Its file is 30–40GB at 4-bit because of the engram table, but that table can stay on an SSD. So the model runs on far less memory than the download size suggests.

The single most-asked question in launch threads was "why is the download so big?" The second was "what is A3B anyway?" Both have the same answer: Qwen4-35B-A3B has three different parameter counts that do three different jobs. Once you see which part needs to be in GPU memory and which does not, its hardware needs and its speed both make sense.

Sources and scope: specs come from the official Hugging Face model card and Hugging Face's launch post. Quantization data comes from Unsloth's documentation. Everything was checked on December 5, 2026. We have not run our own benchmarks. Where the model card and the HF blog give different numbers, we show both.

Qwen4-35B-A3B specs

SpecValue
DeveloperAlibaba Qwen Team
ReleaseDec 3–4, 2026
LicenseApache-2.0
Main parameters35B total
Active per token~3B (model card); ~3.8B (HF blog)
N-gram embedding20B (card); ~20.5B (HF blog)
MTP head2B, 1 layer, trained for multi-step drafting
Total on disk (BF16)~56B parameters (HF blog)
Layers40
Layout10 × (3 × Gated DeltaNet → MoE, 1 × Qwen Sparse Attention → MoE)
Experts256, with 8 routed + 1 shared active
Hidden size2,048
Vocabulary248,320 (padded)
Context1,048,576 tokens native
Input / outputText, image, video → text
CheckpointsBF16, FP8 (official); GGUF, MLX, NVFP4 (community and partners)

The three parameter counts, explained

35B is the expert pool. Each MoE layer has 256 small experts. A router picks 8 of them for each token, and 1 shared expert always runs. That is why only about 3B parameters do work on each token. "A3B" in the name means "active 3B." Fewer active parameters mean faster generation, so the model runs at speeds closer to a 3B dense model than a 35B one.

20B is the engram table. In the second layer, the model looks up the last two and last three tokens in a table of 10 million bigram and trigram entries. Hugging Face's write-up says each token reads just 16 rows of this table per step. The table is huge, but each read is tiny. That access pattern is why runtimes can memory-map it from an SSD instead of loading it into VRAM. Unsloth says moving it to SSD saves over 30% of RAM and VRAM.

2B is the MTP head. One extra layer predicts tokens ahead of the main model, so the runtime can draft and verify several tokens at once (speculative decoding). Unsloth measured about 1.3× faster decoding, and recommends draft depth 2. Every Unsloth GGUF includes the MTP head, so there is no separate file to download.

This is the module most launch coverage skipped. It explains why one person runs the model on an 8GB card while another cannot fit it in 24GB. The difference is usually where the engram lives and whether the experts are cached on the GPU.

How the attention works

Qwen 4 uses a hybrid design. Three out of every four layers use Gated DeltaNet, a linear-attention layer that keeps a fixed-size memory instead of a growing KV cache. Every fourth layer uses Qwen Sparse Attention (QSA). QSA's small indexer groups tokens in blocks of four, picks up to 512 blocks per query, and reads up to 2,048 tokens. Only 10 of the 40 layers keep a normal KV cache.

In practice, that means:

  • Long context is cheap. The KV cache grows four times slower than in a full-attention model of the same depth. That is what makes 1M native context realistic.
  • Prefill is fast. Linear layers process long prompts quickly.
  • Very long recall can slip. Sparse attention only looks at selected blocks. In one community test on a single RX 7900 XTX, Qwen4 was slower than Qwen3.8-Flash-Next at reading 200K-token prompts. That is one user's report, not a lab result.

Qwen 4 also introduces Gated Residual connections: four parallel residual streams per token, mixed by learned gates before each block. Qwen credits this for stable training at much larger scale on Qwen4-Max.

From the official model card:

SettingThinking modeNon-thinking mode
temperature1.00.7
top_p0.950.80
top_k2020
presence_penalty0.01.5
repetition_penalty1.01.0
  • Reasoning effort: high is the default. Use xhigh for hard problems and low or off for quick replies. enable_thinking=False equals off.
  • Output budget for agents: Qwen suggests up to 262,144 tokens for reasoning and 131,072 tokens for the final answer.
  • Small quants: Unsloth found 1–2-bit quants sometimes loop. Set min_p=0.01 and presence_penalty=1.5.
  • Tokenizer: Qwen ships a reference tokenizer that needs tiktoken and trust_remote_code=True. A Jinja chat template is included for compatibility, but the token IDs can differ.

One detail matters when you compare it with older Qwen models. Some testers point out that Qwen 3.8 defaulted to a higher effort level, while Qwen 4 defaults to high. If you compare the two, set the effort level explicitly on both.

How to run Qwen4-35B-A3B

RouteCommand or model IDNotes
Ollamaollama run qwen436–37GB default tag; see Ollama guide
llama.cppllama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_MNeeds PR #33626 or newer
Unslothunsloth/Qwen4-35B-A3B-GGUFMoves the engram to SSD automatically
Apple SiliconoMLX, or mlx-community/Qwen4-35B-A3B-4bit-textmlx-lm support still landing
vLLM / SGLangvllm/vllm-openai:qwen4, lmsysorg/sglang:qwen4HF measured ~330 tok/s single-request on one H200
Hosted APIqwen4-35b-a3b on QwenCloud$0.06 / $0.36 per 1M tokens; see API guide

Hardware sizing by quant is in Qwen 4 VRAM requirements. Scores are in Qwen 4 35B benchmarks.

Don't want to manage quants and engram files before you even know whether the model suits you? Try Qwen 4 35B in glm5.app chat first, with no download. If the answers hold up, then move on to the local setup.

Who Qwen4-35B-A3B is for

  • Good fit: developers with 16–32GB of GPU or unified memory who want long context, vision and a commercially usable license in one local model.
  • Good fit: teams that need cheap hosted calls. At $0.06 per million input tokens, it is one of the cheapest capable models on QwenCloud.
  • Weaker fit: hard multi-file coding, where Qwen3.8-Flash-Next still scores higher on Qwen's own FrontierCode and Terminal-Bench numbers.
  • Weaker fit: non-English work in less common languages. Several early users report weaker translation. That is anecdotal, so test your own language first.

FAQ

What does A3B mean in Qwen 4 35B A3B? It means about 3 billion parameters are active per token, out of 35 billion in the expert layers.

Why is the Qwen4-35B-A3B GGUF 30–40GB? The file includes the 20B-parameter engram table. That table can be read from an SSD at runtime, so you need less RAM or VRAM than the file size.

Is Qwen4-35B-A3B multimodal? Yes. It accepts text, image and video input natively and outputs text.

Can I use Qwen4-35B-A3B commercially? Yes. It is released under Apache-2.0.

Does it have a non-thinking mode? Yes. Set reasoning_effort to off or enable_thinking to False, and use the non-thinking sampling settings above.

The short version

Qwen4-35B-A3B is a 35B expert pool that runs like a 3B model, plus a 20B lookup table you can keep on disk, plus a small head that drafts tokens ahead. Learn those three parts and you can predict its speed, its memory use and its file size. To see it in action before you download 30GB, chat with Qwen 4 35B on glm5.app. You can also check its answers against GLM 5.4 in the same window.

Sources

Checked December 5, 2026.

Start Using GLM 5 Today

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