Skip to main content

AWS Targets Two LLM Latency Problems With Two Different Caches

3 min read

AWS LLM latency updates target prompt-prefix reuse and model cold starts separately. Here is how to diagnose which cache your workload needs.

AWS Targets Two LLM Latency Problems With Two Different Caches

An AI endpoint can feel slow for two completely different reasons. One user may wait for the first token; an operations team may wait half an hour for a new model replica. AWS released a separate cache for each problem.

Two September 10 announcements address AWS LLM latency at different layers: prefix-aware routing for SageMaker real-time endpoints and model caching for HyperPod Inference. They share a word, cache, but they do not solve the same wait.

Diagnose the clock before choosing the fix

Observed delayWhat is waitingAWS featureUseful metric
Request starts, first token is latePrompt-prefix computationPrefix-aware routingTime to first token and KV-cache hit rate
Traffic spikes, new pod is lateContainer image and model weightsHyperPod model cachingPod-ready and scale-out time
The features are complementary. Request routing cannot preload a 600 GB model, and node storage cannot decide which live prompt cache should receive a request.

Clock one: repeated prompt prefixes waste live compute

Many applications send the same long beginning with every request: system instructions, a retrieved document, conversation history or source code. Serving engines can reuse the computed key-value cache for that prefix. Random fleet routing weakens the benefit because similar requests land on different instances.

SageMaker’s new PREFIX_AWARE strategy hashes the beginning of the request and tries to send matching prefixes to the same instance. It also supports a concurrency threshold so a popular prefix can overflow to a less busy instance instead of creating a hotspot.

AWS reports the largest gain on long shared context

On Llama 3.1 70B Instruct across seven ml.p5.48xlarge instances, AWS reports that 8,000-token shared-prefix workloads reduced median time to first token by 71% to 77%. P90 improved 33% to 37%, KV-cache hit rate rose from about 25% to as high as 82%, and throughput increased 15% to 16%.

Short ShareGPT-style conversations showed smaller gains: 13% to 16% at P50 and 1.7% to 2% in throughput. That difference is the decision rule. Prefix-aware routing becomes more valuable as the reusable beginning becomes longer and more common.

Clock two: a pod cannot serve weights it has not downloaded

HyperPod’s problem happens before inference. A pod may spend five to seven minutes pulling its serving image and another 20 minutes or more downloading a 145 GB model. AWS says a 600 GB-plus model such as DeepSeek-R1 can push the download beyond 30 minutes.

The new weights cache preloads model files onto local NVMe, where AWS cites typical reads around 7 GB/s. The image cache pre-pulls the container. Each can be enabled separately, and preferred scheduling falls back to the original source when a warm node is unavailable.

The scale-out benchmark is promising, not universal

AWS reports roughly 60% faster scale-out for tested models between 57 GB and 145 GB. It says the image cache reduced fresh ECR pull time by as much as 97%. These are company benchmarks, and deployment behavior will vary with image size, weight source, storage capacity, cache readiness and node placement.

The cache also moves cost rather than making it disappear. Local NVMe must be large enough for the models, and preloading consumes time before demand arrives. Teams should measure cache occupancy, update churn and the percentage of pods that actually land on warm nodes.

A two-axis test reveals which feature earns its keep

  1. Separate steady-state request latency from scale-out readiness in your dashboard.
  2. Bucket requests by shared-prefix length and frequency.
  3. Record KV-cache hit rate, P50 and P90 time to first token for each bucket.
  4. Trigger a controlled scale-out and time image pull, weight load and readiness separately.
  5. Repeat with cold nodes, warm nodes and a model update that invalidates the old cache.

Our AI agent cost-control guide explains why latency measurements should sit beside accepted-task cost. The AWS cost-per-correct-answer analysis provides the complementary quality denominator.

My take: cache the computation at the layer where it repeats

Prefix-aware routing is for repeated computation inside live requests. HyperPod caching is for repeated transfer during replica startup. Treating them as one generic acceleration feature would hide the operational question that matters: which clock is hurting the user? Measure that first, then warm the right layer.

Primary sources

Checked September 13, 2026. Performance figures are AWS-reported. MustHave.ai has not independently reproduced these benchmarks.

Leave a comment

Your email address will not be published. Required fields are marked *