# vLLM Disaggregated Prefill Decode: A NixlConnector Guide

> How to split vLLM into prefill and decode instances with NixlConnector, what vLLM's own L40S goodput numbers show, and the transfer checks that stop you benchmarking a broken setup.

URL: https://www.matthewswong.com/en/blog/vllm-disaggregated-prefill-decode-serving-guide/

- Author: Matthews Wong (https://www.matthewswong.com/en/about/)
- Published: 2026-10-17
- Updated: 2026-10-17
- Category: AI/ML

> **Key takeaway:** Disaggregated prefill and decode in vLLM v0.31.0 runs prefill and decode as separate vllm serve instances joined by NixlConnector, so long prompts stop stalling token streaming. vLLM's L40S test cut p99 inter-token latency from 169 ms to 29 ms, but without peer-to-peer GPU access median time to first token rose from 0.7 s to 2.2 s.

The most expensive mistake in a prefill and decode split is benchmarking one that is quietly broken. If the two GPUs cannot reach each other directly, the split still starts, still returns correct text and still draws a clean inter-token latency chart, while every request pays more than a second to move its KV cache. You find out when someone asks why time to first token tripled.

This post is a close reading of vLLM's own guide to disaggregated serving, published on 29 September 2026, alongside the NixlConnector documentation, the disaggregated prefilling feature page and the v0.31.0 release notes. I did not run the setup myself, so every measurement below is vLLM's and is attributed that way, and the commands are the ones those pages print. Where a figure is my own arithmetic rather than a measurement, I say so.

## Why one vllm serve process fights itself

A single vllm serve process does three different jobs. Prefill reads the whole prompt in one compute-bound burst and decides time to first token. Decode generates one token at a time, is bound by memory bandwidth and decides inter-token latency. The CPU frontend does templating, tokenisation and output parsing. On one GPU the first two take turns on the same hardware, so a long prefill lands in the middle of everyone else's token stream.

The guide's measure of success is goodput: requests per second that meet both a time-to-first-token target and an inter-token-latency target, not peak tokens per second. The feature page is blunt about the other side of this: 'Disaggregated prefill DOES NOT improve throughput.' What it buys is the ability to tune the two latencies separately, with different parallel settings per instance, and to stop prefill interrupting decode. The same page marks the feature as experimental and subject to change.

The idea is older than vLLM's implementation. The DistServe paper assigns prefill and decoding to different GPUs and reports serving 7.4x more requests, or meeting a 12.6x tighter latency objective, than the systems it compared against. Treat that as a research ceiling rather than a forecast for your model. The rest of this post is about how much of it survives contact with a real interconnect.

## Do the KV transfer arithmetic before you build anything

Every request in a split has to move its prompt's KV cache from the prefill GPU to the decode GPU before the first generated token. The size is fixed by the model, so you can estimate the bill from the model card. The guide puts Llama-3.1-70B in BF16 at 320 KiB of KV cache per token. A 10,000-token prompt is therefore about 3 GB, and at 400 Gb/s the wire time alone is about 64 ms, which is my arithmetic: 3.2 GB times 8 bits, divided by 400 Gb/s, before any protocol overhead.

Llama-3.1-70B BF16, 10,000-token prompt

About 3 GB (320 KiB per token)

About 64 ms at 400 Gb/s, before overhead

KV per token from the guide; the time is my arithmetic

Qwen2.5-7B, 8k-token prompt, two L40S without peer-to-peer

About 470 MB

About 1.3 s

Measured by the guide on its test box

The second row is the lesson. Under a sixth of the data took about twenty times longer, because the path between the GPUs was not peer to peer. I am comparing a theoretical wire time with a measured one on different hardware, so read that as an order of magnitude, not a ratio. The point is that bandwidth is not the only variable: the route is. The guide says to check two things before any benchmark.

The first confirms the topology and the second reads what a real transfer cost. Neither needs a benchmark harness, and both take a minute. If either looks wrong, nothing you measure afterwards means anything.

## Stand up the three processes

The guide's minimal deployment is two vllm serve instances and a proxy, and it assumes vLLM v0.31.0 or later. The prefiller takes kv_role kv_producer, the decoder takes kv_consumer, and both load NixlConnector. NIXL installs with uv pip install nixl on NVIDIA; other platforms build it from source against UCX. I replaced the guide's Qwen3-0.6B wiring example with Qwen2.5-7B-Instruct, because the guide says the 0.6B model prefills so fast that it barely disturbs decode and there is nothing for the split to fix.

The NixlConnector docs example also passes --enforce-eager. I left it out so a benchmark runs the engine the way production would. The proxy is toy_proxy_server.py from the vLLM repository, and the guide says it is for development only, naming llm-d and Dynamo as the production options. The settings that matter are these.

VLLM_NIXL_SIDE_CHANNEL_PORT

Environment, every worker

5600

Handshake port. Unique per worker on a host; with TP or DP it is the base port plus dp_rank

VLLM_NIXL_SIDE_CHANNEL_HOST

Environment

localhost

Set to a reachable address when prefill and decode run on different machines

kv_role

kv-transfer-config

Set it explicitly

kv_producer for prefill, kv_consumer for decode. kv_both is deprecated for NixlConnector

kv_lease_duration

kv_connector_extra_config

30 s

How long prefill holds finished blocks waiting for decode to read them; heartbeats extend it

kv_load_failure_policy

kv-transfer-config

fail

fail errors the request when a KV load fails; recompute rebuilds the failed blocks on decode

backends

kv_connector_extra_config

UCX

Picks another transport, such as LIBFABRIC; availability depends on how NIXL was built

Across machines, give each instance its own VLLM_NIXL_SIDE_CHANNEL_HOST and hand the proxy every instance's address and port. For multi-host data parallel, the docs say only the head instances' host and port are needed.

## What the proxy does to each request

The proxy is where the split becomes visible, so it is worth knowing its four moves. Clients talk only to its port, 8192 in the example, and never to prefill or decode directly.

1. The proxy sends the request to prefill with max_tokens set to 1 and kv_transfer_params containing do_remote_decode true.
2. Prefill computes the KV cache, holds the blocks and returns kv_transfer_params that point at them.
3. The proxy forwards the original request to decode with those params attached.
4. Decode pulls the blocks over NIXL, then generates.

For chat completions the guide's variant asks prefill for token IDs and hands them to decode. The feature page marks that token-ID reuse experimental: the IDs are ignored if the messages hold non-text content or echo is set, and invalid IDs give an HTTP 400. The practical consequence is that a proxy bug looks like a vLLM bug. Send one short request through the proxy and confirm a normal completion before you add any load.

## Benchmark goodput, not tokens per second

The guide measures with vllm bench serve and a goodput definition of time to first token within 2000 ms and time per output token within 30 ms. Its workload is a random dataset of 8,192-token inputs with 256 output tokens and ignore-eos, so every request runs to length. If you reuse seeds across request rates, the guide says to disable prefix caching, otherwise later runs can be served from earlier runs' cache.

p99 inter-token latency at 0.4 req/s

169 ms

29 ms

p99 inter-token latency at 2 req/s

263 ms

25 to 52 ms across loads

Median inter-token latency up to 1 req/s

21 to 24 ms

21 to 24 ms

Read the table for what it does not say. The median inter-token latency is the same in both setups, so the split does nothing for the typical token. It removes the tail: p99 at 0.4 req/s fell from 169 ms to 29 ms, and the guide says the split never exceeded 52 ms. The price is in the last row, where the L40S box had no peer-to-peer access and median time to first token went from 0.7 s to 2.2 s. A split only wins if your service-level target cares about the tail more than about first-token time.

Two external results are relayed by the guide, and I have not checked the underlying benchmarks. On a single 8xMI300X node running Qwen3-235B-A22B-FP8, AMD's MoRI-IO connector met both targets for 73 of 100 requests against 30 of 100 collocated, about 2.4x the goodput. llm-d reports about 59% lower mean end-to-end latency and 67% lower P95 for gpt-oss-120b on 16 H200s. Both use larger models on data-centre accelerators, not the L40S pair above, so do not read them as a prediction for a small box.

## How a broken split passes for a working one

A split can be wrong in ways that still return text. These are the four failures the sources describe, with the check that exposes each. The first row is the one that bites a benchmark: the inter-token chart looks excellent while the first token crawls.

Great inter-token latency, median time to first token several times worse

No peer-to-peer path between the GPUs, so KV crawls across a slow route

nvidia-smi topo -p2p r, then Avg xfer time in decode's KV Transfer metrics line

Requests error out under load

kv_load_failure_policy is fail and a transfer failed

Decode log around the failed request

Blocks disappear before decode reads them

The 30 s kv_lease_duration expired while the request queued on decode

The vllm:nixl_num_kv_expired_reqs metric; raise the lease if it is high

Fluent but wrong multi-turn output from a reasoning model

bidirectional_kv_xfer with a chat template that drops earlier thinking traces, so prefill and decode blocks no longer match

vLLM issue 43094; the guide says nothing in vLLM catches this mismatch today

There is a deliberate choice in the failure policy. The default, fail, errors the request immediately and avoids recomputing prefill on the decode instance. The alternative, recompute, rebuilds the failed blocks locally on decode, which is how a request survives a failed transfer. The docs warn it can cause decode performance jitter and higher tail latency, and call it inefficient for production.

> Do not enable recompute while you are validating a new setup. It turns a failed transfer into a slow success, which is exactly the failure the checks above exist to expose. Keep fail until the transfer path has passed, so a broken link shows up as an error instead of as a flattering latency number.

The multi-turn case deserves its own sentence. With bidirectional_kv_xfer set on both instances, prefill pulls earlier turns' blocks back from decode so only new tokens are computed. That is a real saving, and it is also why a template that rewrites history produces wrong output rather than slow output. The v0.31.0 release notes also list dead peer state being released without waiting for the TTL, which is one reason to run that version rather than an older one.

## The GPU-less render tier, and what is still open

The second split moves CPU work, not GPU work. vllm launch render runs templating and parsing with no GPU, and vllm serve --tokens-only runs the engine on token IDs alone. Render, prefill and decode can then run as separate tiers, with your own code orchestrating the handoffs.

The guide's numbers are small, which is the appeal. Rendering a 9,000-token prompt costs about 15 ms of CPU, and one render server handled 73 requests per second on just over one core. The worker count is set with --renderer-num-workers and defaults to 1. The guide also warns that render and engine configurations must match, or the content, reasoning and tool_calls split will differ from an in-process server.

The open issues are the part to read before adopting it. Streaming derender with a parser replays the full token history on each chunk, which the guide measured at roughly 9x the in-process CPU, with a caching layer tracked in issue 57571. Long prompts are resent on every streamed chunk. Batch derender can miss finish_reason tool_calls (issue 47931), and logprobs come back as placeholder strings (issue 57574). I would treat 73 requests per second as an upper bound to measure against your own traffic.

> Start with the prefill and decode split alone. The render tier takes CPU work off the GPU hosts, but the guide's own open issues show streaming costing about 9x the in-process CPU, so it earns its place only once frontend CPU is your measured bottleneck.

## What to do on Monday

Here is the order I would work in, stopping at the first step that fails. The checks are cheap and the benchmark is not, so they come first.

1. Confirm vLLM v0.31.0 or later on both hosts and install NIXL.
2. Run nvidia-smi topo -p2p r and require OK between the prefill and decode GPUs. On a box that cannot show OK, expect something like the 1.3 s transfer the guide measured.
3. Start prefill and decode with distinct side-channel ports and kv_load_failure_policy fail, then send one short request through the proxy.
4. Send a few long prompts one at a time and read Avg xfer time in decode's KV Transfer metrics line. Hundreds of milliseconds means fix the transport first.
5. Only then run the goodput benchmark, with a 7B-class model, against a collocated baseline on the same hardware, with prefix caching off if you reuse seeds.

Write the go or no-go rule down before you run the benchmark. If your p99 inter-token latency already meets its target collocated, the split costs you an extra deployment role and a transfer path for no gain, since the docs are explicit that it does not improve throughput. If the tail is what hurts, and the transfer check passes, the numbers above say it is worth a trial.

Disaggregation is a latency-shaping tool with a transfer bill, not a free speed-up. The rule to carry: measure the KV transfer path first, benchmark goodput against a collocated baseline on identical hardware, and keep kv_load_failure_policy on fail until the numbers are real.

## Sources and further reading

- vLLM blog: a practical guide to disaggregated serving (29 September 2026), the source of every benchmark figure in this post
- vLLM docs: NixlConnector usage guide, the source of the commands, environment variables and failure policy
- vLLM docs: disaggregated prefilling feature page, including the throughput statement and the connector list
- vLLM release notes: v0.31.0, the minimum version the guide assumes
- DistServe paper (arXiv 2401.09670): disaggregating prefill and decoding for goodput-optimised serving
- NIXL on GitHub (ai-dynamo/nixl), the transfer library the NixlConnector docs point to

Median time to first token at 0.2 req/s

0.7 s

2.2 s

## Source links

- https://vllm.ai/blog/2026-09-29-disaggregated-serving-guide
- https://docs.vllm.ai/en/latest/features/nixl_connector_usage/
- https://docs.vllm.ai/en/latest/features/disagg_prefill/
- https://github.com/vllm-project/vllm/releases/tag/v0.31.0
- https://arxiv.org/abs/2401.09670
- https://github.com/ai-dynamo/nixl

## FAQ

### Does disaggregated prefill improve vLLM throughput?

No. vLLM's feature page states plainly that disaggregated prefill does not improve throughput. What it gives you is separate tuning of time to first token and inter-token latency, and protection of decode from prefill interruptions, which shows up as a lower tail inter-token latency and better goodput.

### Which vLLM version do I need to split prefill and decode with NixlConnector?

vLLM's September 2026 disaggregated serving guide assumes v0.31.0 or later, and v0.31.0 was published on 5 October. Install NIXL as well; on NVIDIA that is uv pip install nixl. Give the prefiller kv_role kv_producer and the decoder kv_consumer.

### How do I check that KV cache transfer is not the bottleneck?

On one machine, run nvidia-smi topo -p2p r and expect OK between the prefill and decode GPUs. Then send a few long prompts one at a time and read the KV Transfer metrics line in the decode log. If Avg xfer time is in the hundreds of milliseconds, fix the transport before benchmarking.

### Should I set kv_load_failure_policy to recompute?

Not while validating a new setup. The default, fail, errors the request when a KV load fails, so a broken link is visible. The docs say recompute rebuilds failed blocks on the decode instance, which can add jitter and tail latency, and call it inefficient for production.

### What is a GPU-less render tier in vLLM?

It is a CPU-only server started with vllm launch render that handles chat templating, tokenisation and output parsing, while vllm serve --tokens-only runs the engine on token IDs. The guide measured about 15 ms of CPU to render a 9,000-token prompt. It also lists open issues, such as streaming derender costing about 9x the in-process CPU.

---

- HTML version: https://www.matthewswong.com/en/blog/vllm-disaggregated-prefill-decode-serving-guide/
- Bahasa Indonesia: https://www.matthewswong.com/id/blog/vllm-disaggregated-prefill-decode-serving-guide/
- Site index for agents: https://www.matthewswong.com/llms.txt
- Sitemap: https://www.matthewswong.com/sitemap.xml
- API description (OpenAPI): https://www.matthewswong.com/openapi.json
