vLLM, LLM-D and NIXL: prefill/decode explained

Learn how separate prefill and decode workers coordinate in vLLM and LLM-D, including RDMA transfers of KV cache blocks through NIXL.

Player not loading? Watch on YouTube

This architecture overview explains prefill/decode disaggregation for self-hosted LLM serving. The speaker describes prefill as the compute-bound phase that processes input tokens and builds the KV cache, while decode generates tokens sequentially and depends heavily on memory bandwidth. Separating the phases across GPUs lets operators configure and scale their resources independently.

The explanation connects that separation to time to first token (TTFT) and time per output token (TPOT). The speaker argues that mixing prefill and decode requests can increase latency through interference. The performance gains discussed come from cited research, rather than a benchmark performed in this walkthrough.

The practical example uses vLLM workers with LLM-D coordinating requests on Kubernetes. A routing sidecar sends the request to a prefiller, receives KV block identifiers and connection details, then passes that information to the decoder. The decoder pulls the cache through the NIXL connector before generating further tokens. After the transfer, a notification lets the prefiller release its blocks.

Cache transfer is the central constraint: network overhead can consume the latency savings. The speaker explains RDMA, InfiniBand and RoCE, and notes that RDMA requires compatible network interface cards. This is a conceptual workflow rather than a complete installation guide.