Long-context mid-training
×Higher-quality mid-training data at sequence lengths extended from 32,768 to 262,144 by YaRN interpolation.
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 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.
- Token volumes
- 500B→200B
- Context
- 32,768 to 262,144
- Data
- long text, long video, reasoning
Not disclosed Tokens at each length · Learning rate · Batch · Steps
Architecture at this stageThe window grows by YaRN interpolation; the checkpoint scales its rotary frequencies by 64 over 4,096 positions.
What the terms meanYaRN
- YaRN
- A way to lengthen the context of rotary position embeddings: the slow-turning frequencies are divided by a factor s, the fast ones kept and those between blended, and attention scores are rescaled slightly, so that positions past the trained length look like positions the model has seen.
All settings5
- Token volumes
- “500B→200B”, as Table 3 writes it beside the sequence lengths “32768→262144”
- Context
- Extended in steps from 32,768 to 262,144 by YaRN interpolation
- Data
- Higher-quality text and multimodal data, long text, long video, reasoning and long chains of thought
- Trainable
- The vision encoder and the language model
- Objective
- Next-token prediction on the text tokens, with images and video in the context
Sources2
- Kimi K2.5 report, p. 7Token volumes, Context, Data, Trainable, Objective
- Kimi K2.5 report, p. 8Context, Data