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

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
64K, after 1T tokens

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
When attention sparsity comes in, “a short stage to warm up the lightning indexer in CSA” first, then sparse attention for most of training
Where
At a sequence length of 64K, after the first 1T tokens of dense attention
Sources1