Training

Pinned sources DeepSeek‑V3.2 report (arXiv 2512.02556, assets/paper.pdf @ a7e62ac) · DeepSeek‑V3.2‑Exp’s sources up to the shared base checkpoint · no training code is published

  1. Random initialisation
  2. Pre‑trainingDeepSeek-V314.8T4KNTPFIMrate 0.1MTPλ 0.3, then 0.1Balanceα 0.0001What trains: allMTP module
  3. Context 32KDeepSeek-V3≈ 62.9B32KNTPWhat trains: allYaRN, s = 40
  4. Context 128KDeepSeek-V3≈ 62.9B128KNTPWhat trains: all
  5. DeepSeek-V3-Base
  6. Off this path: DeepSeek-V3 2 stages
  7. SFTDeepSeek-V3not statednot statedSFTDistillationfrom DeepSeek-R1not statednot stated: tokens, context, what trains
  8. RLDeepSeek-V3not statednot statedGRPOnot statednot stated: tokens, context, what trains
  9. DeepSeek-V3
  10. From V3’s base: before or after its context extension, not stated
  11. Context 32KDeepSeek-V3.1630B32KNTPWhat trains: all
  12. Context 128KDeepSeek-V3.1209B128KNTPWhat trains: all
  13. DeepSeek-V3.1-Base
  14. V3.1-Base or a later checkpoint: not stated
  15. V3.1-Terminus base checkpoint
  16. Dense warm‑upDeepSeek-V3.2-Exp2.1B128KKLto main attentionWhat trains: indexer+ indexer
  17. Sparse trainingDeepSeek-V3.2-Exp943.7B128KLMKLselected positionsWhat trains: allsparse, top 2,048
  18. DeepSeek-V3.2 base
  19. DeepSeek-V3.2-Exp, September 2025, earlier release 2 stages
  20. Specialist distillationDeepSeek-V3.2-Expnot statednot statedDistillationfrom specialistsnot statednot stated: tokens, context, what trains
  21. Mixed RLDeepSeek-V3.2-Expnot statednot statedGRPOone stagenot statednot stated: tokens, context, what trains
  22. DeepSeek-V3.2-Exp
  23. Specialist distillationnot statednot statedDistillationfrom specialistsnot statednot stated: tokens, context, what trains
  24. Distilled checkpoint
  25. Mixed RLscaled upnot statednot statedGRPOone stagenot statednot stated: tokens, context, what trains
  26. DeepSeek-V3.2
  • tokens, log scale
  • derived: computed from stated numbers
  • NTPdashed: concluded, no source names it
  • not stated by the sources
  • the architecture changes
  • checkpoint
  • checkpoint, weights published
  • a join the sources leave unexplained

RL

×

Stage · DeepSeek-V3

GRPO with rule-based and model-based rewards.

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-V3 report writes this objective itself (eq. 26 to 28, p. 30), with a reward model trained from the V3 SFT checkpoints and rule-based rewards.

Compute
5K H800 GPU hours for SFT and RL together

Not disclosed Group size · The clip range (ε) · The KL weight (β) · Steps · Learning rate

What the terms meanRule-based reward · Reward model · SFT
Rule-based reward
A reward computed by a fixed check, such as whether the final answer matches the reference or the code passes its tests, with no model judging.
Reward model
A model learns to give a response a score, from responses people ranked, so that the preferred one scores higher.
SFT
The model is trained on examples of the answers wanted, prompts with their responses, by the cross-entropy of next-token prediction on the responses.
All settings5
Algorithm
GRPO: a group of outputs per question from the old policy, the advantage normalised within the group, a clipped ratio and a KL penalty to a reference model
Rewards
Rule-based where answers can be checked (formats, compilers and tests); a reward model trained from the V3 SFT checkpoints elsewhere
Prompts
Coding, mathematics, writing, role-playing and question answering
Self-feedback
DeepSeek-V3 with voting judges open-ended answers; the constitutional AI approach for broader contexts
Compute
5K H800 GPU hours for SFT and RL together
Sources4