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. From V3’s base: before or after its context extension, not stated
  7. Context 32KDeepSeek-V3.1630B32KNTPWhat trains: all
  8. Context 128KDeepSeek-V3.1209B128KNTPWhat trains: all
  9. DeepSeek-V3.1-Base
  10. V3.1-Base or a later checkpoint: not stated
  11. V3.1-Terminus base checkpoint
  12. Dense warm‑upDeepSeek-V3.2-Exp2.1B128KKLto main attentionWhat trains: indexer+ indexer
  13. Sparse trainingDeepSeek-V3.2-Exp943.7B128KLMKLselected positionsWhat trains: allsparse, top 2,048
  14. DeepSeek-V3.2 base
  15. Specialist distillationnot statednot statedDistillationfrom specialistsnot statednot stated: tokens, context, what trains
  16. Distilled checkpoint
  17. Mixed RLscaled upnot statednot statedGRPOone stagenot statednot stated: tokens, context, what trains
  18. 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

Sparse training

×

Stage · DeepSeek-V3.2-Exp

Every parameter trains with sparse attention: each query keeps its top 2,048 positions.

Next-token prediction

L=−1T∑i=2T+1log⁡Pi[ti]\mathcal L=-\frac1T\sum_{i=2}^{T+1}\log P_i[t_i]
In words

At every position the model gives each token of the vocabulary a probability of coming next; the loss is the negative logarithm of the probability it gave the token that does come next, averaged over the sequence.

tit_i: the token at position ii; Pi[ti]P_i[t_i]: the probability the model, reading the tokens before it, gave that token; TT: the sequence length.

The report calls it “the language modeling loss” and does not write it.

  • KL to a target distribution. Taken over the 2,048 positions each query keeps (eq. 4).
Tokens
943.7B
Selection
top 2,048 positions per query
Learning rate
7.3×10⁻⁶
Steps, batch
15,000 steps of 480 sequences

Not disclosed Optimiser, schedule shape

Why

After the warm-up the token selection is switched on and every parameter trains, to adapt the model to the sparse pattern. The indexer’s input is detached from the graph, so the indexer learns from its KL loss alone and the model from the language-modelling loss alone. DeepSeek-V3.2-Exp report §2.1, p. 3

Sparse attention from here on.

What the terms meanSparse attention
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 settings7
Data
The same 128K extension distribution
Trainable
All parameters; the indexer’s input detached, so the indexer learns only from its KL loss and the model only from the language-modelling loss
Objective
Language modelling; the indexer’s KL over the selected positions (eq. 4)
Selection
Top 2,048 key-value positions per query
Learning rate
7.3×10⁻⁶
Steps, batch
15,000 steps of 480 sequences of 128K tokens: 943.7B tokens
Tokens
15,000 × 480 × 131,072 ≈ 943.7BderivedSteps × sequences × sequence length.
Sources2