AIAny
AI Infra2024
Icon for item

Mooncake

Disaggregated LLM serving architecture that splits prefill and decode into separate clusters and pools spare CPU, DRAM, and SSD into a distributed KVCache. Powers Kimi in production, handling 75% more requests under the same SLOs.

Introduction

When a chatbot's traffic explodes, the instinct is to buy more GPUs. Mooncake's bet is the opposite: trade cheap, idle storage for expensive compute. By treating accumulated KVCache as a first-class, reusable asset rather than per-request scratch space, it turns the GPU cluster's underused CPU, DRAM, and SSD into a shared cache pool — so repeated prefixes are recomputed far less often.

Key Findings
  • Splitting prefill and decode into separate clusters lets each scale and schedule independently, instead of fighting over the same GPU between two workloads with very different latency profiles.
  • A KVCache-centric scheduler balances cache reuse against latency SLOs under real overload, rather than just maximizing raw throughput — the difference between a benchmark win and surviving a traffic spike.
  • In Moonshot AI's production Kimi service it absorbed roughly 75% more requests under the same SLOs, and reported up to a 525% throughput gain in simulated long-context scenarios.
  • The Transfer Engine (RDMA) and Mooncake Store are open-sourced and already wired into vLLM, SGLang, LMDeploy, and LMCache, so the ideas are reusable outside Kimi.
Who It's For

Great fit if you run a high-traffic, long-context inference service and are bottlenecked on prefill recomputation or GPU cost, and you can invest in RDMA networking and tiered storage to make a disaggregated KVCache pay off. Look elsewhere if your workload is low-volume, short-context, or single-node — the operational complexity of separate prefill/decode clusters and a distributed cache tier will outweigh the savings. The work won Best Paper at FAST 2025, so the design is well-documented for teams wanting to study rather than deploy it.

Information

  • Websitekvcache-ai.github.io
  • OrganizationsMoonshot AI, Tsinghua University
  • AuthorsMooncake Team, Moonshot AI (Kimi)
  • Published date2024/06/26

More Items

GitHub
AI Infra2025

Measures generative AI inference performance with token-level metrics (TTFT, inter-token latency), latency, and throughput under realistic traffic patterns. Provides a multiprocess engine, real-time TUI dashboard, extensible plugins, and integrations for telemetry and result uploads, aimed at inference benchmarking and capacity planning.

GitHub
AI Train2019

Train and experiment with multi-billion to trillion-parameter transformer models on large GPU clusters using GPU-optimized building blocks and reference training scripts; offers advanced parallelism and mixed-precision support for research teams and ML engineers.

GitHub

Indexes full text of visited web pages and local files on a self‑hosted server so you can search your personal knowledge from a web UI, terminal, CLI, or an AI assistant. Runs without mandatory telemetry, offers a browser extension for automatic capture, and supports optional semantic search via a configurable embeddings endpoint.