Context 32K
×Stage · DeepSeek-V3.1
The 32K extension again, ten times longer, on more long documents.
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
- 630B
- Against V3
- 10 × 62.9B ≈ 629Bderived
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 settings5
- Start
- “The original V3 base checkpoint”
- Method
- “Following the methodology outlined in the original DeepSeek-V3 report”, with additional long documents
- Tokens
- 630B, “increased 10-fold”
- Against V3
- 10 × 62.9B ≈ 629BderivedThe V3 report’s 32K phase, ten times over.
- Number format
- Weights and activations in FP8 with UE8M0 scalesThe card says DeepSeek-V3.1 is trained this way and names no stage.
Sources3
- DeepSeek-V3.1 card, line 57Start, Method, Tokens, Against V3
- DeepSeek-V3 report, p. 23Against V3
- DeepSeek-V3.1 card, line 59Number format