Long-context activation
×Stage · Kimi K2
60B tokens at a 32K context; the window is then extended to 128K with YaRN.
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.
- Tokens
- 60B
- Context
- 32,768, then 128K with YaRN
- Learning rate
- 2e-5 to 7e-6
Not disclosed Steps · Number format of the computation
Architecture at this stageAfter this stage the window is extended from 4K to 128K with YaRN: the checkpoint’s configuration scales its rotary frequencies by 32 over 4,096 positions.
YaRN extends the window to 128K
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 settings6
- Tokens
- 60B
- Context
- 32,768 tokens; extended to 128K afterwards with YaRN
- Learning rate
- 2e-5 down to 7e-6, one range for the annealing and the long-context stage together
- Batch
- 67M tokens, held constant
- Trainable
- Every parameter
- Objective
- Next-token prediction
Sources1
- Kimi K2 report, p. 9Tokens, Context, Learning rate, Batch, Trainable, Objective