Qwen · 2026-01 · Sparse MoE

Qwen3-Coder-Next

Qwen3-Coder-Next is a grouped-query attention (GQA) transformer released by Qwen in 2026-01, with 48 layers, hidden size 2048 and a context window of 262,144 tokens.

Layer stack

Linear ×36 Attention ×12 · Layers 48

Key facts

FamilyQwen
Released2026-01
Params78.7 B
Active2.9 B
Context262,144 tokens
AttentionGQA (16:2)
Layers48
Hidden2,048
Heads16
Vocab151,936
PositionRoPE
NormRMSNorm
Activationsilu
Dtypebf16
Architecture classQwen3NextForCausalLM

Architecture overview

t₁ t₂ t₃ t₄ input tokens Embedding · Vocab 151,936 → Hidden 2,048 Q1 Q2 Q3 Qn KV1 KV2 Heads 16 KV heads 2 head dim 256 · RoPE Router E1 E2 E3 E4 E5 E6 E7 E8 +504… Shared expert ×1 top-10 of 512 experts · ≈ 2.9B params active per token × 48 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 · 48 layers / width 2,048 / context 262,144. Original diagram by this atlas.

Attention

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

Feed-forward / MoE

It is a sparse mixture-of-experts with 512 routed experts and top-10 routing; about 2.9B 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-Next 80B A3B
ModelQwen3-Coder-NextQwen3-Next 80B A3BRatio
model_typeqwen3_nextqwen3_next
architecturesQwen3NextForCausalLMQwen3NextForCausalLM
hidden_size20482048≈1
num_hidden_layers4848≈1
num_attention_heads1616≈1
num_key_value_heads22≈1
head_dim256256≈1
intermediate_size51205120≈1
hidden_actsilusilu
num_experts_per_tok1010≈1
moe_intermediate_size512512≈1
rope_theta500000010000000×0.500
max_position_embeddings262144262144≈1
rms_norm_eps0.0000010.000001≈1
vocab_size151936151936≈1
torch_dtypebfloat16bfloat16
attention_biasfalse
attention_dropout00
bos_token_id151643151643≈1
decoder_sparse_step11≈1
eos_token_id151645151645≈1
full_attention_interval44≈1
initializer_range0.020.02≈1
linear_conv_kernel_dim44≈1
linear_key_head_dim128128≈1
linear_num_key_heads1616≈1

Most similar architectures

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

Raw config fields

38 fields
architecturesQwen3NextForCausalLM
attention_biasfalse
attention_dropout0
bos_token_id151643
decoder_sparse_step1
eos_token_id151645
full_attention_interval4
head_dim256
hidden_actsilu
hidden_size2048
initializer_range0.02
intermediate_size5120
linear_conv_kernel_dim4
linear_key_head_dim128
linear_num_key_heads16
linear_num_value_heads32
linear_value_head_dim128
max_position_embeddings262144
model_typeqwen3_next
moe_intermediate_size512
norm_topk_probtrue
num_attention_heads16
num_experts512
num_experts_per_tok10
num_hidden_layers48
num_key_value_heads2
output_router_logitsfalse
partial_rotary_factor0.25
rms_norm_eps0.000001
rope_theta5000000
router_aux_loss_coef0.001
shared_expert_intermediate_size512
tie_word_embeddingsfalse
torch_dtypebfloat16
transformers_version4.57.0.dev0
use_cachetrue
use_sliding_windowfalse
vocab_size151936