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

Indexer warm-up

×

A short stage warms up the lightning indexer of CSA before sparse attention is switched on.

KL to a target distribution

One part of the model learns to imitate a distribution another part produces: the loss is the KL divergence of that target from the learner’s distribution.

LI=∑tDKL(pt,: ∥ Softmax⁡(It,:))\mathcal L_I=\sum_t D_{\mathrm{KL}}\big(p_{t,:}\,\big\|\,\operatorname{Softmax}(I_{t,:})\big)

DeepSeek-V3.2-Exp report, eq. 3

What the letters mean

pt,:p_{t,:}: what the main attention attends to from query tt, the target; It,:I_{t,:}: the lightning indexer’s scores for it.

The report warms up the lightning indexer and names no loss or trained part. In DeepSeek-V3.2’s recipe, whose sparse attention CSA applies, the warm-up trains only the indexer, by KL to the main attention.

Where
64Kderived

Not disclosed Objective · Trainable · Tokens · Steps · Learning rate

What the terms meanLightning indexer · Sparse attention
Lightning indexer
A small scorer beside attention that rates every earlier position for each query; sparse attention then attends only to the positions it rates highest.
Sparse attention
Each query attends only to a subset of the earlier positions, picked by an indexer, which keeps attention over a long context affordable.
All settings2
Method
Sparse attention brought in by a two-stage method: “a short stage to warm up the lightning indexer in CSA”, then sparse attention for most of training; V4-Pro’s strategy is V4-Flash’s
Where
At a sequence length of 64KderivedV4-Flash brings sparse attention in at a sequence length of 64K; the report says V4-Pro’s strategy for it is the same. The report glosses it as “following a two-stage training method”; that V4-Pro’s warm-up also falls at 64K is concluded.
Sources2