Training

Pinned sources DeepSeek‑V4 report (arXiv 2606.19348v1) · model card (deepseek‑ai/DeepSeek‑V4‑Pro @ b5968e9) · no training code is published

  1. Start of training
  2. Pre‑training 4Kdense attention4KNTPFIMMTPλ 0.3, then 0.1Balanceweight 0.0001What trains: alldense, MTP module
  3. Pre‑training 16Kdense attention16KNTPFIMMTPλ 0.3, then 0.1Balanceweight 0.0001What trains: all
  4. Indexer warm‑upa short stagenot statedKLto main attentionWhat trains: indexerindexernot stated: context
  5. Pre‑training 64Ksparse attention64KNTPFIMMTPλ 0.3, then 0.1Balanceweight 0.0001What trains: allsparse, top 1,024
  6. Pre‑training 1Msparse attention1MNTPFIMMTPλ 0.3, then 0.1Balanceweight 0.0001What trains: all
  7. DeepSeek-V4-Pro-Base
  8. Specialists: SFTone model per domainnot statedSFTnot statedMXFP4 expertsnot stated: context, what trains
  9. Specialists: RLone model per domainnot statedGRPOnot statednot stated: context, what trains
  10. Domain specialists
  11. Where the student starts: not stated
  12. On‑policy distillationmore than ten teachersnot statedOPDreverse KL, full vocabularynot statednot stated: context, what trains
  13. DeepSeek V4-Pro

Not stated for any stage: tokens.

  • NTPdashed: concluded, no source names it
  • not stated by the sources
  • the architecture changes
  • checkpoint
  • checkpoint, weights published
  • a join the sources leave unexplained

Specialists: RL

×

Each specialist is then trained with GRPO on domain prompts and rewards, under the length penalty and context window of its reasoning effort.

GRPO, group relative policy optimization

For each prompt the model writes a group of answers; each is scored and compared with the group’s mean, and the model is moved toward the answers above it, by a step clipped near the policy that wrote them and with a penalty for leaving a reference model.

J=1G∑i=1G(min⁡(wiAi, wˉiAi)−βDi)wˉi=clip⁡(wi, 1−ε, 1+ε)\begin{aligned}J&=\frac1G\sum_{i=1}^{G}\Big(\min\big(w_iA_i,\ \bar w_iA_i\big)-\beta D_i\Big)\\\bar w_i&=\operatorname{clip}(w_i,\,1-\varepsilon,\,1+\varepsilon)\end{aligned}

DeepSeek-R1 paper, eq. 1 to 3, and DeepSeek-V3 report, eq. 26 to 28; for one prompt, in the atlas’s letters w, w̄, D

What the letters mean

wiw_i: answer ii’s probability under the model being trained over its probability under the policy that wrote it; AiA_i: its reward less the group’s mean, over the group’s standard deviation; DiD_i: a KL penalty to the reference model; GG: the group size; ε\varepsilon, β\beta: hyper-parameters. Maximized.

The DeepSeek-V4 report names GRPO, with hyper-parameters closely aligned with DeepSeek’s earlier work, and writes no equation.

Reasoning efforts
three modes, a length penalty and context window each
Rewards
verifiers; the actor as generative reward model

Not disclosed Group size · Clipping and KL weight · Steps · Learning rate · Trainable

Why

Training the actor as its own generative reward model joins judging to generating: its reasoning goes into its scores, and few human annotations are needed. DeepSeek-V4 report §5.1.1, p. 30

What the terms meanReasoning effort · Generative reward model
Reasoning effort
How much the model may reason before it answers: a level given in its prompt, which training ties to a token budget or a length penalty.
Generative reward model
A language model used as a judge: it writes an assessment of a response, here against rubrics, and gives a score or a verdict.
All settings4
Algorithm
GRPO, its hyper-parameters closely aligned with DeepSeek’s earlier work
Reasoning efforts
Specialists trained under different RL configurations for three modes (Non-think, Think High, Think Max), each with its own length penalty and context window
Rewards
Rule-based verifiers or test cases for easy-to-verify tasks; for hard-to-verify ones, rubric-guided data judged by a generative reward model, which is the actor itself, trained by RL with it; no scalar reward model
Number format
Quantization-aware training in post-training: the MoE experts’ weights and the indexer’s query–key path in MXFP4, its index scores in BF16; teacher and reference models included
Sources5