AIAny
AI Infra2024
Icon for item

LMCache

Stores and reuses LLM key-value caches across GPU, CPU, disk, and remote backends so vLLM and SGLang skip recomputing repeated context. Non-prefix reuse (CacheBlend) and PD disaggregation cut time-to-first-token for long-context and RAG serving.

Introduction

Every long prompt your LLM has already processed gets recomputed from scratch the next time it shows up — the same RAG documents, the same system prompt, the same conversation history, burned again on the GPU. LMCache's bet is that the key-value cache produced during that work is reusable knowledge, not disposable per-request state, and should live wherever there is cheap memory: GPU, CPU RAM, local disk, or a shared remote store.

What Sets It Apart
  • Non-prefix reuse: unlike standard prefix caching, CacheBlend reuses cached chunks that appear anywhere in a prompt (say, the third retrieved doc in a RAG query) and recomputes only the few tokens needed to stitch them together — far more cache hits on real workloads.
  • Engine-independent: it runs as a standalone layer in front of vLLM, SGLang, and other mainstream engines instead of being welded to one, so a single cache pool serves a whole fleet.
  • Tiered, shared storage: KV caches offload across CPU, disk, Redis/Valkey, and S3-compatible backends, and survive an engine crash rather than vanishing with the process.
  • Prefill/decode disaggregation: KV moves over NVLink, RDMA, or TCP, letting prefill and decode run on separate hardware. The payoff is claimed up to 7x faster KV access and large TTFT drops on long-context, multi-turn, and agentic serving.
Who It's For

Great fit if you run production LLM serving at scale where the same context — RAG corpora, long system prompts, multi-turn sessions — recurs and TTFT and throughput actually matter, especially across a multi-node vLLM/SGLang fleet. Look elsewhere if your traffic is short, one-off prompts with little repeated context, or you run a single small model: the extra moving parts (external KV store, tiered offload) add operational overhead without enough cache reuse to pay for them.

Information

  • Websitegithub.com
  • OrganizationsUniversity of Chicago, Tensormesh
  • AuthorsLMCache
  • Published date2024/05/28

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.