经 AI Skill Hub 精选评估,Mooncake AI技能包 获评「强烈推荐」。已获得 5.3k 颗 GitHub Star,这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.2 分,适合有一定技术背景的用户使用。
Kimi的开源推理服务平台,采用C++实现高性能LLM推理。支持KV缓存优化、RDMA通信和推理服务分解架构,适合部署和优化大型语言模型推理,面向开发者和企业级用户。
Mooncake AI技能包 是一款基于 C++ 开发的开源工具,专注于 LLM推理、高性能服务、分布式推理 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
Kimi的开源推理服务平台,采用C++实现高性能LLM推理。支持KV缓存优化、RDMA通信和推理服务分解架构,适合部署和优化大型语言模型推理,面向开发者和企业级用户。
Mooncake AI技能包 是一款基于 C++ 开发的开源工具,专注于 LLM推理、高性能服务、分布式推理 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 克隆仓库 git clone https://github.com/kvcache-ai/Mooncake cd Mooncake # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 mooncake --help # 基本运行 mooncake [options] <input> # 详细使用说明请查阅文档 # https://github.com/kvcache-ai/Mooncake
# mooncake 配置说明 # 查看配置选项 mooncake --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export MOONCAKE_CONFIG="/path/to/config.yml"
Mooncake is the serving platform for <a href="https://kimi.ai/"><img src="image/kimi.png" alt="icon" style="height: 16px; vertical-align: middle;"> Kimi</a>, a leading LLM service provided by <a href="https://www.moonshot.cn/"><img src="image/moonshot.jpg" alt="icon" style="height: 16px; vertical-align: middle;"> Moonshot AI</a>. Now both the Transfer Engine and Mooncake Store are open-sourced! This repository also hosts its technical report and the open-sourced traces.
<details> <summary>More</summary>
MooncakeStoreConnector and MooncakeTransferEngineConnector for multi-node omni-modality pipelines.</details>
Mooncake 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 KVCache pool.

The core of Mooncake is its KVCache-centric scheduler, which balances maximizing overall effective throughput while meeting latency-related Service Level Objectives (SLOs). Unlike traditional studies that assume all requests will be processed, Mooncake faces challenges in highly overloaded scenarios. To mitigate these, we developed a prediction-based early rejection policy. Experiments show that Mooncake excels in long-context scenarios. Compared to the baseline method, Mooncake can achieve up to a 525% increase in throughput in certain simulated scenarios while adhering to SLOs. Under real workloads, Mooncake’s innovative architecture enables <a href="https://kimi.ai/">Kimi</a> to handle 75% more requests.
For the default source build, use the automatic dependency script and standard CMake flow:
git clone https://github.com/kvcache-ai/Mooncake.git
cd Mooncake
sudo bash dependencies.sh
mkdir build
cd build
cmake ..
make -j
sudo make install # optional, make it ready to be used by vLLM/SGLang
For custom accelerator backends, Docker deployment, NVMe-oF, EFA, CXL, Redis / HTTP metadata, Rust bindings, or other advanced build options, see the Build Guide.
Mooncake is deeply integrated into SGLang as a high-performance communication and storage backend. These integrations enable efficient KV cache transfer in PD-disaggregated serving, scalable multi-level KV caching through HiCache, fault-tolerant expert-parallel inference, high-performance multimodal pipeline data movement, and fast RDMA-based weight synchronization for large-scale RL training. Together, Mooncake and SGLang provide a production-oriented foundation for building elastic, high-throughput, and resource-efficient LLM and multimodal serving systems.
<details> <summary>Details</summary>
</details>
Mooncake integrates with vLLM to accelerate large language model serving through high-performance KV cache transfer and distributed KV cache storage. The integration supports both disaggregated prefill-decode serving and cross-instance KV cache sharing, helping vLLM deployments reduce TTFT, improve cache reuse, and scale more efficiently across multi-node inference clusters.
<details> <summary>Details</summary>
MooncakeTransferEngineConnector and MooncakeStoreConnector, enabling efficient cross-node data exchange between vLLM-Omni stages.</details>
Mooncake supports hardware backends across accelerator vendors, cloud fabrics, and standard datacenter interconnects.
The following hardware partners and cloud platforms are supported by the Mooncake, covering GPUs, specialized AI accelerators, and cloud-native interconnects:
| <img src="image/partners/nvidia_logo.png" width="120" alt="NVIDIA"/> | <img src="image/partners/huawei_logo.png" width="120" alt="Huawei"/> | <img src="image/partners/amd_logo.png" width="120" alt="AMD"/> | <img src="image/hardwares/cambricon_logo.png" width="120" alt="Cambricon"/> | <img src="image/partners/moore_thread_logo.jpg" width="120" alt="Moore Threads"/> | <img src="image/partners/aws-logo.png" width="120" alt="AWS"/> |
|---|---|---|---|---|---|
| <img src="image/hardwares/MetaX_logo.png" width="120" alt="MetaX"/> | <img src="image/hardwares/T-Head_logo.png" width="120" alt="T-Head"/> | <img src="image/partners/aliyun_logo.png" width="120" alt="Alibaba Cloud"/> | <img src="image/partners/sunrise_logo.png" width="120" alt="Sunrise"/> | <img src="image/partners/hygon_logo.png" width="120" alt="Hygon"/> |
For complete protocol behavior, SDK requirements, and vendor-specific configuration, see the supported protocols, build guide, and Transfer Engine design docs.
The simplest way to use Mooncake Transfer Engine is using pip:
For CUDA-enabled systems:
- CUDA < 13.0
pip install mooncake-transfer-engine - CUDA >= 13.0 pip install mooncake-transfer-engine-cuda13
For non-CUDA systems:
pip install mooncake-transfer-engine-non-cuda
For NPU systems:
pip install mooncake-transfer-engine-npu
[!IMPORTANT] - The CUDA version (mooncake-transfer-engine) includes Mooncake-EP and GPU topology detection, requiring CUDA 12.1+. - The non-CUDA version (mooncake-transfer-engine-non-cuda) is for environments without CUDA dependencies, but it still needs system runtime libraries such aslibcurl4,libibverbs1,rdma-core,librdmacm1,libnuma1, andliburing2on Ubuntu. In a fresh environment, runsudo apt-get updatebefore installing them. - MLU support is currently available through source builds with-DUSE_MLU=ON; there is no dedicated prebuilt MLU wheel yet. - If users encounter problems such as missinglib*.so, first install the corresponding system runtime libraries. If the issue persists, uninstall the package and build the binaries manually.
高性能LLM推理平台,采用业界先进优化技术。代码质量优秀、更新活跃,是探索推理加速的优选方案。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:Mooncake AI技能包 的核心功能完整,质量优秀。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | Mooncake |
| 原始描述 | 开源AI工具:Mooncake is the serving platform for Kimi, a leading LLM service provided by Moo。⭐5.3k · C++ |
| Topics | LLM推理高性能服务分布式推理KV缓存优化RDMA网络 |
| GitHub | https://github.com/kvcache-ai/Mooncake |
| License | Apache-2.0 |
| 语言 | C++ |
收录时间:2026-05-16 · 更新时间:2026-05-19 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。