Training

Pinned sources Kimi K2 report (arXiv 2507.20534v2) · no training code is published

  1. Start of training
  2. Pre‑training, constant rate10T4KNTPWhat trains: all
  3. Pre‑training, decay5.5T4KNTPWhat trains: all
  4. Inside the 15.5T or after it: not stated
  5. Annealing400B4KNTPWhat trains: all
  6. Long‑context activation60B32KNTPWhat trains: allYaRN, 128K
  7. Kimi-K2-Base
  8. SFTnot statednot statedSFTnot statednot stated: tokens, context, what trains
  9. RLnot statednot statedRLas in K1.5not statednot stated: tokens, context, what trains
  10. Kimi-K2-Instruct
  • tokens, log scale
  • not stated by the sources
  • the architecture changes
  • checkpoint
  • checkpoint, weights published
  • a join the sources leave unexplained

Long-context activation

×

60B tokens at a 32K context; the window is then extended to 128K with YaRN.

Next-token prediction

L=−1T∑i=2T+1log⁡Pi[ti]\mathcal L=-\frac1T\sum_{i=2}^{T+1}\log P_i[t_i]
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.

tit_i: the token at position ii; Pi[ti]P_i[t_i]: the probability the model, reading the tokens before it, gave that token; TT: the sequence length.

Tokens
60B
Context
32,768, then 128K with YaRN
Learning rate
2e-5 to 7e-6

Not disclosed Steps · Number format of the computation

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. Kimi K2 report §2.5, p. 9
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