Hot AI News

Disaggregated inference: Why AI clouds split prefill and decode across separate GPUs

Large language models read a prompt and write an answer in two very different phases. Disaggregated inference gives each phase its own GPUs. Here is how and why.

Disaggregated inference: Why AI clouds split prefill and decode across separate GPUs
Photo illustration: Aiholics

Disaggregated inference is a way of running a large language model in which the work on each request is split across two groups of GPUs. One group reads the prompt, which is called prefill. The other writes the answer token by token, which is called decode. Each group can then be sized and tuned for its own job.

The pause before the first word, and the stream after it

Paste a long report into a chatbot and ask for a summary. There is usually a short pause, then the words start flowing at a steady pace. Those are the two phases. During the pause, the model reads the entire report at once. During the stream, it produces one small piece of text at a time.

The two phases feel different to the user, and they put very different loads on the hardware. Disaggregated inference starts from that observation. Instead of making one machine handle both, it gives each phase its own GPUs and hands the request from one group to the other in the middle.

Advertisements

Why reading and writing strain a GPU in different ways

An AI accelerator in a laboratory test fixture stands beside a monitor showing parallel lines converging into a sequence of violet blocks.
Photo illustration: Aiholics

A language model works in tokens, which are word fragments. In prefill, the model processes every prompt token in parallel. That means a lot of arithmetic at once, so prefill is limited mostly by how fast the GPU can calculate. Nvidia describes prefill as “compute-bound.”

Decode is the opposite. Each step produces a single new token, but it has to pull the model’s weights and its notes on the earlier text out of memory again. The arithmetic is light and the memory traffic is heavy. Nvidia calls decode “memory-bound.” The Splitwise paper put it as “a compute-intensive prompt computation, and a memory-intensive token generation.”

Those notes have a name: the KV cache, short for key-value cache. It stores what the model computed about each earlier token so that it does not redo that work at every step. Prefill builds the KV cache. Decode reads from it and adds to it.

An analogy helps. Think of a restaurant where the same cooks do both bulk prep and plating at the pass. When a huge prep order arrives, plates for waiting tables stall. Separating the prep kitchen from the plating line lets each run at its own pace.

Moving the KV cache from one GPU group to another

In a standard setup, called colocated serving, the same GPUs run prefill for new requests and decode for older ones. They interfere with each other. A long prompt arriving mid-stream can slow the token flow for everyone else on that GPU.

In a disaggregated setup, a request goes first to a prefill worker. That worker reads the prompt, produces the first token and builds the KV cache. The KV cache is then copied over a fast network link to a decode worker, which writes the rest of the answer.

That copy is the price of the design. Splitwise noted that splitting a request “requires state transfer from the machine running prompt computation over to the machine generating tokens.” This is why disaggregation leans on fast interconnects inside racks and clusters. Nvidia’s Dynamo launch post said these systems “require rapid KV cache transfer between prefill and decode GPU workers.”

Serving teams usually track two latency numbers. Time to first token (TTFT) measures the pause before the answer starts. Time per output token (TPOT), also called inter-token latency, measures the pace of the stream. Splitting the phases lets operators tune each number on its own, with different GPU counts and different ways of dividing the model across GPUs for each side.

Advertisements

From two 2023 and 2024 papers to the default playbook

Two research groups published the idea at about the same time. Splitwise, by Pratyush Patel, Esha Choukse, Ricardo Bianchini and colleagues, appeared on arXiv in November 2023. It proposed running the two phases on separate machines, possibly of different types. The authors reported 1.4x higher throughput at 20% lower cost than then-current designs, or 2.35x more throughput for the same cost and power budget.

DistServe, by Yinmin Zhong, Hao Zhang and colleagues, followed in January 2024 and was presented at OSDI 2024, a systems conference. It focused on “goodput,” meaning the number of requests served while still meeting latency targets. The authors reported serving 7.4x more requests, or meeting 12.6x tighter latency targets, compared with the state-of-the-art systems they tested against.

Adoption was slow at first. In a November 2025 retrospective, Hao Zhang’s lab at UC San Diego wrote that DistServe “didn’t see widespread adoption throughout 2024.” By 2025, they wrote, disaggregation “quickly became the default playbook across nearly every major LLM serving stack.”

Who runs disaggregated serving today

Nvidia built the idea into Nvidia Dynamo, an open-source inference framework announced in March 2025. Dynamo includes a planner that shifts GPUs between prefill and decode as demand changes, a router that sends requests to GPUs already holding useful KV cache, and a transfer library called NIXL (Nvidia Inference Transfer Library) for moving data between GPUs. Nvidia said Dynamo increased requests served by up to 30x for DeepSeek-R1 on GB200 NVL72 systems, a figure it labeled as projected.

Open-source engines followed. The vLLM project documents a feature for this, with connectors such as NixlConnector and MooncakeConnector to carry the KV cache between instances. The UC San Diego retrospective also lists SGLang, llm-d, Ray Serve LLM, LMCache and Mooncake among the stacks that use disaggregation.

Cloud providers now package it. As our report on AWS making Nvidia Vera Rubin instances generally available notes, Amazon SageMaker HyperPod Inference added Dynamo support, and Salesforce said it expected better multi-GPU use and steadier latency from it. Large rack-scale systems such as Vera Rubin NVL72, with many GPUs joined by fast links, are the kind of hardware where moving KV cache between groups is cheap enough to pay off.

Advertisements

The trade-offs: Transfer costs, tuning work and no free throughput

Disaggregation is not a universal speedup. The vLLM documentation, which marks the feature as experimental, states plainly: “Disaggregated prefill DOES NOT improve throughput.” Its stated benefits are separate control over the two latency numbers and steadier token flow, because long prompts no longer cut into decoding.

The KV cache transfer adds traffic and delay. For short prompts, the copy can cost more than it saves. Nvidia’s Dynamo post says disaggregation “might not always be the most effective solution for every incoming request,” and that the decision depends on transfer time, queue waits and processing time. At the scale of hundreds of GPUs, Nvidia wrote, those decisions “can quickly become very complex.”

There is also engineering cost. The UC San Diego retrospective says disaggregation requires “a lot of engineering effort to refactor existing serving systems.” Operators must also choose the ratio of prefill to decode GPUs, and the right ratio shifts as the mix of long and short prompts changes.

Disaggregation also competes with a colocated technique called chunked prefill, which breaks long prompts into slices and mixes them with decode steps. It reduces interference without moving data between GPUs. The retrospective argues that under bursty traffic, a single large prefill can still slow decoding by 2 to 30 times in that setup.

What to watch next

The idea is spreading inside the model itself. Researchers are testing whether to split decode further, for example by running attention and the model’s feed-forward layers on separate hardware. The UC San Diego retrospective notes that this finer split raises communication overhead and makes it harder to overlap data movement with computation.

Hardware choice is another thread. Splitwise argued that decode does not need the compute power of the newest GPUs and could run on cheaper, lower-power chips. Whether clouds start mixing chip generations this way, rather than using one GPU type everywhere, is an open question. So is how KV cache storage on CPUs, SSDs and network storage, which Dynamo already supports, changes the math for long-context and agent workloads.

Sign Up for the Daily AI Pulse

One email a day. All the stories that matter.

Daniel ReedAI Research, Safety & Ethics Analyst

Daniel Reed currently works as an AI Research, Safety & Ethics Analyst at Aiholics, writing about how changes in artificial intelligence are affecting and will affect scholarship,…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like