Qwen4-35B-A3B
Hybrid Attention (Gated DeltaNet + Qwen Sparse Attention) with sparse MoE, N-gram Embedding, Gated Residual and MTP; vision encoder
Parameters
56.8B / 3.0B active
MoE total / active
Context
1,048,576 tokens
native
Modalities
text, image, video text
input → output
Benchmarks
#1/145
better than 99% of all scored models
Size class
#1/22
better than 95% of similar-size models
License
Apache License 2.0
About
Qwen4-35B-A3B (Qwen/Qwen4-35B-A3B) is the first open-weight model of Alibaba's Qwen4 generation: a multimodal (Image-Text-to-Text) causal language model with a vision encoder, released 4 December 2026 under Apache 2.0. The language backbone holds 35B parameters with 3B activated per token, plus 20B of n-gram embeddings (a 10,000,000-entry bigram/trigram table at decoder layer 2) and a 2B multi-token-prediction (MTP) module - 57B parameters in the released BF16 safetensors.
Architecturally it continues the Qwen3.8-Flash-Next hybrid-attention MoE design: 40 layers arranged as 10 x (3 x (Gated DeltaNet -> MoE) + 1 x (Qwen Sparse Attention -> MoE)), i.e. three linear-attention layers per full-attention layer (full_attention_interval: 4). Gated DeltaNet uses 32 value / 16 key-query linear-attention heads of dimension 128; the sparse full-attention layer uses 16 query and 2 key-value heads of dimension 256 with a 64-dim rotary component and a learned indexer (MQA, 4 query heads + 1 shared key head, head dim 128) that limits attention to a budget of 512 blocks / 2048 tokens. The sparse MoE block has 256 experts with 8 routed plus 1 shared expert per token and an expert intermediate dimension of 512, and residual flow is handled by a Gated Residual with 4 branches at bottleneck rank 256. Hidden size is 2048, vocabulary 248,320, and the native context length is 1,048,576 tokens.
Training is pre-training plus post-training, with MTP trained over multiple steps. The model is thinking-capable with controllable reasoning effort (xhigh, high, low, off, plus preserve_thinking) and takes text, image and video input. It is served by Transformers, vLLM, SGLang, TokenSpeed, llama.cpp, Ollama (qwen4:35b-a3b), Unsloth, mlx-vlm and LiteRT-LM, and its benchmark chart compares it with Qwen3.8-Flash-Next, Qwen3.8-27B and Inkling 2 Mini on coding, agentic, professional-work, healthcare-reasoning and video-understanding suites.
Training Data Pre-training & Post-training (card Model Overview); MTP trained with multi-steps; built on the same architecture and training techniques as Qwen4-Max. No public corpus, token count or data recipe is published.
Benchmark Scores
| Benchmark | Score | Date | Standing |
|---|---|---|---|
|
DeepSWE 1.1
coding_agent
|
61.80%
|
04.12.2026 |
#17/41
better than 60%
|
|
Terminal-Bench 4.1
coding_agent
|
21.20%
|
04.12.2026 |
#2/5
better than 75%
|
|
FrontierCode 2.0
coding_agent
|
16.10%
|
04.12.2026 |
#3/6
better than 60%
|
|
AA-Briefcase v1.1
general_agent
|
1486.00
|
04.12.2026 |
#5/8
better than 43%
|
|
Automation Bench-AA
agentic
|
57.90%
|
04.12.2026 |
#4/8
better than 57%
|
|
GPQA Diamond
stem_reasoning
|
86.90%
|
04.12.2026 |
#48/90
better than 46%
|
|
Chartography
multimodal_agent
|
27.80
|
04.12.2026 |
#8/12
better than 36%
|
|
NL2Repo-Bench
coding_agent
|
51.70
|
04.12.2026 |
#16/28
better than 44%
|
|
Apex-Agents
general_agent
|
59.00%
|
04.12.2026 |
#7/32
better than 81%
|
|
Work360
general_agent
|
42.90%
|
04.12.2026 |
#2/4
better than 67%
|
|
HealthBench Professional
general_capabilities
|
47.40%
|
04.12.2026 |
#1/4
better than 100%
|
|
Video-Index
video_understanding
|
52.90%
|
04.12.2026 |
#1/4
better than 100%
|
What is a good DeepSWE 1.1 score? What is a good Terminal-Bench 4.1 score? What is a good FrontierCode 2.0 score?
Hardware Requirements
Estimated VRAM per quantization at 4,096 tokens context — MoE: all experts must fit in VRAM, only 3.0B are active per token
| Quantization | Weights | KV Cache | Total VRAM | On your hardware |
|---|---|---|---|---|
| FP16 — 16-bit | 113.6 GB | 0.5 GB | 119.8 GB | Which GPUs can run it? Calculate on your GPU |
| INT8 — 8-bit | 56.8 GB | 0.2 GB | 59.9 GB | Which GPUs can run it? Calculate on your GPU |
| INT4 — 4-bit | 28.4 GB | 0.1 GB | 29.9 GB | Which GPUs can run it? Calculate on your GPU |
| FP4 — 4-bit | 28.4 GB | 0.1 GB | 29.9 GB | Which GPUs can run it? Calculate on your GPU |
Only datacenter GPUs — FP16 needs 119.8 GB. For consumer hardware, choose the INT4 build with a multi-GPU setup.
Consumer GPUs that fit this model with a single card (INT4):
Architecture
Hybrid Attention MoE with N-gram Embedding
- Parameters
- 56.8B
- Active params
- 3B
- Layers
- 40 30× Linear / Recurrent + 10× Full Attention
- Attention
- Hybrid 16:2 Hybrid Attention
- Experts
- 256 top-8
- Hidden
- 2048
- Head dim
- 256
- Vocabulary
- 248K
- Context
- 1M
Source: Hugging Face config.json · Qwen4MoeForConditionalGeneration · exact layer pattern · model repo
Training Pipeline
-
1
pretraining
Pre-training with MTP
Pre-training stage of the causal language model with vision encoder: 35B parameters with 3B activated, plus 20B n-gram embedding and 2B MTP parameters. The card lists 'Pre-training & Post-training' as the training stages and states the 1-layer MTP head is 'trained with multi-steps' (multi-token prediction). No data mix, token count, optimizer or schedule is documented.
-
2
other
Post-training
Post-training stage named by the card ('Training Stage: Pre-training & Post-training'); this repository ships the post-trained model. The card documents no SFT/RLHF/DPO breakdown, data mix, or hyperparameters for it. Post-training-consistent behaviour it does document: thinking mode on by default with reasoning_effort levels (xhigh, high, low, off) and preserve_thinking for cross-message context continuity.
Training & Evaluation Datasets
| Name | Role | Size | Modalities | Collection |
|---|---|---|---|---|
| datacurve/deep-swe | evaluation | — | — | |
| GPQA (Diamond) | evaluation | — | — | |
| harborframework/terminal-bench | evaluation | — | — |
Linked Resources
Qwen4-Max Blog Post
https://qwen.ai/blog?id=qwen4-max
Qwen4 Blog: llama.cpp and mlx-vlm Support
https://huggingface.co/blog/qwen4
Qwen4 in LiteRT-LM (LiteRT Community Blog)
https://huggingface.co/blog/litert-community/qwen4-in-litertlm
Qwen Cloud - Qwen4-35B-A3B Overview
https://www.qwencloud.com/models/qwen4-35b-a3b
SGLang - Qwen4-35B-A3B Cookbook
https://docs.sglang.io/cookbook/autoregressive/Qwen/Qwen4-35B-A3B
vLLM - Qwen4-35B-A3B Recipe
https://recipes.vllm.ai/Qwen/Qwen4-35B-A3B
TokenSpeed - Qwen4-35B-A3B Recipe
https://lightseek.org/tokenspeed/recipes/models#qwen4-35b-a3b
Unsloth Docs - Qwen4
https://unsloth.ai/docs/models/qwen4
Qwen4 Tokenizer Reference Implementation (README-tokenizer.md)
https://huggingface.co/Qwen/Qwen4-35B-A3B/blob/main/README-tokenizer.md
Qwen4 tokenizer-compat Chat Templates Directory
https://huggingface.co/Qwen/Qwen4-35B-A3B/tree/main/tokenizer-compat
Qwen4-35B-A3B Benchmark Results Chart
https://qianwen-res.oss-cn-beijing.aliyuncs.com/qwen4-35ba3b/score.png
vllm-project/vllm PR #34330
https://github.com/vllm-project/vllm/pull/34330
sgl-project/sglang PR #18467
https://github.com/sgl-project/sglang/pull/18467
Qwen4 Collection
https://huggingface.co/collections/Qwen/qwen4
Citation (BibTeX)
https://huggingface.co/Qwen/Qwen4-35B-A3B
Trend Analysis
Current
12
likes
downloads_all_time
downloads
No comments yet
Be the first to share your thoughts!