paper-with-me

홈 › Papers

LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference

2025-10-08 · Yuhan Liu, Yihua Cheng, Jiayi Yao, Yuwei An, Xiaokun Chen, Shaoting Feng, Yuyang Huang, Samuel Shen, Rui Zhang, Kuntai Du, Junchen Jiang arxiv

KV cache has traditionally been stored in GPU memory to accelerate the decoding phase of large language model (LLM) inference. However, it is increasingly necessary to move KV caches outside GPU devices, to enable cache reuse across different queries and inference engines. Our real-world usage statistics confirm this trend: over time, the total KV cache stored by users has grown rapidly, far exceeding the capacity of GPU memory. Despite this need, there lacks an efficient solution for offloading and transferring KV caches. We present LMCACHE, the first and so far the most efficient open-source KV caching solution, which extracts and stores KV caches generated by modern LLM engines (vLLM and SGLang) out of the GPU memory and shares them across engines and queries. LMCACHE supports both cache offloading (prefix reuse across queries) and prefill-decode (PD) disaggregation (cross-engine/GPU cache transfer). LMCACHE's high performance and wide adoption stem from the following contributions: (1) highly optimized KV cache data movement powered by batched data movement operations, compute and I/O pipelining; (2) a modular KV cache connector component, decoupling LMCACHE from the rapid evolution of inference engines; (3) a first-class control API for flexible cache orchestration across GPU, CPU, storage, and network layers. Our evaluation shows that combining LMCACHE with vLLM achieves up to 15x improvement in throughput across workloads such as multi-round question answering and document analysis. Large-scale adoption of LMCACHE in enterprise settings provides us valuable insights, for example, fetching KV cache from remote storage has unsurprisingly benefits to prefill delay, and that context truncation, which is a widely applied technique in industry, can greatly reduce prefix cache hit ratio by half. The source code of LMCACHE is at: https://github.com/LMCache/LMCache.

📄 PDF Abstract BibTeX arXiv:2510.09665

Code (0)

등록된 구현이 없습니다.

Tasks

Question Answering

Similar Papers 제목 키워드 기반

LLMCache: Layer-Wise Caching Strategies for Accelerated Reuse in Transformer Inference

2025-12-18 · Harsh Vardhan Bansal arxiv

Transformer-based language models have achieved remarkable performance across a wide range of tasks, yet their high inference latency poses a significant challenge for real-timeand large-scale deployment. While existing …

Semantic Similarity

Do Large Language Models Need a Content Delivery Network?

2024-09-16 · Yihua Cheng, Kuntai Du, Jiayi Yao, Junchen Jiang

As the use of large language models (LLMs) expands rapidly, so does the range of knowledge needed to supplement various LLM queries. Thus, enabling flexible and efficient injection of new knowledge in LLM inference is cr…

In-Context Learning

SwiftKV: Fast Prefill-Optimized Inference with Knowledge-Preserving Model Transformation

2024-10-04 · Aurick Qiao, Zhewei Yao, Samyam Rajbhandari, Yuxiong He

LLM inference for popular enterprise use cases, such as summarization, RAG, and code-generation, typically observes orders of magnitude longer prompt lengths than generation lengths. This characteristic leads to high cos…

16kCode GenerationGPURAG

Grounded Cache Routing for Retrieval-Augmented Generation: When Is It Safe to Reuse an Answer?

2026-05-26 · Syed Huma Shah arxiv

Modern retrieval-augmented generation(RAG) deployments increasingly rely on caching to reduce token cost and time-to-first-token(TTFT). Prefix-level KV reuse is now standard in serving stacks such as vLLM, and chunk-leve…

Memory-Efficient Visual Autoregressive Modeling with Scale-Aware KV Cache Compression

2025-05-26 · Kunjun Li, Zigeng Chen, Cheng-Yen Yang, Jenq-Neng Hwang

Visual Autoregressive (VAR) modeling has garnered significant attention for its innovative next-scale prediction approach, which yields substantial improvements in efficiency, scalability, and zero-shot generalization. N…

Zero-shot Generalization