Yin Yang · First Edition

Deep Dive into Kimi K3

A three-volume technical guide to Kimi K3 as a model, a learning process, and an executable system. Follow the mechanisms from sparse experts and hybrid attention through reinforcement learning and agents to accelerator kernels, distributed training, and long-context serving.

Volumes
Three
Chapters
46
Editions
Print & Kindle
Deep Dive into Kimi K3 Volume I: Architecture and Pretraining Deep Dive into Kimi K3 Volume II: Post-Training and Agent Intelligence Deep Dive into Kimi K3 Volume III: Systems and Deployment

Volume I · Chapters 1–16

Architecture and Pretraining

Build from a complete Transformer decoder to KDA, Gated MLA, Attention Residuals, Stable LatentMoE, MoonViT, and the integrated K3 model. Study Muon, training stability, long-context learning, and native multimodal pretraining.

Volume II · Chapters 17–31

Post-Training and Agent Intelligence

Connect supervised cold start and reinforcement learning to reasoning, rewards, task synthesis, multimodal agents, and agent swarms. Follow structured generation, tool execution, durable context, coding, kernel optimization, and agent evaluation.

Volume III · Chapters 32–46

Systems and Deployment

Move from GPU and parallelism foundations to FlashKDA, routed computation, MoonEP, distributed execution, and memory-efficient training. Trace online weight publication, million-token RL, Mooncake serving, hybrid prefix caching, fleet recovery, low-precision execution, and speculative decoding.

Book contents

Table of Contents

Free chapter overview slides are released under the CC BY-NC-ND 4.0 license. Open the PDF beside each chapter title.

Volume I

  1. Foundations: The Transformer That Kimi Builds On
  2. Computational Anatomy of Kimi K3
  3. Sparse MoE from K2 to K3
  4. Kimi Delta Attention
  5. Hybrid Attention in Kimi K3
  6. Gated Multi-Head Latent Attention
  7. Attention Residuals
  8. Stable LatentMoE
  9. MoonViT and Native Multimodality
  10. The Integrated K3 Transformer
  11. Advanced Reading: MoBA and Learned Block-Sparse Attention
  12. Scaling Muon for LLM Training
  13. MuonClip and Training Stability
  14. Stable Sparse Pretraining
  15. Long-Context Pretraining
  16. Native Multimodal Pretraining

Volume II

  1. Supervised Cold Start for Agentic RL
  2. Reinforcement Learning Foundations: From Token Prediction to Outcome-Driven Learning
  3. Long-CoT Reinforcement Learning and Localized Policy Optimization
  4. Sampling, Curricula, and Partial Rollouts
  5. Multi-Domain and Reasoning-Effort Reinforcement Learning
  6. Rewards, Verifiers, and Agentic Generative Reward Models
  7. Capability Consolidation and Deployment-Aware Post-Training
  8. Unified Agentic Environments and Task Synthesis
  9. Visual and Multimodal Agent Learning
  10. Parallel-Agent Reinforcement Learning and Agent Swarms
  11. Structured Generation, XTML, and Walle
  12. Tool Execution, Agent State, and Durable Context
  13. Coding Agents: Training and Execution
  14. Case Study: Kernel Optimization as a K3 Reinforcement-Learning Domain
  15. Agent Evaluation, Correctness, and Safety

Volume III

  1. From Basic CUDA to Kimi Kernels
  2. LLM Parallelism Foundations: From One GPU to a Distributed Model
  3. FlashKDA and KDA Kernels
  4. Hybrid-Attention and Depth-Mixing Kernels
  5. MoE Kernels and Routed Computation
  6. MoonEP and Perfectly Balanced Expert Parallelism
  7. Distributed Execution for K3-Class Models
  8. Memory-Efficient Training
  9. Multimodal Encoder and Input-Pipeline Optimization
  10. Checkpoint Engine and Online Weight Publication
  11. Million-Token Agentic-RL Infrastructure
  12. Mooncake and Disaggregated Serving
  13. KDA-Aware Prefix Caching and Long-Context Scheduling
  14. Fleet Scheduling, Admission, and Failure Recovery
  15. Low-Precision Execution and Speculative Decoding