Stop guessing auto scaling targets for TTS on Amazon SageMaker AI
AWS•How-to••by Joseph Cottingham•AWS Artificial Intelligence Blog
Teams deploying custom text-to-speech models on Amazon SageMaker AI often guess at autoscaling thresholds, and a wrong guess either wastes GPU spend or breaches a latency SLO. This post deploys Kokoro-82M as a custom container and derives a measured autoscaling policy from two live-endpoint measurements, Q_max and T_total, instead of guesswork.
A measured autoscaling method for a Kokoro-82M TTS endpoint on SageMaker AI replaces guessed targets with values derived from concurrency and scale-out time measurements.
Who it is for
Teams running self-hosted TTS models on SageMaker AI endpoints who need to set autoscaling targets without guessing.
Key points
Q_max of 50 concurrent requests per ml.g5.xlarge instance meets a 3,000 ms p95 SLO in the post's measurements.
Measured scale-out time T_total is 320 s, including a bounded 60 s policy detection lag that was not measured.
Scale-out target is 37.5 and scale-in threshold is 25, using a 1.25x surge ratio; the post reports these values, not independent validation.
The sample container pins a PyTorch version with a known advisory (PYSEC-2026-2286); the post says to upgrade before non-proof-of-value use.
AI:SageMaker AI real-time endpoints now route each request to the instance holding the longest cached match for its prompt, using cache state the model container reports.