ai-today.org
Menu

AWS Machine Learning · Nov 20, 2026

Cut self-hosted LLM cost and latency with the distributed KV caching agent skill

AWS says shared ElastiCache KV state can spare self-hosted models from recomputing long histories, cutting inference costs by up to 40% and time to first token by up to 80%. The Agent Toolkit skill works with Kiro, Claude Code, Codex and

Read moreShow less about Cut self-hosted LLM cost and latency with the distributed KV caching agent skill

AWS says shared ElastiCache KV state can spare self-hosted models from recomputing long histories, cutting inference costs by up to 40% and time to first token by up to 80%.

The Agent Toolkit skill works with Kiro, Claude Code, Codex and other compatible agents. Deployment requires EFA-capable GPUs, supported LMCache and vLLM or SGLang versions, and ElastiCache for Valkey 9.1 or later on specified nodes.

The skill checks existing prefix caching and tenant isolation before recommending shared infrastructure. Short prompts can be faster to recompute.

A sizing example estimated two cache nodes for eight p5 instances serving 64,000-token prompts. AWS’s free KVTrace replays cache events without recording prompt text to estimate hit rates. Savings depend on using freed GPU capacity.

The skill asks before provisioning, aligns cache settings across servers and checks reuse and output consistency. In AWS’s troubleshooting example, it traced likely transfer failures to a security group blocking EFA traffic.

Read at AWS Machine Learning (opens in a new tab)

Share