Qwen · 2025-04 · Sparse MoE
Qwen3 30B A3B
Qwen3 30B A3B is a grouped-query attention (GQA) transformer released by Qwen in 2025-04, with 48 layers, hidden size 2048 and a context window of 262,144 tokens.
Layer stack
Attention ×48 · Layers 48
Key facts
| Family | Qwen |
|---|---|
| Released | 2025-04 |
| Params | 30.4 B |
| Active | 3.2 B |
| Context | 262,144 tokens |
| Attention | GQA (32:4) |
| Layers | 48 |
| Hidden | 2,048 |
| Heads | 32 |
| Vocab | 151,936 |
| Position | RoPE |
| Norm | RMSNorm |
| Activation | silu |
| Dtype | bf16 |
| Architecture class | Qwen3MoeForCausalLM |
Architecture overview
Attention
grouped-query attention (GQA) — 32 q-heads / 4 kv-heads. RoPE θ=10,000,000.
Feed-forward / MoE
It is a sparse mixture-of-experts with 128 routed experts and top-8 routing; about 3.2B 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 235B A22B
| Model | Qwen3 30B A3B | Qwen3 235B A22B | Ratio |
|---|---|---|---|
| model_type | qwen3_moe | qwen3_moe | = |
| architectures | Qwen3MoeForCausalLM | Qwen3MoeForCausalLM | = |
| hidden_size | 2048 | 4096 | ×0.500 |
| num_hidden_layers | 48 | 94 | ×0.511 |
| num_attention_heads | 32 | 64 | ×0.500 |
| num_key_value_heads | 4 | 4 | ≈1 |
| head_dim | 128 | 128 | ≈1 |
| intermediate_size | 6144 | 12288 | ×0.500 |
| hidden_act | silu | silu | = |
| num_experts_per_tok | 8 | 8 | ≈1 |
| moe_intermediate_size | 768 | 1536 | ×0.500 |
| rope_theta | 10000000 | 5000000 | ×2.00 |
| max_position_embeddings | 262144 | 262144 | ≈1 |
| rms_norm_eps | 0.000001 | 0.000001 | ≈1 |
| vocab_size | 151936 | 151936 | ≈1 |
| torch_dtype | bfloat16 | bfloat16 | = |
| attention_bias | false | false | = |
| attention_dropout | 0 | 0 | = |
| bos_token_id | 151643 | 151643 | ≈1 |
| decoder_sparse_step | 1 | 1 | ≈1 |
| eos_token_id | 151645 | 151645 | ≈1 |
| initializer_range | 0.02 | 0.02 | ≈1 |
| max_window_layers | 48 | 94 | ×0.511 |
| norm_topk_prob | true | true | = |
| num_experts | 128 | 128 | ≈1 |
| output_router_logits | false | false | = |
Most similar architectures
- Hunyuan-TurboS 30B A3B (Hunyuan, 2026-05) 1.000
- Qwen3.6 35B A3B (Qwen, 2026-04) 0.999
- GPT-OSS 120B (OpenAI, 2025-08) 0.997
- GLM-4.5-Air (GLM, 2025-07) 0.997
- Qwen3-Next 80B A3B (Qwen, 2025-09) 0.997
- Qwen3-Coder-Next (Qwen, 2026-01) 0.997
Similarity values range from 0 (no shared categorical features) to 1 (identical profiles).
Raw config fields
31 fields
| architectures | Qwen3MoeForCausalLM |
|---|---|
| attention_bias | false |
| attention_dropout | 0 |
| bos_token_id | 151643 |
| decoder_sparse_step | 1 |
| eos_token_id | 151645 |
| head_dim | 128 |
| hidden_act | silu |
| hidden_size | 2048 |
| initializer_range | 0.02 |
| intermediate_size | 6144 |
| max_position_embeddings | 262144 |
| max_window_layers | 48 |
| model_type | qwen3_moe |
| moe_intermediate_size | 768 |
| norm_topk_prob | true |
| num_attention_heads | 32 |
| num_experts | 128 |
| num_experts_per_tok | 8 |
| num_hidden_layers | 48 |
| num_key_value_heads | 4 |
| output_router_logits | false |
| rms_norm_eps | 0.000001 |
| rope_theta | 10000000 |
| router_aux_loss_coef | 0.001 |
| tie_word_embeddings | false |
| torch_dtype | bfloat16 |
| transformers_version | 4.51.0 |
| use_cache | true |
| use_sliding_window | false |
| vocab_size | 151936 |