Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

vLLM adds push-based NIXL KV transfer for disaggregated inference

AI summary

Posts on the vLLM Blog and the AWS Machine Learning Blog describe a push-based NIXL connector for prefill-decode (P-D) disaggregated inference in vLLM. In the default pull mode, the decode instance allocates destination blocks and issues an NIXL READ only after prefill finishes, so coordination and setup sit on the time-to-first-token critical path; in push mode the decode side registers blocks in advance and the prefill worker hands the transfer to a background thread that issues an NIXL WRITE. The authors say the feature was built and validated on AWS Trainium clusters with EFA and then contributed to vLLM as an accelerator-agnostic feature.

In-depth insight

For teams running disaggregated vLLM deployments, KV transfer efficiency directly shapes time-to-first-token, and push mode offers a way to cut TTFT and TPOT without changing the model.

vLLM is an open-source inference and serving engine for large language models (LLMs). LLM inference has two distinct phases: prefill, which processes the input prompt and builds the key-value (KV) cache, and decode, which uses that cache to generate output one token at a time. These phases have different compute, memory, and scaling characteristics. Prefill-decode (P-D) disaggregation runs them on separate engine instances, allowing each phase to scale and be optimized independently. This can improve resource utilization, throughput, and latency under load. However, it also requires transferring the KV cache from the prefill instance to the decode instance before token generation can begin, making efficient KV transfer critical to time-to-first-token (TTFT).

One of the ways vLLM performs this transfer is through the NVIDIA Inference Xfer Library (NIXL) connector, which moves KV blocks over RDMA-capable interconnects such as AWS Elastic Fabric Adapter (AWS EFA, the low latency RDMA network used across servers in AWS). On supported instance types, AWS EFA supports GPUDirect RDMA and Neuron Direct RDMA, enabling NIXL to transfer KV blocks directly between GPU or Trainium device memory without staging through host memory. The default mode for NIXL connector is pull-based: After the prefill instance finishes computing the prompt KV cache, the router relays the source metadata, including the prefill block IDs, to the decode instance. The decode instance then allocates destination blocks, prepares the NIXL transfer, and initiates NIXL READ to pull the KV blocks from the prefill instance. Because these coordination and setup steps occur sequentially after prefill and before decoding can begin, they extend the TTFT critical path, as shown in the following timeline.

#vLLM#AWS#NIXL#AWS Trainium#Amazon EC2 P5en#AWS EFA#Qwen3-32B

Original · 12 min readRead the original
Group chat

No comments yet. Start the conversation.