All skills
distributed-kv-caching
Set up a shared L2 KV cache on ElastiCache for Valkey so GPU servers reuse prefill state.
- Part of aws/agent-toolkit-for-aws
- 317 installs
- Machine Learning · Model serving
When to use it
You self-host vLLM or SGLang on GPUs and see repeated long prefixes recomputed across servers, raising TTFT.
For example
You say
Use distributed-kv-caching to set up a shared KV cache for my vLLM fleet on H100 EC2 servers serving a multi-turn chat model with long system prompts.
You get
- ElastiCache Valkey cluster
- LMCache server config
- vLLM connection settings
How it works
- Estimates savings with KVTrace before creating the cluster, and stops if savings do not exceed cluster cost.
- Requires the cache and GPU servers in the same Availability Zone, with one cache per zone.
- Production uses rdma transport; tcp and blob-tcp are for functional tests only.
Before installing
The cache cluster must run Valkey 9.1 or later, and production RDMA transport needs EFA with RDMA write on the efa-direct fabric.
More Model serving skills
See all- agent-platform-deploy10.6kDeploys models from Model Garden to endpoints and cleans up deployments when done.
- agent-platform-inference9.9kRuns prompts and chat completions against Gemini and third-party models on Google Cloud.
- tao-run-inference-service1.6kStarts, queries, and stops a TAO inference microservice container for a model checkpoint.
- inference-optimisation99Measures and tunes local LLM serving speed, testing changes one at a time and keeping a record of results.
Also in this pack
- aws-iam11.9kCorrects common IAM mistakes and generates roles and baseline policies from your code or Terraform plan.
- aws-observability11.9kInvestigates root causes and sets up CloudWatch, X-Ray tracing, alarms and dashboards for your AWS services.
- aws-cdk11.2kWrites, deploys and troubleshoots AWS infrastructure as code using CDK with TypeScript or Python.
- aws-containers11.2kBuilds and deploys containerized workloads on EKS, ECS, Fargate, ECR and Elastic Beanstalk.