AI
Moonshot AI's Mooncake optimizes large language models with separated compute and cache clusters
A new disaggregated serving architecture splits prefill and decoding workloads while reusing idle GPU resources to cache token data, letting the Kimi LLM handle significantly more concurrent requests.
Moonshot AI has published details of Mooncake, the serving infrastructure that powers Kimi, its large language model offering. The system rethinks how to allocate computational resources across the pipeline of generating responses to many simultaneous user queries.
Separated compute for prefill and decoding#
Rather than processing all requests through identical GPU clusters, Mooncake divides the work into two stages with dedicated hardware. The prefill phase—which ingests the user's input and generates the initial token—runs on its own cluster. The decoding phase—which generates each subsequent token in the response—operates on a separate cluster optimized for that task. This separation allows each stage to be tuned for its distinct computational profile.
Reusing dormant resources for cache storage#
A key innovation lies in how the system stores KVCache, the intermediate data structures that neural networks need to avoid recomputing information during token generation. Rather than dedicating expensive GPU memory, Mooncake repurposes underutilized CPU, RAM, and solid-state storage from the main GPU cluster. This distributed cache reduces the GPU memory footprint required to serve the same workload, freeing up GPU capacity for actual computation.
Balancing throughput and responsiveness#
The heart of Mooncake is a scheduler that makes real-time decisions about which requests to accept and how to route them. It aims to maximize the number of queries processed per second while guaranteeing that responses meet target latency windows. During periods of extreme demand, the system applies a prediction-based early rejection policy—declining requests upfront rather than queueing them indefinitely—to prevent cascading slowdowns.
Performance gains in real and simulated conditions#
Laboratory tests show Mooncake achieves up to a 525% boost in throughput over baseline methods under simulated workloads while maintaining the same latency targets. In production on the Kimi service, the architecture enables the system to serve 75% more concurrent users. The benefits are most pronounced for , where requests contain large amounts of input text that benefits from efficient cache management.

