What is disaggregated serving?

Disaggregated serving is a serving architecture that runs the two phases of language model inference, prefill for processing the prompt and the decode phase for producing answer tokens one by one, on separate GPU pools that pass the key-value (KV) cache between them.

Unlike classic serving, the two phases stop waiting on each other: on the same GPU, compute-heavy prefill work can delay memory-bound decode steps, whereas here each pool is sized and tuned for its own phase. Chunked prefill eases the same problem within one pool by splitting prefill into small parts.

Topic
Inference and performance
Also known as
Disaggregated inference, prefill-decode disaggregation

How disaggregated serving works

  1. An incoming request goes first to the prefill pool, where the prompt is processed and the key and value cache computed.
  2. This cache moves over a high-speed link to a GPU in the decode pool.
  3. The decode pool produces answer tokens, batching many requests' decode steps at once.
  4. GPU counts for the two pools are set separately against time-to-first-token and inter-token latency targets.

In more detail

Matching different GPU types and parallelism strategies

A major economic driver (highlighted in Splitwise) is heterogeneous hardware matching: the compute-bound prefill pool can run on high-FLOPS GPUs with tensor parallelism, while the memory-bandwidth-bound decode pool can use memory-rich or cost-optimised GPUs with larger batch sizes.

KV cache transfer size, RDMA and layer-wise streaming

For long prompts (e.g., 64K, 128K tokens), the KV cache can reach gigabytes per request. Disaggregated serving therefore depends on GPUDirect RDMA (InfiniBand/RoCEv2) or NVLink and often streams KV blocks layer-by-layer during prefill so transfer latency overlaps with computation.

Goodput, prefix-aware routing and current engines

DistServe defines "goodput" as the maximum request rate meeting both TTFT and TPOT/ITL service-level objectives simultaneously. Disaggregated engines (such as vLLM, SGLang, Mooncake or NVIDIA Dynamo) pair prefix-cache-aware routing with dynamic prefill-to-decode GPU ratio scaling as prompt and output lengths shift.

Commonly confused terms

TermHow it differs
Chunked prefillChunked prefill breaks long prompts into smaller slices so prefill and decode steps can share the same GPU pool without severe stalls, whereas disaggregated serving physically separates prefill and decode onto distinct GPU pools.
Tensor and pipeline parallelismTensor and pipeline parallelism split a single model's layers or matrices across multiple GPUs to fit memory and accelerate one phase, whereas disaggregated serving splits the lifecycle phases (prefill versus decode) into independent serving pools.

Why disaggregated serving matters for on-premises AI

Disaggregated serving can help large multi-user setups meet time-to-first-token and inter-token latency targets together while using hardware more efficiently. The cost is infrastructure complexity: large cache transfers between pools need a high-bandwidth network, a serving layer managing both pools and more monitoring. With few in-house GPUs this complexity often outweighs the gain.

ON-PREMISES EXAMPLE

For its busy internal help desk assistant, a bank splits its GPU cluster into a prefill pool for long prompts and a decode pool for answers, linked by a fast network, tracking latency targets per pool.

Common questions

Why is disaggregated serving done?

Prefill is compute-heavy while decode is memory-read-heavy. Running them in separate pools stops one delaying the other, letting each pool be sized for its job.

Does it suit every in-house setup?

No. It needs a high-speed network and a more complex serving layer. With few GPUs, simpler methods such as chunked prefill are often enough.

Sources

In the glossary: Glossary, D to L

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.