# Qwen4 35B-A3B Architecture

> Canonical HTML page: https://sebastianraschka.com/llm-architecture-gallery/models/qwen4-35b-a3b/
> Part of: [LLM Architecture Gallery](https://sebastianraschka.com/llm-architecture-gallery/)

Qwen4 is a vision-language MoE. Its text decoder repeats three Gated DeltaNet layers followed by one Qwen Sparse Attention layer ten times. Each layer uses 8 of 256 routed experts and one shared expert per token.

## Specifications

| Field | Value |
| --- | --- |
| Organization | Alibaba Cloud |
| Release date | 2026-12-03 |
| Scale | 35B core, 3B active (8.6% active), plus 20B n-gram embeddings and 2B MTP |
| Decoder type | Sparse hybrid |
| Attention | 3:1 Gated DeltaNet and Qwen Sparse Attention (QSA). QSA uses 16 query heads and 2 KV heads. |
| Layer mix | 30 Gated DeltaNet + 10 QSA |
| Context window | 1,048,576 native |
| Vocabulary size | 248,320 (padded) |
| KV cache / token (bf16) | 20.625 KiB |
| KV cache scope | main keys and values plus pooled indexer keys |
| Distinctive highlight | Each gated residual read applies RMSNorm to the four residual branches before mixing them. At layer 2, bigram and trigram embeddings add information about nearby tokens. |
| AA Intelligence Index v5.0.2 | 24.7 |
| AA Intelligence Profile v5.0.2 | Knowledge Work 44.3 · Coding 18.1 · Science 8.5 · General 27.9 |
| AA Progress Index v1 | 299.7 ([Qwen4 35B A3B (Xhigh)](https://artificialanalysis.ai/models/qwen4-35b-a3b)) |
| Architecture diagram | https://sebastianraschka.com/llm-architecture-gallery/images/architectures/qwen4-35b-a3b.webp |

## Training and Post-Training

- **Pretraining data size**: Not disclosed
- **Pretraining notes**: Qwen confirms pretraining. The token count for this checkpoint is undisclosed.
  - Source: [Qwen4 model card](https://huggingface.co/Qwen/Qwen4-35B-A3B#model-overview)
- **Post-training methods**: undisclosed
- **Post-training notes**: Qwen identifies the released weights as post-trained. The model card does not specify the methods.
  - Source: [Qwen4 model card](https://huggingface.co/Qwen/Qwen4-35B-A3B)

## Related Architecture Concepts


## Primary Sources and Tools

- [Architecture source article](https://huggingface.co/Qwen/Qwen4-35B-A3B#model-overview)
- [Model configuration (Qwen/Qwen4-35B-A3B)](https://huggingface.co/Qwen/Qwen4-35B-A3B/blob/main/config.json)
- [Model license](https://huggingface.co/Qwen/Qwen4-35B-A3B/blob/main/LICENSE)
- [Estimate memory for Qwen4 35B-A3B](https://sebastianraschka.com/llm-architecture-gallery/memory-calculator/?model=qwen4-35b-a3b)
