Amazon SageMaker AI real-time endpoints now support KV cache aware routing
AWS•Announcement••by Dmitry Soldatkin, Apoorva Chandra, Shashi Kiran and Shijie Lyu•AWS Artificial Intelligence Blog
Amazon SageMaker AI real-time endpoints now support KV cache-aware routing, a new strategy that routes each request to the instance holding the longest cached match for its prompt. Learn how it works, when to use it compared with prefix-aware routing, and how to enable, invoke, and verify it on single model and inference component endpoints.
SageMaker AI real-time endpoints now route each request to the instance holding the longest cached match for its prompt, using cache state the model container reports.
Who it is for
Teams serving LLMs on SageMaker AI endpoints with multi-turn chats, long shared prompts or RAG context under memory pressure.
Key points
Requires a supported AWS vLLM container, SM_VLLM_KV_EVENTS_CONFIG set in the model, and RoutingStrategy KV_AWARE in the endpoint configuration.
Needs at least two instances or inference component copies; with fewer, every request goes to the single copy.
AWS reports up to 97 percent lower p50 TTFT in its benchmark on seven ml.p5.48xlarge instances; results depend on workload.
Available at no additional charge in commercial regions with SageMaker AI real-time inference.
AI:SageMaker AI adds inference recommendations, capacity-aware instance pools, OpenAI-compatible endpoints, container caching, prefix-aware routing and more across managed endpoints and HyperPod Inference, reviewed in one post.
AI:SageMaker Inference now routes requests that share a prompt prefix to the same instance, so the KV cache is reused; AWS reports lower time-to-first-token in its benchmarks.