LMCache
by
LMCache

Description: LMCache: Supercharge Your LLM with the Fastest KV Cache Layer

View on GitHub ↗

Summary Information

Updated 30 minutes ago
Added to GitGenius on April 29th, 2026
Created on May 28th, 2024
Open Issues & Pull Requests: 405 (+0)
Number of forks: 1,530
Total Stargazers: 10,384 (+1)
Total Subscribers: 57 (+0)

Issue Activity (beta)

Issue API unavailable.

Repository Insights (GitGenius)

Median issue/PR response: 2.1 hours
Mean response time: 2.5 days
90th percentile: 7.2 days
Tracked items: 204

Most active contributors

Detailed Description

LMCache is a KV cache management layer designed to optimize large language model inference by treating KV cache as persistent, reusable AI-native knowledge rather than temporary state. Written in Python and available at lmcache.ai, the project addresses performance bottlenecks in LLM serving by reducing time-to-first-token and improving throughput, particularly for long-context agentic workloads, multi-turn conversations, and knowledge-augmented applications like RAG.

The core innovation of LMCache is its vendor-neutral architecture that operates as a standalone daemon process independent from inference engines. This separation prevents KV cache loss when inference engines crash and enables KV cache reuse across multiple serving engines, storage vendors, and hardware platforms. The system implements persistent, tiered KV cache offloading across a storage hierarchy spanning GPU memory, CPU RAM, local SSDs, and remote backends including Redis, S3-compatible storage, and specialized systems like Mooncake and InfiniStore.

Key technical features include engine-independent deployment that decouples KV cache management from inference processes, pluggable storage and transport backends through unified interfaces, and production-level observability metrics covering health monitoring, KV-cache-specific performance indicators, and user-level usage tracking. The project extends beyond traditional prefix caching by supporting non-prefix KV reuse at any position in prompts through CacheBlend technology, enabling selective token recomputation for quality recovery. LMCache also implements PD disaggregation and KV transfer capabilities across NVLink, RDMA, and TCP connections, plus pluggable KV transformation interfaces for compression and custom serialization.

The repository shows active community engagement with a median issue and pull request response latency of 2.1 hours and mean latency of 55.8 hours across 200 tracked items. Top contributors DongDongJu, maobaolong, and sammshen have driven 79, 70, and 53 events respectively. The project maintains 68 stale issues and actively tags items with help wanted and good first issue labels to encourage community participation.

Recent development highlights demonstrate rapid evolution and ecosystem integration. The multiprocess architecture released in April 2026 achieved 10x performance improvements for mixture-of-experts inference. LMCache joined the PyTorch Foundation in October 2025 and achieved 5,000 GitHub stars in August 2025. Integration partnerships include NVIDIA Dynamo for accelerated LLM inference, CoreWeave for efficient inference deployment, and Redis for KV cache persistence. The project expanded cross-hardware support to AMD, Arm, and Ascend platforms and extended multimodal model support in vLLM V1.

LMCache demonstrates vendor neutrality by supporting mainstream open-source serving engines and infrastructure providers, allowing users to switch between serving engines and storage vendors while preserving cached KV data. The project is becoming the de-facto standard for KV cache management in LLM inference, with continued development supported by Tensormesh. The codebase is licensed under Apache License 2.0, with comprehensive documentation, quickstart guides, benchmarking resources, and production deployment guidance available through its official documentation site.

LMCache
by
LMCacheLMCache/LMCache

Repository Details

Fetching additional details & charts...