Skip to main content
Why is serving large language models so hard?
  • Models often barely fit GPU memory, leaving no headroom for concurrent users.
  • Some workloads force servers to reprocess the entire prompt for every new token or message.
  • Saved work (conversation state) frequently becomes pinned to a single server, creating hotspots.
  • Memory capacity directly limits how many concurrent users a server can support.
  • Naive routing wastes the most expensive resource you have: GPU cycles.
A presentation slide titled "Why It's So Hard" listing hand-drawn points about memory and model limits (e.g., memory caps, saved work pinning a chat to one server, every token re-reads the model, model barely fits in memory). A small circular webcam overlay of a bearded man appears at the bottom-right and a KodeKloud logo sits at the bottom-left.
Serving LLMs at scale is constrained by memory, compute, and routing. Addressing just one of these (for example, adding more GPUs) often fails to fix the end-to-end bottleneck unless routing and work placement are considered as well.
These challenges stalled progress across the industry. To address them publicly, Red Hat, Google, IBM, and NVIDIA collaborated on an open project called llm-d.
A diagram titled "Solved in the Open" showing a smiling robot labeled "llm-d" with arrows linking it to Red Hat, Google, IBM, and NVIDIA. A small circular video inset of a person appears in the bottom-right.

What is llm-d?

At a high level, llm-d is an intelligent router that sits in front of your inference fleet. Unlike a simple load balancer that sends work to the next free server, llm-d reasons about where each request should go and routes it to the server best suited to handle it. To make that decision it considers three primary signals:
  1. Which server already holds the saved work (conversation state).
  2. How much free memory each server currently has.
  3. How long each server’s queue is.

1) Saved-work affinity

llm-d tracks which server holds each user’s saved work. When a new message arrives, instead of scattering the conversation across the fleet, llm-d routes it back to the server that already has the conversation state in memory. That server can reuse cached key/value states and skip reprocessing the entire prompt, producing much faster responses.
A hand-drawn diagram titled "It routes you to your saved work" showing a user dot routed through a box labeled "llm-d" to stacked saved-chat containers (one labeled "your chat"). A small circular webcam photo of a man appears in the bottom-right.
Routing by saved work rather than blind balancing can often yield roughly 3x throughput and about a 2x improvement in time-to-first-token on the same hardware.

2) Routing by real-time load

llm-d looks inside each server to check memory utilization and queue length. By steering requests to servers with genuine capacity, llm-d avoids overloading already-full machines and preserves predictable latency for active sessions.
A hand-drawn diagram titled "It routes by real load" showing a request arrow into a box labeled "llm-d" that forwards traffic to three servers. Each server has a colored load bar (red = already full, green = room to spare), with a small presenter photo in the lower-right.

3) Separate prefill and decode pools

A single inference request usually has two phases:
  • Prefill — the compute-heavy phase that reads and processes the prompt (large parallel compute).
  • Decode — the token-by-token generation phase (longer, more memory-centric, and largely sequential per token).
On a shared GPU these phases contend for the same resources: a big prefill (for example, a long prompt) can block decodes for everyone else. llm-d can split traffic between specialized pools — a prefill pool optimized for raw compute and a decode pool optimized for memory and streaming — and route accordingly.
A cartoon-style diagram showing incoming requests routed to GPU grids, with colored dots representing work on each core. A legend labels orange dots as "prefill — every core fires" and green as "decode — one core."
For example, you could route prefill workloads to H100-class GPUs for maximum FLOPs, and route decode workloads to H200-class (or other memory-optimized) GPUs for larger activation and KV-cache capacity.
A hand-drawn diagram showing incoming requests being routed to two stacked GPU pools labeled "prefill only (H100 - fast compute)" and "decode only (H200 - more memory)". A small circular headshot is inset at the bottom-right.
When a prefill server finishes reading a prompt, it transfers the saved work across a fast link to a decode server which then streams the response token-by-token. This specialization can improve token throughput by as much as ~70% on the same hardware for some workloads.

Built on the platform you already run

llm-d is designed to integrate with the container orchestration platforms many teams already use to manage workloads. By operating on top of existing orchestration and operational practices, llm-d can be adopted without replacing your entire infrastructure stack.
A presentation slide titled "Built on what you already know" with four bullet points about a platform for AI inference and operations. The slide also shows a hand-drawn wheel icon and a small circular webcam photo of a speaker in the bottom right.
Industry reporting indicates that roughly 66% of organizations hosting generative AI use container orchestration platforms to manage some or all of their inference workloads.
A webpage screenshot of an article titled "The future of AI is community driven and open" with a byline dated July 23, 2026 and body text about Kubernetes and AI. A small circular webcam-style photo of a man appears in the bottom-right and a KodeKloud logo is visible at the lower-left.
Key takeaways: llm-d provides saved-work affinity, routes by real-time load, and separates prefill from decode. Together these features improve GPU utilization, reduce latency, and increase throughput for serving large language models.

Quick reference — what llm-d gives you

The net result: llm-d brings practical, deployable routing intelligence to LLM inference fleets — improving utilization, latency, and throughput without ripping out the platform you already run.

Watch Video