Qwen · 2025-04 · Dense

Qwen3 32B

Qwen3 32B is a grouped-query attention (GQA) transformer released by Qwen in 2025-04, with 64 layers, hidden size 5120 and a context window of 40,960 tokens.

Layer stack

Attention ×64 · Layers 64

Key facts

FamilyQwen
Released2025-04
Params32.1 B
Context40,960 tokens
AttentionGQA (64:8)
Layers64
Hidden5,120
Heads64
Vocab151,936
PositionRoPE
NormRMSNorm
Activationsilu
Dtypebf16
Architecture classQwen3ForCausalLM

Architecture overview

t₁ t₂ t₃ t₄ input tokens Embedding · Vocab 151,936 → Hidden 5,120 Q1 Q2 Q3 Qn KV1 KV2 KV3 KVn Heads 64 KV heads 8 head dim 128 · RoPE FFN · SwiGLU FFN dim 25,600 × 64 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 40K tok
Drawn from the shipped config.json · 64 layers / width 5,120 / context 40,960. Original diagram by this atlas.

Attention

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

Feed-forward / MoE

It is a dense model: all 32.1B parameters participate in computing every 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 30B A3B
ModelQwen3 32BQwen3 30B A3BRatio
model_typeqwen3qwen3_moe
architecturesQwen3ForCausalLMQwen3MoeForCausalLM
hidden_size51202048×2.50
num_hidden_layers6448×1.33
num_attention_heads6432×2.00
num_key_value_heads84×2.00
head_dim128128≈1
intermediate_size256006144×4.17
hidden_actsilusilu
num_experts_per_tok8
moe_intermediate_size768
rope_theta100000010000000×0.100
max_position_embeddings40960262144×0.156
rms_norm_eps0.0000010.000001≈1
vocab_size151936151936≈1
torch_dtypebfloat16bfloat16
attention_biasfalsefalse
attention_dropout00
bos_token_id151643151643≈1
eos_token_id151645151645≈1
initializer_range0.020.02≈1
max_window_layers6448×1.33
tie_word_embeddingsfalsefalse
transformers_version4.51.04.51.0
use_cachetruetrue
use_sliding_windowfalsefalse

Most similar architectures

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

Raw config fields

24 fields
architecturesQwen3ForCausalLM
attention_biasfalse
attention_dropout0
bos_token_id151643
eos_token_id151645
head_dim128
hidden_actsilu
hidden_size5120
initializer_range0.02
intermediate_size25600
max_position_embeddings40960
max_window_layers64
model_typeqwen3
num_attention_heads64
num_hidden_layers64
num_key_value_heads8
rms_norm_eps0.000001
rope_theta1000000
tie_word_embeddingsfalse
torch_dtypebfloat16
transformers_version4.51.0
use_cachetrue
use_sliding_windowfalse
vocab_size151936