Qwen · 2025-04 · Sparse MoE

Qwen3 235B A22B

Qwen3 235B A22B is a grouped-query attention (GQA) transformer released by Qwen in 2025-04, with 94 layers, hidden size 4096 and a context window of 262,144 tokens.

Layer stack

Attention ×94 · Layers 94

Key facts

FamilyQwen
Released2025-04
Params234.6 B
Active21.7 B
Context262,144 tokens
AttentionGQA (64:4)
Layers94
Hidden4,096
Heads64
Vocab151,936
PositionRoPE
NormRMSNorm
Activationsilu
Dtypebf16
Architecture classQwen3MoeForCausalLM

Architecture overview

t₁ t₂ t₃ t₄ input tokens Embedding · Vocab 151,936 → Hidden 4,096 Q1 Q2 Q3 Qn KV1 KV2 KV3 KVn Heads 64 KV heads 4 head dim 128 · RoPE Router E1 E2 E3 E4 E5 E6 E7 E8 +120… top-8 of 128 experts · ≈ 21.7B params active per token × 94 transformer block Attention Feed-forward / MoE RMSNorm pre-norm Final norm · RMSNorm LM head → Vocab 151,936 p p p → next token Position RoPE Dtype BF16 Context 256K tok
Drawn from the shipped config.json · 94 layers / width 4,096 / context 262,144. Original diagram by this atlas.

Attention

grouped-query attention (GQA) — 64 q-heads / 4 kv-heads. RoPE θ=5,000,000.

Feed-forward / MoE

It is a sparse mixture-of-experts with 128 routed experts and top-8 routing; about 21.7B parameters are active per token.

Field-level comparison

Compared against the previous model of the same lab; where none exists, against the structurally closest model. The ratio column is this model divided by the comparison model.

Full-field comparison vs predecessor Qwen3 0.6B
ModelQwen3 235B A22BQwen3 0.6BRatio
model_typeqwen3_moeqwen3
architecturesQwen3MoeForCausalLMQwen3ForCausalLM
hidden_size40961024×4.00
num_hidden_layers9428×3.36
num_attention_heads6416×4.00
num_key_value_heads48×0.500
head_dim128128≈1
intermediate_size122883072×4.00
hidden_actsilusilu
num_experts_per_tok8
moe_intermediate_size1536
rope_theta50000001000000×5.00
max_position_embeddings26214440960×6.40
rms_norm_eps0.0000010.000001≈1
vocab_size151936151936≈1
torch_dtypebfloat16bfloat16
attention_biasfalsefalse
attention_dropout00
bos_token_id151643151643≈1
decoder_sparse_step1
eos_token_id151645151645≈1
initializer_range0.020.02≈1
max_window_layers9428×3.36
norm_topk_probtrue
num_experts128
output_router_logitsfalse

Most similar architectures

Similarity values range from 0 (no shared categorical features) to 1 (identical profiles).

Raw config fields

31 fields
architecturesQwen3MoeForCausalLM
attention_biasfalse
attention_dropout0
bos_token_id151643
decoder_sparse_step1
eos_token_id151645
head_dim128
hidden_actsilu
hidden_size4096
initializer_range0.02
intermediate_size12288
max_position_embeddings262144
max_window_layers94
model_typeqwen3_moe
moe_intermediate_size1536
norm_topk_probtrue
num_attention_heads64
num_experts128
num_experts_per_tok8
num_hidden_layers94
num_key_value_heads4
output_router_logitsfalse
rms_norm_eps0.000001
rope_theta5000000
router_aux_loss_coef0.001
tie_word_embeddingsfalse
torch_dtypebfloat16
transformers_version4.51.0
use_cachetrue
use_sliding_windowfalse
vocab_size151936