Training

Pinned sources DeepSeek‑V3 report (arXiv 2412.19437v2), DeepSeek‑V3.2‑Exp report @ 87e509a, model cards of V3.1, V3.1‑Terminus and V3.2‑Exp

  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‑up2.1B128KKLto main attentionWhat trains: indexer+ indexer
  17. Sparse training943.7B128KLMKLselected positionsWhat trains: allsparse, top 2,048
  18. DeepSeek-V3.2 base
  19. Specialist distillationnot statednot statedDistillationfrom specialistsnot statednot stated: tokens, context, what trains
  20. Mixed RLnot statednot statedGRPOone stagenot statednot stated: tokens, context, what trains
  21. DeepSeek-V3.2-Exp
  • 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

Dense warm-up

×

Only the lightning indexer trains, to imitate the dense attention it will later restrict.

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.

Tokens
2.1B
Learning rate
10⁻³
Steps, batch
1,000 steps of 16 sequences

Not disclosed Optimiser

Why

A short stage that initialises the lightning indexer: attention stays dense, every other parameter is frozen, and the indexer learns to match the main attention’s distribution. DeepSeek-V3.2-Exp report §2.1, p. 2

The lightning indexer exists from here on; attention stays dense.

What the terms meanLightning indexer
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. DeepSeek-V3.2-Exp report §1, p. 1
All settings6
Data
The distribution of the 128K extension data used for V3.1-Terminus
Trainable
The lightning indexer only; every other parameter frozen
Objective
KL divergence from the main attention, summed over heads and L1-normalised, to the indexer’s softmax (eq. 3)
Learning rate
10⁻³
Steps, batch
1,000 steps of 16 sequences of 128K tokens: 2.1B tokens
Tokens
1,000 × 16 × 131,072 ≈ 2.1BderivedSteps × sequences × sequence length.
Sources3