Amazon SageMaker AI Adds KV Cache-Aware Routing for Real-Time Endpoints
Frontier AI models · Enterprise AI
Amazon SageMaker AI introduced a KV cache-aware routing strategy for real-time model endpoints. By tracking actual container cache states via a managed index, requests are sent to instances with matching cached tokens to reduce latency.
Amazon SageMaker AI announced a KV cache-aware routing strategy for real-time inference endpoints. Designed for large language model workloads like multi-turn chat and retrieval-augmented generation (RAG), the strategy addresses cache evictions and dynamic prompt growth. Instead of inferring cache locations solely from request payloads, SageMaker maintains a managed index updated by cache events from supported containers. When prompts arrive, the router looks up tokens against indexed entries and balances match depth against instance busy states. In AWS benchmarks with Llama 3.1 70B across ml.p5.48xlarge instances, the feature reduced p50 time to first token by up to 97 percent under heavy prompt load. At launch, it supports AWS vLLM Deep Learning Containers with vLLM 0.33.0 or later, requiring at least two instances or inference component copies.
Key takeaways
- SageMaker AI dynamically tracks container cache states through token hashes in a managed index, sending requests to the instance holding the longest match while weighing load.
- The strategy addresses multi-turn conversations and long-prompt RAG scenarios where GPU memory evictions cause static prefix hashing to miss actual cache state.
- AWS reported up to a 97 percent drop in median time to first token and up to 234 percent higher throughput on Llama 3.1 70B benchmarks under heavy load.
- Activation requires setting an environment variable in a supported vLLM container and configuring RoutingStrategy to KV_AWARE, with fallback to load-aware routing.
Source:AWS Machine Learning Read the original ↗
Prepared, checked and automatically published by AI; not individually reviewed by a human.