DSA warm-up
×Stage · GLM-5
The move to DeepSeek Sparse Attention begins with a short dense warm-up, from the base model at the end of mid-training.
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.
DeepSeek-V3.2-Exp report, eq. 3
What the letters mean
: what the main attention attends to from query , the target; : the lightning indexer’s scores for it.
The report follows DeepSeek-V3.2-Exp’s two stages. In DeepSeek’s recipe the warm-up trains only the indexer, by KL to the main attention, and the sparse stage trains every parameter; the report’s own small run on GLM-4.7-Flash (p. 7) trains only the indexer in the warm-up and the whole model after it, and names no loss.
KL to a target distribution as drawn for DeepSeek‑V3.2‑Exp →
- Steps and sequences
- 1,000 steps of 14 sequences of 202,752 tokens
- Tokens
- ≈ 2.84Bderived
- Learning rate
- 5×10⁻³ down to 2×10⁻⁴
Not disclosed Objective · Trainable
Architecture at this stageThe lightning indexer is added; attention stays dense.
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 settings4
- Method
- DeepSeek Sparse Attention brought in by continued training from the dense base model, in DeepSeek-V3.2-Exp’s two stages, “dense warm-up and sparse training adaptation”
- Steps and sequences
- 1,000 steps, each of 14 sequences of 202,752 tokens
- Tokens
- 1,000 × 14 × 202,752 ≈ 2.84BderivedSteps × sequences × sequence length.
- Learning rate
- From a maximum of 5×10⁻³ down to 2×10⁻⁴
Sources3
- GLM5-2602.15763v2.pdf, p. 5Method
- GLM5-2602.15763v2.pdf, p. 6Method, Steps and sequences, Tokens, Learning rate
- GLM5-2602.15763v2.pdf, p. 36Learning rate