Amazon SageMaker AI real-time endpoints now support KV cache aware routing
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.
First seen by Oriel on .
AI summary
Amazon SageMaker AI introduces KV-aware routing, which uses container-reported KV-cache state and load to route LLM requests to instances with the longest cached prompt match.
- Containers publish cache-store and eviction events through SM_VLLM_KV_EVENTS_CONFIG; the managed index stores pointers, not prompts, token IDs, payloads, or KV tensors.
- The router tokenizes requests, matches cached tokens by longest prefix, balances match length against instance load, and falls back to load-aware routing when necessary.
- In benchmarks using Llama 3.1 70B Instruct, KV-aware routing reduced p50 time to first token by up to 97 percent and increased throughput by up to 234 percent.
- Enable the feature by configuring SM_VLLM_KV_EVENTS_CONFIG and setting RoutingStrategy to KV_AWARE; clients continue using existing APIs.
- At launch, support includes AWS vLLM Deep Learning Container images with vLLM 0.33.0 or later, GPU endpoints, and OpenAI-compatible Completions or Chat Completions payloads.
#amazon sagemaker #kv cache #llm inference #vllm
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| AWS Machine Learning Blog | 577fe79ced59c54b14f189c6d3d729bc1a447e62 | https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-ai-real-time-endpoints-now-support-kv-cache-aware-routing/ Read discussion |