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. Off this path: DeepSeek-V3.1, DeepSeek-V3.1-Terminus 2 stages
  15. Post‑trainingDeepSeek-V3.1not statednot statednot statednot statednot stated: tokens, context, objective, what trains
  16. DeepSeek-V3.1
  17. From V3.1 or from a base checkpoint: not stated
  18. UpdateDeepSeek-V3.1-Terminusnot statednot statedDistillationGRPOnot statednot stated: tokens, context, what trains
  19. DeepSeek-V3.1-Terminus
  20. V3.1-Base or a later checkpoint: not stated
  21. V3.1-Terminus base checkpoint
  22. Dense warm‑upDeepSeek-V3.2-Exp2.1B128KKLto main attentionWhat trains: indexer+ indexer
  23. Sparse trainingDeepSeek-V3.2-Exp943.7B128KLMKLselected positionsWhat trains: allsparse, top 2,048
  24. DeepSeek-V3.2 base
  25. Specialist distillationnot statednot statedDistillationfrom specialistsnot statednot stated: tokens, context, what trains
  26. Distilled checkpoint
  27. Mixed RLscaled upnot statednot statedGRPOone stagenot statednot stated: tokens, context, what trains
  28. 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

Mixed RL

×

One GRPO stage for reasoning, agents and alignment together, continued for thousands of steps from the distilled checkpoint, with synthesized agentic tasks.

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=1G1∣oi∣∑t=1∣oi∣(mi,tMi,t−βDi,t)mi,t=min⁡(ri,tA^i,t, rˉi,tA^i,t)rˉi,t=clip⁡(ri,t, 1−ε, 1+ε)\begin{aligned}J&=\frac1G\sum_{i=1}^{G}\frac1{|o_i|}\sum_{t=1}^{|o_i|}\big(m_{i,t}M_{i,t}-\beta D_{i,t}\big)\\m_{i,t}&=\min\big(r_{i,t}\hat A_{i,t},\ \bar r_{i,t}\hat A_{i,t}\big)\\\bar r_{i,t}&=\operatorname{clip}(r_{i,t},\,1-\varepsilon,\,1+\varepsilon)\end{aligned}

DeepSeek-V3.2 report, eq. 8; for one question, in the atlas’s letters m, r̄, D

What the letters mean

o1,…,oGo_1,\dots,o_G: responses sampled for one question by the policy that generated the data; ri,tr_{i,t}: the ratio of the current policy’s probability of token tt of oio_i to that policy’s; A^i,t=Ri−mean(R)\hat A_{i,t}=R_i-\mathrm{mean}(\boldsymbol R): the response’s outcome reward less its group’s mean; Mi,tM_{i,t}: 0 for a response of negative advantage whose mean log-ratio of the sampling to the current policy exceeds δ\delta, else 1 (eq. 9); ε\varepsilon: the clipping range; Di,tD_{i,t}: the unbiased KL estimate to the reference policy of eq. 7, of weight β\beta. Maximized; the report takes the expectation over questions.

Agentic tasks
1,827 synthesized environments; real code and search
Steps
thousands
Compute
more than 10% of pre-training
Rewards
rule-based; a generative reward model with rubrics

Not disclosed Group size · Learning rate · Trainable

Why

Merging reasoning, agent and human-alignment training into one RL stage balances performance across domains and avoids the catastrophic forgetting the report associates with multi-stage training. DeepSeek-V3.2 report §3, p. 6

Inference and training frameworks can route the same input to different experts; keeping the routing used in sampling makes training optimize the same experts, which the report found crucial for the stability of RL on mixture-of-experts models. DeepSeek-V3.2 report §3.1, p. 8

What the terms meanRule-based reward · Generative reward model · Catastrophic forgetting
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.
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.
Catastrophic forgetting
A model losing what it learned earlier as it is trained further on other tasks.
All settings9
Algorithm
GRPO (eq. 5), with reasoning, agent and human-alignment training merged into one stage
Stabilization
An unbiased KL estimate, the K3 estimator corrected by the ratio of current to sampling policy (eq. 7), its weight set per domain, weak or none for mathematics; negative sequences far off-policy masked out (eq. 8–9); the experts’ routing from sampling kept in training (Keep Routing); the sampling’s top-p and top-k masks kept in training (Keep Sampling Mask)
Rewards
Reasoning and agent tasks: a rule-based outcome reward, a length penalty and a language-consistency reward; general tasks: a generative reward model with rubrics of each prompt’s own
Tasks
Reasoning, agent and human-alignment training in one stage, with the agentic tasks below; the report says the model integrates the data distilled from the specialists and then undergoes thousands of steps of continued RL
Cold start
Reasoning within tool use started by prompting: system prompts ask the model to call tools inside its reasoning, and the trajectories it occasionally produces then seed RL
Agentic tasks
Code agent: 24,667 tasks in real environments, prompts extracted; search agent: 50,275, real, synthesized; general agent: 4,417 in 1,827 synthesized environments; code interpreter: 5,908, real, extracted (Table 1)
Steps
Thousands of steps of continued RL to the final checkpoints
Compute
A post-training budget of more than 10% of the pre-training cost
Attention
Sparse, in the same way as in the sparse continued pre-training
Sources9