Training

Pinned sources Kimi K3 technical report @ 3cb39df · no training code is published

  1. Start of training
  2. Pre‑training, 8K8KNTPtext and visionMTPWhat trains: allMTP layer
  3. Pre‑training, 64K64KNTPtext and visionMTPWhat trains: all
  4. Cooldown, 256K256KNTPWhat trains: all
  5. Cooldown, 1M1MNTPWhat trains: all
  6. Off this path: Draft model 1 stage
  7. The frozen target and the time: not stated. Speculative decoding is used in RL rollouts
  8. Draft‑model fine‑tuningnot statedLKWhat trains: draftMTP → draftnot stated: context
  9. Draft model
  10. SFTnot statedSFTnot statedMXFP4 MoE expertsnot stated: context, what trains
  11. Cold-start model
  12. RL: nine expert models1MRLKimi K2.5’snot statednot stated: what trains
  13. Nine expert models
  14. Where the student starts: not stated
  15. Multi‑teacher on‑policy distillationnot statedMOPD9 teachersnot statednot stated: context, what trains
  16. Kimi K3

Not stated for any stage: tokens.

  • NTPdashed: concluded, no source names it
  • not stated by the sources
  • the architecture changes
  • checkpoint
  • checkpoint, weights published
  • a join the sources leave unexplained

Draft-model fine-tuning

×

The pre-trained MTP layer is fine-tuned into a draft model for speculative decoding, with the target model frozen.

Acceptance-rate loss

A draft model proposes tokens for the large model to check; it is trained so that the large model accepts as many as possible, the loss being the negative logarithm of the overlap of their two distributions.

LLK=−log⁡∑x∈Vmin⁡(p(x),q(x))\mathcal L_{\mathrm{LK}}=-\log\sum_{x\in\mathcal V}\min\big(p(x),q(x)\big)

Kimi K3 report, eq. 16

What the letters mean

pp, qq: the large model’s and the draft’s next-token distributions; V\mathcal V: the vocabulary.

Trainable
the draft layer and its projection
Unrolling
7 steps
Input
features after the 1st, 4th and final blocks

Not disclosed Data · Steps · Learning rate

Why

The speed-up of speculative decoding is set by the acceptance rate; a KL surrogate does not guarantee the highest rate for a small draft model, so the loss is the negative logarithm of that rate itself. Kimi K3 report §4.1.4, p. 14

What the terms meanMTP, multi-token prediction · Speculative decoding
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.
Speculative decoding
A small draft model proposes the next few tokens and the large model checks them all in one pass, accepting them so that its own output distribution is unchanged; each accepted token is a forward pass saved. Kimi K3 report §4.1.4, p. 14
All settings6
Trainable
The draft layer (the pre-trained MTP layer) and its feature-fusion projection; the target model is frozen
Input
The target’s features after the 1st, 4th and final AttnRes blocks, concatenated and projected by a bias-free matrix initialized [0 0 I]
Unrolling
7 steps in training; after the first, the draft reads its own earlier outputs
Use
Speculative decoding is used in RL rollouts, where it “further accelerates request turnover”
Loss
The LK loss: the negative logarithm of the acceptance rate Σ min(p, q) between the target’s and the draft’s next-token distributions, at temperature 1, with no cross-entropy term (eq. 16)
Number format
Quantization-aware training: MoE expert weights in MXFP4, activations in MXFP8; the other parts in higher precision
Sources3