Hot AI News

Disaggregated inference: Why AI servers split reading the prompt from writing the answer

Large language models do two different jobs for every request. Disaggregated serving gives each job its own GPUs. Here is how it works, where it came from and when it does not pay off.

Disaggregated inference: Why AI servers split reading the prompt from writing the answer
Photo illustration: Aiholics

Disaggregated inference is a way of running a large language model in which two stages of every request run on separate groups of graphics processors (GPUs). One group reads the prompt. The other writes the answer one word at a time. Splitting the work lets each group be sized and tuned for its own job, so a busy service can keep its responses fast for more users.

An everyday example: paste a long report into a chatbot and ask for a summary. There is a short pause, then words stream out steadily. The pause is the model reading your whole prompt. The stream is the model writing. Those two moments put very different loads on the hardware, and disaggregation is about stopping them from getting in each other’s way.

Reading the prompt and writing the answer are two different jobs

Engineers call the first stage prefill. The model processes every token of the prompt at once. A token is a word or a piece of a word. Because all the tokens are handled in parallel, prefill keeps the GPU’s math units busy. It is limited mainly by raw computing power.

The second stage is decode. The model produces one new token, adds it to the text, then produces the next. Each step does little math but has to read the model’s weights and its saved notes on the conversation from memory. Those saved notes are called the KV (key-value) cache. Decode is therefore limited mainly by memory speed.

Each stage has its own speed measure. Time to first token (TTFT) is how long the pause lasts before the answer starts, which depends on prefill. Time per output token (TPOT) is how fast the words keep coming, which depends on decode.

Advertisements

Why sharing the same GPUs slows both stages down

A rack-mounted screen in a data centre displays a dense grid of blue tiles above an interrupted sequence of violet tiles.
Photo illustration: Aiholics

The usual way to serve a model is to run both stages on the same GPUs. To use the hardware well, servers batch many users’ requests together. That means a big prefill job for a new user can land in the middle of other users’ decoding.

Think of a kitchen where the same cooks both prep large new orders and plate dishes already on the stove. Each time a big order arrives, plating stops and the diners waiting for their next course notice the gap. On a GPU, a long prompt from one user can briefly stall the word stream for everyone else.

The DistServe paper put the problem this way: colocating the stages leads to “strong prefill-decoding interferences.” Operators then have to favor one latency over the other, or buy extra GPUs to meet both targets.

Splitting the work across two pools of GPUs

Disaggregation gives each stage its own pool. A request first goes to a prefill worker, which reads the prompt and builds the KV cache. That cache is then copied to a decode worker, which writes the answer. A router decides which workers handle each request.

Because the pools are separate, each can use a different number of GPUs and a different way of splitting the model across them. Operators can also change the ratio of prefill to decode workers. A service handling long documents and short answers might need more prefill capacity. A chatbot writing long replies might need more decode capacity.

The key cost is the cache transfer. The KV cache for a long prompt can be large, so it has to move over fast links between GPUs. In Nvidia’s Dynamo software, a library called NIXL copies the cache directly from the memory of the prefill GPU to the memory of the decode GPU, and Nvidia’s documentation describes the transfer as non-blocking.

Advertisements

From research papers to Nvidia Dynamo and the cloud

The idea took shape in two research papers. Splitwise, posted in November 2023 by a team including Pratyush Patel, Esha Choukse and Ricardo Bianchini, described prompt computation as compute-intensive and token generation as memory-intensive. It proposed running the phases on separate machines and noted that token generation does not need the newest GPUs. The authors reported 1.4x higher throughput at 20% lower cost than current designs, or 2.35x more throughput with the same cost and power budget.

DistServe, by Yinmin Zhong, Hao Zhang and colleagues, was posted in January 2024 and presented at the OSDI systems conference that year. It measured success by goodput: the highest request rate each GPU can handle while meeting both the TTFT and TPOT targets. The authors reported serving up to 7.4x more requests, or meeting 12.6x tighter latency targets, than the state-of-the-art systems they tested.

Nvidia brought the approach into a product with Dynamo, an open-source inference framework announced at its GTC conference in March 2025. Dynamo works with the TensorRT-LLM, vLLM and SGLang engines. Nvidia said that serving DeepSeek-R1 on GB200 NVL72 systems with disaggregated serving “increased the number of requests served by up to 30x”. The chart footnote calls this projected performance that is subject to change.

The technique is now reaching cloud customers. Amazon SageMaker HyperPod Inference added Dynamo support, and Nvidia mentioned it alongside the new rack-scale hardware in AWS opening Vera Rubin to all customers. Machines like NVL72 racks link many GPUs with fast connections, the kind of setting where moving caches between pools is cheapest. The open-source vLLM engine also offers a disaggregated prefill mode through connectors such as NixlConnector and MooncakeConnector.

When splitting the work does not pay off

Disaggregation is not a free speed-up. The vLLM documentation states plainly that disaggregated prefill “DOES NOT improve throughput.” It presents the feature as a way to tune TTFT and inter-token latency separately and to control the slowest word gaps. The feature is marked experimental there.

Nvidia’s Dynamo docs make a similar point: disaggregation “does not make either phase free.” At low traffic, a single combined worker often avoids the transfer cost and the waste of keeping two half-used pools. The docs also warn that if decode memory is the bottleneck, adding prefill workers can lower total capacity.

There are practical limits too. Prefill and decode workers must run the same model with a compatible cache layout, or transfers fail. Getting the ratio of workers right takes measurement. Simpler alternatives exist as well: chunked prefill splits long prompts into pieces that interleave with decoding, though vLLM notes the right chunk size is hard to figure out.

Finally, the large headline gains come from the people who built the systems, measured on their chosen models, prompt lengths and baselines. They show what is possible in those setups, not what every service will see.

Advertisements

What to watch as serving software and hardware specialize

The first thing to watch is automatic switching. Nvidia describes Dynamo’s planner as deciding whether to serve incoming requests with or without disaggregation, and the docs describe adding and removing workers at runtime. Whether this kind of tuning works well without hand adjustment will decide how widely the approach spreads.

The second is hardware. Splitwise argued that each phase could run on hardware suited to it, with older or cheaper GPUs handling decode. Watch whether cloud providers start offering mixed pools priced for each stage.

The third is independent measurement. Cloud launches such as the P7 instances on AWS mention the software but publish no per-request cost figures. Outside benchmarks of goodput and cost per request on real traffic will show how much of the reported gains carry over.

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