创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

vLLM 新增推送式 NIXL KV 传输连接器

AI 总结

vLLM 博客与 AWS 机器学习博客介绍了一个新的推送式(push-based)NIXL KV 传输连接器,用于预填充-解码(P-D)分离式推理。原有默认的拉取模式需在预填充完成后由解码实例分配目标块并发起 NIXL READ,这些步骤串行落在首字延迟(TTFT)的关键路径上;推送模式让解码端提前注册目标块,预填充端在后台线程中直接发起 NIXL WRITE,从而把协调与建连移出关键路径。作者称该功能先在搭载 EFA 的 AWS Trainium 集群上构建和验证,再作为与加速器无关的特性贡献给 vLLM。

深度见解

对使用 vLLM 做分离式部署的团队而言,KV 传输效率直接决定首字延迟;推送模式提供了一种在不动模型的情况下降低 TTFT 与 TPOT 的选项。

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

原文约 12 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。