skillfed

mooncake-transfer-engine

A KVCache-centric Disaggregated Architecture for large-scale LLM inference and training.

mooncake-transfer-engine v0.3.12.post1 271.0K downloads/30d#8,225 on PyPI6,276
Permissive license Active released

What it is and what it does

Mooncake Transfer Engine is a low-level data transfer component for disaggregated LLM serving architectures. It enables zero-copy, high-throughput movement of KV cache and model weights across distributed GPU clusters using RDMA and P2P protocols. The engine sits at the core of Mooncake, a platform that separates prefill and decode compute into independent clusters while pooling KV cache across otherwise idle CPU, DRAM, and SSD resources.

The package is typically not used directly but integrated into higher-level serving frameworks—vLLM, SGLang, TensorRT LLM, LMDeploy, and others have built connectors and backends around it. Its runtime dependencies are aiohttp, requests, and msgpack, suggesting async HTTP communication and serialization for remote cache coordination. It is production-grade software powering Kimi, a leading LLM service, and has been deployed at scale on hundreds of GPUs.

Use it for:

  • Disaggregated prefill-decode inference: separate prefill and decode clusters while sharing KV cache via Transfer Engine
  • Large-scale model training: distribute model weights across thousands of GPUs with fast P2P updates (e.g., 1T-parameter models in ~20 seconds)
  • Multimodal embedding caching: cross-instance sharing of Vision Transformer embeddings to avoid redundant GPU computation
  • Hierarchical KV cache storage: offload cache to host DRAM or remote storage with intelligent prefetch and eviction
  • Encoder-decoder decoupling: separate compute-intensive encoders from language model nodes with zero-copy embedding transfer

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Mooncake Transfer Engine provides high-performance, zero-copy data transfer for distributed KV cache management in large-scale LLM inference and training, using RDMA and P2P mechanisms to move cache and model weights across GPU clusters.

Yes, if you are building or deploying a disaggregated LLM inference or training system at scale and your framework (vLLM, SGLang, TensorRT LLM, LMDeploy) has native Mooncake support. Do not install directly for single-machine use; it is an infrastructure component for multi-node GPU clusters. Active maintenance, no known vulnerabilities, and permissive license make it safe to adopt in production.

Install

mooncake-transfer-engine on PyPI

pip

pip install mooncake-transfer-engine

uv

uv add mooncake-transfer-engine

poetry

poetry add mooncake-transfer-engine

Installing mooncake-transfer-engine

Before you install

Medium install friction due to compiled wheels for specific Python versions (3.10–3.13) and Linux platforms (aarch64, x86_64). Active maintenance with recent commits and stable production status; last release 20 days old.

License in practice

Permissive license allows commercial and private use with minimal restrictions, typical for infrastructure projects in the AI serving ecosystem.

Quickstart

pip install mooncake-transfer-engine
import mooncake_transfer_engine
# Use with vLLM, SGLang, or other LLM serving frameworks via their Mooncake connectors

Requires Linux (manylinux_2_28), Python 3.10 or later, and NVIDIA CUDA environment; designed for GPU cluster deployment, not single-machine use.

Verify before relying

  • Specific RDMA hardware requirements and whether fallback to TCP is supported
  • Performance overhead or latency characteristics for different transfer sizes
  • Compatibility matrix with specific vLLM, SGLang, and TensorRT LLM versions

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.10)
Install friction medium — platform-specific wheel
Runtime dependencies 3 — aiohttp, requests, msgpack
Maintenance actively maintained — 20 days since the last release
Last repo commit
First released
Downloads 270,986/month — #8,225 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mooncake_transfer_engine-0.3.12.post1-cp310-cp310-manylinux_2_28_aarch64.whl; mooncake_transfer_engine-0.3.12.post1-cp310-cp310-manylinux_2_28_x86_64.whl; mooncake_transfer_engine-0.3.12.post1-cp311-cp311-manylinux_2_28_aarch64.whl; mooncake_transfer_engine-0.3.12.post1-cp311-cp311-manylinux_2_28_x86_64.whl; mooncake_transfer_engine-0.3.12.post1-cp312-cp312-manylinux_2_28_aarch64.whl; mooncake_transfer_engine-0.3.12.post1-cp312-cp312-manylinux_2_28_x86_64.whl; mooncake_transfer_engine-0.3.12.post1-cp313-cp313-manylinux_2_28_aarch64.whl; mooncake_transfer_engine-0.3.12.post1-cp313-cp313-manylinux_2_28_x86_64.whl

Keywords: mooncake, transfer engine, kv cache, llm inference, rdma

Development Status :: 5 - Production/StableEnvironment :: GPU :: NVIDIA CUDAIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: POSIX :: LinuxProgramming Language :: C++Programming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: Implementation :: CPythonTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: System :: Distributed Computing

Tags

kv cache transfer llmrdma distributed inferencedisaggregated llm servinggpu cluster data transferdistributed kv cache pool
llm-inferencegpu-clusterkv-cache

More Artificial Intelligence packages

Further reading