Skip to main content
Before introducing llm-d, let’s align on what makes serving large language models (LLMs) difficult at scale:
  • Models barely fit in GPU memory.
  • Each generated token may re-read large parts of the context.
  • The KV cache (the saved attention state) is often tied to the single server that built it.
  • Memory limits restrict how many concurrent users you can serve.
  • Naive request routing wastes previously computed work from expensive hardware.
Individually none of these is fatal — together they make production LLM serving complex and costly. Several major organizations faced this same wall and collaborated on a shared, open approach to overcome it.
A slide titled "Everyone Hit the Same Wall" with icons for Red Hat, Google, IBM and NVIDIA on the left and a stacked, color-coded brick graphic on the right listing issues like "Wasted work," "Capped users," "Stuck cache," "Re-reads it all," and "Barely fits."
That collaborative answer is llm-d. The project is young, already production-capable, and publishes performance numbers. The long-term goal — as articulated by industry leaders — is to make AI accessible to every industry, researcher, and student through open, shared infrastructure.
A dark-themed infographic showing an AI core node that branches down to four categories labeled Industry, Country, Researcher, and Student. At the top is a profile badge with a person's name and company, and below is a row of server/storage icons.
What llm-d does, simply put, is act as a smart router in front of your model-serving fleet. Instead of picking a server arbitrarily, it reasons about each incoming request and chooses the server best able to serve it. llm-d relies on two primary signals that are common to model-serving systems. The first (and most important) signal: where is your saved work? llm-d tracks which server holds each conversation’s KV cache and routes follow-up requests back to that server so the model can reuse the cached attention keys and values. That avoids recomputing the expensive prompt pass and yields much faster responses.
The “KV cache” is the attention key-value cache created during the prompt/prefill phase. Keeping it local prevents recomputing attention over the prompt for every token generation.
The second signal is runtime capacity: llm-d inspects each server’s health (free memory, queue length, active streams, etc.) and avoids sending work to machines that are already saturated. Combining cache-awareness with capacity-awareness prevents loading a large prefill or decode onto an already-busy server.
A diagram titled "A Smart Router Out Front" showing an llm-d router directing traffic to several labeled pods on the right, each with occupancy bars and percentage metrics. The left side has icons and text asking "How full?" and "How long a line?".
Quick comparison: naive round-robin routing vs. cache- and capacity-aware routing A single inference naturally splits into two phases:
  • Prefill (prompt pass): the one-time, compute-heavy pass that reads the prompt and builds the KV cache.
  • Decode (token-by-token pass): the memory- and I/O-heavy streaming pass that generates tokens using the KV cache.
On a single shared GPU, long prefill passes can stall decodes from other users. llm-d can split these phases across different pools: a prefill pool optimized for compute, and a decode pool optimized for memory and streaming. When a prefill server finishes, it transfers the KV cache to a decode server over a fast interconnect. This separation can significantly increase tokens-per-second and reduce stuttering from giant prompts.
An infographic titled "Two Halves, Two Pools" comparing a "Prefill pool" and a "Decode pool" with stylized VRAM chips and token grids. It also shows gauges for "Time to first token" and "Tokens per second" (noting a +70% improvement).
From an operational standpoint, llm-d is designed to work with the infrastructure teams already rely on: it runs on Kubernetes, treats servers as pods, coexists with model servers like vLLM, and integrates with your existing proxy configuration. In practice, llm-d adds routing intelligence and visibility that Kubernetes alone can’t provide.
A dark-themed infographic titled "It Runs on What You Already Use" showing an "llm-d" logo connected by an arrow to three components labeled Pods, vLLM, and Proxy (each with checkmarks). Below is a highlighted Kubernetes section.
In summary: llm-d is an open-source smart router that
  • Sends requests to the server holding the relevant KV cache,
  • Ensures there’s room to spare by observing runtime capacity, and
  • Splits prefill and decode phases across hardware optimized for each.
These design choices directly tackle the stack of practical problems introduced earlier and unlock significant improvements in throughput and latency.
A dark teal presentation slide titled "So That's llm-d" featuring the llm-d logo and three iconed bullet points: "Your saved work," "Room to spare," and "Two halves, split." A small copyright notice for KodeKloud appears in the lower-left corner.
Next steps — where to start and what to plan for:
  • Identify your model server (for example, vLLM) and how it exposes KV cache and health metrics.
  • Decide whether to adopt a split pool architecture (prefill vs decode) depending on your prompt sizes and concurrency.
  • Ensure fast network interconnects between prefill and decode servers if you plan to transfer KV caches.
  • Integrate llm-d as a fronting router and validate routing decisions with load testing.
Links and references If you want, I can draft an operational checklist for deploying llm-d on Kubernetes with vLLM, including recommended pod sizes, health probes, and network requirements.

Watch Video