创建

登录 ReadmeX

或

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

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

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

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

资讯

vLLM 双向 KV 传输降低多轮智能体 TTFT

AI 总结

vLLM 博客介绍了双向 KV 缓存传输:在预填充-解码(P-D)分离部署中,解码节点可在后续对话轮次把已计算的 KV 缓存回传给预填充节点,从而避免重复计算共享上下文。在基于 Amazon EC2 P5en 实例与 AWS EFA 网络的 1P1D 多轮基准测试中,该功能使 Qwen3-32B 的 TTFT 最多降低 1.6 倍、zai-org/GLM-5-FP8 最多降低 3.3 倍,结果取决于负载与配置。该能力最初在 AWS Trainium 集群上构建并验证,随后作为与加速器无关的功能贡献给 vLLM。

深度见解

多轮智能体工作负载每轮都会重发对话历史,重复的预填充计算会消耗加速器算力并推高首 token 延迟;双向 KV 传输让预填充节点复用解码节点保留的 KV,减少这部分重复计算。

Multi-turn agentic workloads build on accumulated context as an agent reasons, invokes tools, and incorporates earlier results. With each new turn, the client resends the conversation history, including system instructions, prior prompts, tool results, and model responses, causing the growing context to be processed repeatedly. In Prefill-decode (P-D) disaggregation, each request is split across specialized nodes: the prefill node processes the prompt and builds its KV cache, then the decode node retrieves those KV blocks and generates the response.

Conventional disaggregated serving, however, only transfers KV cache in one direction: from prefill to decode node. This one-directional flow creates two inefficiencies for multi-turn workloads. First, after generating a response, the decode node holds KV cache entries for both the prompt and the newly generated tokens. When processing the next turn, the prefill node cannot retrieve those entries, so it must recompute the KV projections for the previous response tokens. Second, the decode node maintains the session state while the prefill nodes do not, increasing the probability of cache eviction for active sessions on the prefill nodes. On a full cache miss, the prefill node must recompute KV projections for the entire conversation history, including system instructions, prior user requests, tool results, and model-generated responses. As the conversation grows, this redundant work consumes more accelerator capacity and increases time to first token (TTFT).

#vLLM#AWS#Qwen3-32B#GLM-5-FP8#zai-org#AWS Trainium#Amazon EC2 P5en#AWS Elastic Fabric Adapter#NIXL

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

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