Training

Pinned sources DeepSeek‑V4 report (arXiv 2606.19348v1) · model card (deepseek‑ai/DeepSeek‑V4‑Flash @ 60d8d70) · 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 512
  6. Pre‑training 1Msparse attention1MNTPFIMMTPλ 0.3, then 0.1Balanceweight 0.0001What trains: all
  7. DeepSeek-V4-Flash-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-Flash

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

On-policy distillation

×

One model learns from the specialists: on its own sampled trajectories it minimizes a weighted reverse KL to each teacher, over the full vocabulary.

On-policy distillation

The model being trained writes its own response and a teacher scores each of its tokens: a token the teacher finds more probable than the student does is rewarded, one it finds less probable is penalized.

LOPD(θ)=∑i=1Nwi DKL(πθ ∥ πEi)\mathcal L_{\mathrm{OPD}}(\theta)=\sum_{i=1}^{N}w_i\,D_{\mathrm{KL}}\big(\pi_\theta\,\big\|\,\pi_{E_i}\big)

DeepSeek-V4 report, eq. 29

What the letters mean

πθ\pi_\theta: the student, whose own sampled trajectories the loss is taken on; πEi\pi_{E_i}: the ii-th of NN expert models; wiw_i: its weight, typically set by the expert’s relative importance. The KL is over the full vocabulary at each position. Minimized.

Teachers
more than ten
Place
in place of V3.2’s mixed RL

Not disclosed The weights wᵢ · Steps · Learning rate · Trainable

Why

Distilling at the level of logits merges the experts’ knowledge into one set of weights, avoiding the losses of weight merging or of mixed RL. DeepSeek-V4 report §5.1.2, p. 33

What the terms meanTrajectory
Trajectory
The record of a model working through a task: its reasoning, its tool calls and what the tools returned, turn by turn.
All settings5
Objective
Σᵢ wᵢ · KL(π_θ ‖ π_Eᵢ), the reverse KL to each expert, weighted typically by its relative importance, on trajectories sampled from the student (eq. 29)
Teachers
More than ten, covering various domains
Logits
Full-vocabulary logit distillation, the complete distribution kept in the reverse KL; in place of the token-level KL estimate of prior work, which leads to high-variance gradients and often unstable training
Place
Replaces DeepSeek-V3.2’s mixed RL stage; the rest of the pipeline largely mirrors V3.2’s
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
Sources4