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

RL

×

Reinforcement learning with K1.5’s policy optimization, on verifiable tasks and on a self-critique rubric reward.

Reinforcement learning

The model writes responses, a reward scores them, and the model is moved toward the responses that score higher.

LRL=1K∑i=1K(r(x,yi)−rˉ(x)−τlog⁡πθ(yi∣x)πold(yi∣x))2\begin{aligned}\mathcal L_{\mathrm{RL}}=\frac1K\sum_{i=1}^{K}\Big(&r(x,y_i)-\bar r(x)\\&-\tau\log\frac{\pi_\theta(y_i\mid x)}{\pi_{\mathrm{old}}(y_i\mid x)}\Big)^2\end{aligned}

Kimi K2 report §3.2.3, p. 13, unnumbered; for one problem

What the letters mean

yiy_i: one of KK responses to the problem xx, sampled from the previous policy πold\pi_{\mathrm{old}}; r(x,yi)r(x,y_i): its reward; rˉ(x)\bar r(x): the mean reward of the KK; πθ\pi_\theta: the model being trained; τ\tau: a positive regularization parameter. Minimized.

Budget
a token budget per sample
Additions
PTX loss, temperature decay

Not disclosed Tokens · Context · Steps · Learning rate · The regularization weight (τ) · Responses per problem (K)

Why

Tasks with subjective answers get a reward too: the model compares its own outputs in pairs against rubrics, so every domain can use RL. Kimi K2 report §3.2, p. 11

What the terms meanGRPO · PTX loss · Temperature decay
GRPO
For each prompt the model writes a group of answers; each is scored and compared with the group’s mean, and the model is moved toward the answers above it, by a step clipped near the policy that wrote them and with a penalty for leaving a reference model.
PTX loss
A next-token loss on hand-selected, high-quality data, added to the RL objective so that the model keeps what that data taught it. Kimi K2 report §3.2.3, p. 13
Temperature decay
The sampling temperature of the rollouts starts high, for varied answers to explore, and is lowered later, for consistent ones. Kimi K2 report §3.2.3, p. 13
All settings4
Algorithm
K1.5’s: K responses per problem from the previous policy; each response’s reward less their mean, less τ times the squared log-ratio to the previous policy; optimized with Muon
Rewards
A gym of tasks with verifiable rewards (mathematics, STEM and logic, instruction following, faithfulness, coding and software engineering, safety); for other tasks the model ranks its own outputs against rubrics
Budget
A per-sample maximum of tokens, set by task type; longer responses are truncated and penalized
Additions
A PTX loss on hand-selected data against forgetting; a temperature that decays from exploration to exploitation
Sources3