Disaggregated inference

Disaggregated inference splits the two phases of running a language model, reading the prompt and generating the answer, onto separate groups of chips so each can be sized and tuned for its own job.

Answering a prompt with a language model happens in two phases. In prefill, the model reads the whole prompt at once and produces the first token; this is heavy on arithmetic and keeps the chips busy. In decode, it generates the rest of the answer one token at a time; each step does little arithmetic but must read the model's weights and the stored context from memory, so it is limited by memory speed. Traditionally both phases run on the same GPUs, with requests batched together.

Mixing them causes friction. A long prompt arriving for prefill can stall the token-by-token output of everyone else on the same GPU, and a single hardware setup cannot be ideal for both kinds of work. Disaggregated inference separates them: one pool of GPUs does prefill, another does decode, and the intermediate state, the KV cache that records the processed prompt, is sent across the network from one to the other.

Two research papers made the case. Splitwise, posted in November 2023 by Pratyush Patel and colleagues, put the two phases on separate machines and reported 1.4 times the throughput at 20 percent lower cost, or 2.35 times the throughput for the same cost and power. DistServe, by Yinmin Zhong and colleagues and presented at OSDI 2024, sized each phase separately against targets for time to first token and time per output token, and reported up to 7.4 times more requests served within those targets.

The idea moved quickly into industry software. NVIDIA built disaggregated serving into Dynamo, an open-source inference framework announced at its GTC conference on March 18, 2025, which uses a transfer library called NIXL to move the KV cache between prefill and decode GPUs and works with engines including vLLM, SGLang and TensorRT-LLM. The vLLM project also supports disaggregated prefill.

For readers, the practical point is that the cost and speed of AI answers depend increasingly on how serving is engineered, not only on the chips. The gain is not free: moving the KV cache needs fast interconnects between machines, and the benefit is largest at scale with long prompts and strict latency targets.

Common questions

What are prefill and decode?

Prefill is the first phase of answering a prompt, where the model processes all the input tokens together and produces the first output token. Decode is the second phase, where it generates the remaining tokens one by one. Prefill is limited mainly by computing power and decode mainly by memory bandwidth.

Why separate prefill and decode onto different GPUs?

Because they stress hardware in different ways and interfere when they share it. Separating them lets each pool use the number of GPUs and parallel layout that suits its work, and stops long prompts from slowing down token generation for other users. Research systems reported large gains in requests served within latency targets.

What is the downside of disaggregated inference?

The KV cache for each request has to be copied from the prefill machines to the decode machines, which needs fast connections such as NVLink or InfiniBand and adds complexity. For small deployments or short prompts the overhead can outweigh the benefit.

Which software supports disaggregated inference?

NVIDIA's open-source Dynamo framework, announced in March 2025, is built around it, and the vLLM project supports disaggregated prefill. Dynamo works alongside engines such as vLLM, SGLang and TensorRT-LLM.

Finding more

Search for "disaggregated serving", "prefill decode disaggregation", "DistServe" and "Splitwise". The original papers on arXiv and at systems conferences such as OSDI explain the reasoning and measurements, and the documentation of open-source engines shows how it is configured today. Speed-up figures in vendor announcements often depend on specific models, hardware and projections, so read the footnotes.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.