DeepSeek · 2026-04 · Sparse MoE

DeepSeek-V4-Pro

DeepSeek-V4-Pro is a multi-query attention (MQA) transformer released by DeepSeek in 2026-04, with 61 layers, hidden size 7168 and a context window of 1,048,576 tokens.

Layer stack

Attention ×61 · Layers 61

Key facts

FamilyDeepSeek
Released2026-04
Params1,606.6 B
Active49 B
Context1,048,576 tokens
AttentionMQA (128:1)
Layers61
Hidden7,168
Heads128
Vocab129,280
PositionRoPE
NormRMSNorm
Activationsilu
Dtypefp8+fp4
Architecture classDeepseekV4ForCausalLM

Architecture overview

t₁ t₂ t₃ t₄ input tokens Embedding · Vocab 129,280 → Hidden 7,168 Q1 Q2 Q3 Qn KV1 Heads 128 KV heads 1 head dim 512 · RoPE Router E1 E2 E3 E4 E5 E6 E7 E8 +376… Shared expert ×1 top-6 of 384 experts · ≈ 49B params active per token × 61 transformer block Attention Feed-forward / MoE RMSNorm pre-norm Final norm · RMSNorm LM head → Vocab 129,280 p p p → next token MTP ×1 → +1 future tokens Position RoPE Dtype FP8+FP4 Context 1024K tok
Drawn from the shipped config.json · 61 layers / width 7,168 / context 1,048,576. Original diagram by this atlas.

Attention

multi-query attention (MQA) — 128 q-heads / 1 kv-heads. RoPE θ=10,000.

Feed-forward / MoE

It is a sparse mixture-of-experts with 384 routed experts and top-6 routing; about 49B parameters are active per token.

The configuration ships 1 extra multi-token-prediction (MTP) layers used to accelerate decoding.

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 DeepSeek-V4-Flash Base
ModelDeepSeek-V4-ProDeepSeek-V4-Flash BaseRatio
model_typedeepseek_v4deepseek_v4
architecturesDeepseekV4ForCausalLMDeepseekV4ForCausalLM
hidden_size71684096×1.75
num_hidden_layers6143×1.42
num_attention_heads12864×2.00
num_key_value_heads11≈1
head_dim512512≈1
hidden_actsilusilu
n_routed_experts384256×1.50
num_experts_per_tok66≈1
n_shared_experts11≈1
moe_intermediate_size30722048×1.50
qk_rope_head_dim6464≈1
q_lora_rank15361024×1.50
rope_theta1000010000≈1
max_position_embeddings10485761048576≈1
sliding_window128128≈1
rms_norm_eps0.0000010.000001≈1
vocab_size129280129280≈1
torch_dtypebfloat16bfloat16
num_nextn_predict_layers11≈1
attention_biasfalsefalse
attention_dropout00
bos_token_id00
eos_token_id11≈1
expert_dtypefp4fp8

Most similar architectures

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

Raw config fields

46 fields
architecturesDeepseekV4ForCausalLM
attention_biasfalse
attention_dropout0
bos_token_id0
eos_token_id1
expert_dtypefp4
hc_eps0.000001
hc_mult4
hc_sinkhorn_iters20
head_dim512
hidden_actsilu
hidden_size7168
index_head_dim128
index_n_heads64
index_topk1024
initializer_range0.02
max_position_embeddings1048576
model_typedeepseek_v4
moe_intermediate_size3072
n_routed_experts384
n_shared_experts1
norm_topk_probtrue
num_attention_heads128
num_experts_per_tok6
num_hidden_layers61
num_hash_layers3
num_key_value_heads1
num_nextn_predict_layers1
o_groups16
o_lora_rank1024
q_lora_rank1536
qk_rope_head_dim64
rms_norm_eps0.000001
rope_theta10000
routed_scaling_factor2.5
scoring_funcsqrtsoftplus
sliding_window128
swiglu_limit10
tie_word_embeddingsfalse
topk_methodnoaux_tc
torch_dtypebfloat16
transformers_version4.57.1
use_cachetrue
vocab_size129280
compress_rope_theta160000
compress_ratios128×31 + 4×30 + 0×1