Ad

SRExpert

Stop juggling 6 Kubernetes tools.

Monitoring, alerts, security, Helm deploys and AI ops in one platform.

Start a 30-day free trial

Reduce LLM latency with prefix-aware routing on Amazon SageMaker Inference

2mo

Age

Published
Collected

Amazon SageMaker Inference now offers prefix-aware routing, a routing strategy that sends requests sharing the same prompt prefix to the same instance so the KV cache stays warm. In benchmarks on Llama 3.1 70B, it reduced P50 time-to-first-token by up to 77% and raised KV cache hit rates from about 25% to over 80%.

Excerpt from the source

When you build an application on top of a large language model (LLM), the prompt you send to the model typically has two parts. There’s a fixed part that sets up context (instructions, reference documents, conversation history) and a variable part that contains the actual user input. Take a customer service bot as an example. Each request starts with the same block of text: “You are a support agent for AnyCompany. Here are our policies…” followed by whatever the customer typed. The instructions…

overfeed.news indexes and links. We publish a short excerpt — the full article stays at AWS Machine Learning Blog.

Log in to follow this source
Reduce LLM latency with prefix-aware routing on Amazon…