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

Turns natural-language instructions into end-to-end Android automation that drives real devices and captures Logcat and screenshots. Uses a multimodal “Dynamic‑First, Coordinate‑Fallback” locator and a native MCP server for IDE integration, supporting fast Flash (3–5s/step) and verifiable Pro workflows.

Converts real repositories into verifiable, sandboxed training environments with black-box tests to train coding agents on long-horizon program reproduction. Provides Program-Env for automated environment construction and Program-Agent for a role-isolated development workflow, yielding 1,648 C/C++/Go/Rust tasks and improving benchmark performance.

GitHub
AI Agent2026

Runs a local-first AI agent runtime that drives your desktop and automates workflows — browsing, file edits, approved shell commands, document extraction, and scheduled tasks — while integrating local or cloud LLMs (llama.cpp/TurboQuant) and embedding as an HTTP service or Tauri sidecar.