SageMaker AI Adds KV Cache-Aware Routing for LLM Endpoints
Amazon SageMaker AI now offers KV cache-aware routing for real-time endpoints. The model container reports what it has cached, SageMaker keeps an index of those cache entries, and each request goes to an instance that holds a long match for its prompt and is not too busy. It targets LLM workloads with repeated openings: chat assistants, RAG, and agents with long system prompts. You enable it by adding the SM_VLLM_KV_EVENTS_CONFIG environment variable to the model and setting RoutingStrategy to KV_AWARE in the endpoint configuration; client calls stay the same. It needs at least two instances, or two copies of an inference component, and does not support bidirectional streaming. AWS gives no measured latency or throughput comparison, so the gain is described but not quantified.
Teams running multi-turn chat or long shared prompts on SageMaker can switch routing without changing client code, but should check three things first: the endpoint has at least two instances or component copies, the container image is compatible (CUDA 13 images need a matching InferenceAmiVersion), and the account has enough endpoint quota. Tracking the cache hit rate requires AWS CLI 2.35.6+ or Boto3 1.43.31+.