arXiv:2407.00079v5 Announce Type: replace Abstract: Mooncake is the serving platform for Kimi, a leading LLM service provided by Moonshot AI. It features a KVCache-centric disaggregated architecture that separates the prefill and decoding clusters. It also leverages the underutilized CPU, DRAM, and SSD resources of the GPU cluster to implement a disaggregated cache of KVCache. The core of Mooncak
Mooncake is the production serving platform for Kimi, a large language model service by Moonshot AI, featuring a KVCache-centric disaggregated architecture that separates prefill and decoding clusters. By leveraging underutilized CPU, DRAM, and SSD resources to create a distributed KVCache pool, the system significantly enhances cache reuse and transfer efficiency. This architecture enables Kimi to handle 75% more requests under real workloads and achieves up to a 525% increase in throughput for long-context scenarios while maintaining strict latency Service Level Objectives (SLOs).
Mooncake is a production LLM serving platform for Kimi that reorganizes inference around KVCache as a first-class shared resource, rather than treating each GPU server as an isolated batch-processing unit. It adopts a prefill/decode disaggregated architecture, in which prefill nodes handle the compute-heavy prompt-processing phase and generate KV states, while decode nodes focus on token-by-token generation. To coordinate these phases, Mooncake uses a global KVCache pool that extends beyond GPU memory into underutilized CPU, DRAM, and SSD capacity, along with a high-performance transfer engine for moving KV tensors across the cluster. This design targets the mismatch between prefill and decode workloads, which is especially pronounced in long-context, multi-turn, RAG-heavy, and prefix-sharing serving scenarios.
The paper’s main contributions are a KVCache-centric scheduling and placement model and a practical data-movement/storage stack for large-scale KVCache reuse. Instead of optimizing only local GPU batching, Mooncake treats cache locality, cross-node KV reuse, and load balancing between prefill and decode pools as central scheduling problems. This allows the system to reduce redundant prefill computation, avoid prefill bursts from interfering with decode latency, and scale the two phases independently. The result is a serving architecture that can better exploit heterogeneous memory resources while improving throughput and tail-latency behavior under realistic production workloads.
Mooncake matters because it presents a deployed, large-scale system design rather than a purely theoretical disaggregation proposal. Its central insight—that KVCache, not just GPU compute, should drive LLM serving architecture—is directly relevant to modern inference workloads where context length, reuse, and concurrency dominate cost and performance. For systems researchers and practitioners, it provides evidence that disaggregated prefill/decode serving, combined with a distributed KVCache layer, can be a practical path to more efficient and scalable LLM inference.