Context 128K
×Stage · DeepSeek-V3.1
The 128K extension again, 3.3 times longer.
Next-token prediction
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.
: the token at position ; : the probability the model, reading the tokens before it, gave that token; : the sequence length.
Next-token prediction continues from pre-training; whether multi-token prediction, fill-in-the-middle and the balance loss do too, the report does not say.
Next-token prediction as drawn for DeepSeek‑V3.2‑Exp →That plate also draws multi-token prediction, fill-in-the-middle and DeepSeek-V3’s sequence-wise balance loss.
- Tokens
- 209B
- Against V3
- 3.3 × 62.9B ≈ 208Bderived
Not disclosed Steps, batch, learning rate
Architecture at this stageNo lightning indexer: dense attention.
What the terms meanMTP, multi-token prediction
- MTP, multi-token prediction
- Extra modules predict tokens further ahead than the next one, and their cross-entropy, times a weight λ, is added to the loss.
All settings2
- Tokens
- 209B, “extended by 3.3x”
- Against V3
- 3.3 × 62.9B ≈ 208BderivedThe V3 report’s 128K phase, 3.3 times over.
Sources2
- DeepSeek-V3.1 card, line 57Tokens, Against V3
- DeepSeek-V3 report, p. 23Against V3