← all repositories
MoonshotAI/checkpoint-engine

A hot-swap middleware for trillion-parameter model weights

Checkpoint-engine keeps reinforcement learning loops moving by hot-swapping updated weights into running vLLM and SGLang inference engines across thousands of GPUs.

checkpoint-engine
Collecting fresh signals — velocity needs a few days of history.
star history

What it does

Checkpoint-engine sits between your training cluster and inference fleet to update model weights in place. It treats weight distribution as a logistics problem: it plans transfers, buckets data, and pipelines the movement from CPU or disk to GPU memory so inference engines pick up fresh parameters without restarting. The project targets the massive scale Moonshot itself operates at—think Kimi-K2’s trillion parameters spread across thousands of GPUs.

The interesting bit

The cleverness is in treating weight updates like a network transfer optimization problem. It offers two distinct modes: a Broadcast path that synchronizes weights across all running instances via overlapped H2D, inter-worker broadcast, and inference reload stages; and a P2P path that uses mooncake-transfer-engine to sneak weights into newly joined or restarted instances without disturbing the ones already serving traffic. If GPU memory is too tight for the three-stage pipeline, it gracefully falls back to serial execution.

Key highlights

  • Updates a 1-trillion-parameter model across thousands of GPUs in roughly 20 seconds, according to the README.
  • Supports both bulk synchronous broadcast and targeted P2P transfers for dynamic node membership.
  • Integrates directly with vLLM (v0.10.2) and SGLang via colocated worker extensions and ZeroMQ control.
  • Handles sharding mismatches between the checkpoint layout and the inference engine’s tensor parallelism.
  • Includes an Intel XPU broadcast path that JIT-compiles a SYCL IPC memory extension at runtime.

Caveats

  • Currently only tested with vLLM and SGLang; other frameworks are explicitly future work.
  • The “perfect” three-stage pipeline described in the Kimi-K2 technical report is not yet implemented.
  • FP8 weight updates in vLLM require a manual patch, and P2P transfers are unsupported on Intel XPU.

Verdict This is for engineers running large-scale RL inference fleets who need to cycle weights faster than a full engine restart allows. If you are not operating distributed LLM serving with frequent checkpoint updates, it is likely overkill.

Frequently asked

What is MoonshotAI/checkpoint-engine?
Checkpoint-engine keeps reinforcement learning loops moving by hot-swapping updated weights into running vLLM and SGLang inference engines across thousands of GPUs.
Is checkpoint-engine open source?
Yes — MoonshotAI/checkpoint-engine is open source, released under the MIT license.
What language is checkpoint-engine written in?
MoonshotAI/checkpoint-engine is primarily written in Python.
How popular is checkpoint-engine?
MoonshotAI/checkpoint-engine has 1k stars on GitHub.
Where can I find checkpoint-engine?
MoonshotAI/checkpoint-engine is on GitHub at https://github.com/MoonshotAI/checkpoint-engine.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.