AI Cloud Architect

Amazon SageMaker AI now supports KV cache-aware routing for real-time inference endpoints

AWSAnnouncement by Amazon Web ServicesWhat's New with AWS

Amazon SageMaker AI now supports KV cache-aware routing for real-time inference endpoints, enabling you to reduce time to first token for LLM workloads with long or repeated prompts. Serving engines such as vLLM store the computed key-value (KV) cache for repeated prompt starts such as shared system prompts, documents, and conversation history, to skip repeated work. Across several instances, a request that lands where the cache is missing recomputes it. Under high load, instances also evict...

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

AI: Summary

What it is

SageMaker real-time endpoints can route each LLM request to the instance that already holds its matching KV cache, to cut time to first token.

Who it is for

Teams serving LLMs on SageMaker AI with long or repeated prompts, high load, or limited GPU memory across multiple instances.

Key points

  • Set RoutingStrategy to KV_AWARE on a production variant and add one environment variable so the container reports cache events.
  • Requires the AWS vLLM Deep Learning Container 0.33.0 or later and at least two instances or inference component copies.
  • AWS says there is no additional charge; falls back to load-aware routing if lookup is slow or finds no match.
  • Available in all AWS Regions where SageMaker AI is available.

The same at other vendors

Timeline

  1. This postAmazon SageMaker AI now supports KV cache-aware routing for real-time inference endpointsAlso published by AWS Artificial Intelligence Blog

Go deeper