AI Cloud Architect

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

AWSBlog post by Sunita NadampalliAWS Artificial Intelligence Blog

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.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

vLLM can now send decode-node KV cache back to prefill nodes, so later turns of a conversation reuse earlier context instead of recomputing it.

Who it is for

Teams running multi-turn agents on vLLM with prefill-decode disaggregation on AWS EC2 P5en instances who see TTFT grow with conversation length.

Key points

  • AWS reports TTFT up to 1.6x lower for Qwen3-32B and up to 3.3x lower for GLM-5-FP8 at long prompts in a 1P1D benchmark.
  • Requires vLLM v0.21.0 or later, NixlConnector, bidirectional_kv_xfer enabled on prefill and decode servers, and a KV-cache-aware router.
  • Decode-node blocks are kept for a configurable TTL (default 480 seconds); kv_recompute_threshold defaults to 64 tokens.
  • Results are from one 1P1D benchmark on EC2 P5en with EFA; AWS says results vary by workload and configuration.

The same at other vendors

Timeline

Posts about vLLM, oldest first.

  1. Blog postP-EAGLE: Faster LLM inference with Parallel Speculative Decoding in vLLM · AWS · Blog post
  2. This postImprove TTFT for multi-turn agentic workloads with bi-directional KV transfer in vLLM
  3. How-toPush-based KV transfer to improve TTFT and TPOT for disaggregated inference in vLLM · AWS · How-to