# Stop guessing auto scaling targets for TTS on Amazon SageMaker AI

DevFeed: [Stop guessing auto scaling targets for TTS on Amazon SageMaker AI](<https://devfeed.tech/articles/stop-guessing-auto-scaling-targets-for-tts-on-amazon-sagemaker-ai-95924.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/stop-guessing-auto-scaling-targets-for-tts-on-amazon-sagemaker-ai/>)

Author: Joseph Cottingham

Published: 2026-10-22T16:30:06Z

Content type: tutorial

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [Amazon SageMaker](<https://devfeed.tech/topics/amazon-sagemaker.md>), [Amazon CloudWatch](<https://devfeed.tech/topics/amazon-cloudwatch.md>), [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>)

Tags: [access-management](<https://devfeed.tech/tags/access-management.md>), [admission](<https://devfeed.tech/tags/admission.md>), [ai](<https://devfeed.tech/tags/ai.md>), [alarm](<https://devfeed.tech/tags/alarm.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-cloudwatch](<https://devfeed.tech/tags/amazon-cloudwatch.md>), [amazon-ec2](<https://devfeed.tech/tags/amazon-ec2.md>), [amazon-sagemaker](<https://devfeed.tech/tags/amazon-sagemaker.md>), [amazon-sagemaker-ai](<https://devfeed.tech/tags/amazon-sagemaker-ai.md>), [auto-scaling](<https://devfeed.tech/tags/auto-scaling.md>), [container](<https://devfeed.tech/tags/container.md>), [custom](<https://devfeed.tech/tags/custom.md>), [expert-400](<https://devfeed.tech/tags/expert-400.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [latency](<https://devfeed.tech/tags/latency.md>), [measurements](<https://devfeed.tech/tags/measurements.md>), [policy](<https://devfeed.tech/tags/policy.md>), [scaling](<https://devfeed.tech/tags/scaling.md>), [slo](<https://devfeed.tech/tags/slo.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [text-to-speech](<https://devfeed.tech/tags/text-to-speech.md>), [tts](<https://devfeed.tech/tags/tts.md>)

## AI overview

The article derives a SageMaker AI autoscaling policy for Kokoro-82M from two live-endpoint measurements: Q_max, the highest per-instance concurrency that meets the latency SLO, and T_total, the time for capacity to arrive and serve traffic. It uses the native ConcurrentRequestsPerModel metric, measures its relationship to client-observed concurrency, then derives scale thresholds and cooldowns; a five-command workflow checks drift, measures Q_max and T_total, creates the plan, and validates the deployed settings. In the reported ml.g5.xlarge run, Q_max was 50 and T_total was 320 seconds, including 60 seconds bounded from policy settings rather than measured directly. The plan flagged trade-offs: at its scale-out threshold utilization was already 97.4%, and scaling from two instances to one could return the survivor to the concurrency ceiling; a three-instance floor would prevent that at the cost of idle capacity. The sample also requires reviewing and upgrading its pinned PyTorch version before non-proof-of-value use.

## Source excerpt

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.