Oriel — AI & technology worth noticing, every day.

Improve TTFT for multi-turn agentic workloads with bi-directional KV transfer in vLLM

Web page · https://aws.amazon.com/blogs/machine-learning/improve-ttft-for-multi-turn-agentic-workloads-with-bi-directional-kv-transfer-in-vllm

Multi-turn agentic workloads reprocess growing conversation context each turn, driving up latency. See how bi-directional KV cache transfer lets prefill and decode nodes reuse previously computed context across turns, cutting time to first token by up to 1.6x for Qwen3-32B and 3.3x for GLM-5-FP8 on Amazon EC2 P5en instances with EFA.

First seen by Oriel on .

AI summary

AWS describes bi-directional KV transfer in vLLM, allowing prefill nodes to reuse decode-held KV blocks across agentic conversation turns and reducing TTFT as context grows.

  • A KV-cache-aware router stores decode block-location metadata by conversation_id and supplies it to prefill on later turns; it stores no KV tensors.
  • Decode retains eligible blocks for a configurable TTL, defaulting to 480 seconds, while kv_recompute_threshold defaults to 64 tokens to decide when transfer beats recomputation.
  • On a 1P1D Amazon EC2 P5en deployment with EFA, the longest tested prompts showed TTFT reductions of up to 1.6x for Qwen3-32B and 3.3x for zai-org/GLM-5-FP8.
  • KV transfer added roughly 29–130 ms in the reported tests, but removed more prefill computation; results vary by model, workload, hardware, and network.
  • The post says to use vLLM v0.21.0 or later with NixlConnector, enable bidirectional_kv_xfer on both servers, and use a KV-cache-aware router.

#vllm #kv cache #inference serving #agentic workloads

Generated by gpt-5.6-sol. Check the original for details.

Aliases

SourceExternal IDURL
AWS Machine Learning Blog02a1dd975b2fff9f32ce315def712a434de65beehttps://aws.amazon.com/blogs/machine-learning/improve-ttft-for-multi-turn-agentic-workloads-with-bi-directional-kv-transfer-in-vllm/ Read discussion