AssemblyAI Cuts GPU Inference Costs 70% with EC2 Spot
Speech-to-text inference runs a pipeline of deep learning models on NVIDIA GPUs, and at AssemblyAI's scale that means thousands of GPU instances running continuously. Running entirely on On-Demand Instances would be cost-prohibitive, but Spot Instances can be reclaimed with only a 2-minute warning, so the company needed an architecture that absorbs interruptions without breaking its latency and availability SLAs.
Speech-to-text inference runs a pipeline of deep learning models on NVIDIA GPUs, and at AssemblyAI's scale that means thousands of GPU instances running continuously. Running entirely on On-Demand Instances would be cost-prohibitive, but Spot Instances can be reclaimed with only a 2-minute warning, so the company needed an architecture that absorbs interruptions without breaking its latency and availability SLAs.
The core idea is to treat GPU capacity as a flexible, interruptible pool and make every job independently retriable. AssemblyAI runs its inference platform on Amazon ECS, using ECS capacity providers to mix an always-on On-Demand baseline with a Spot fleet that scales up for demand spikes. Rather than depending on one GPU family, it spreads Spot demand across g4dn (NVIDIA T4), g5 (A10G), and g6 (L4) instances and multiple Availability Zones, drawing from a much larger pool of available capacity and reducing interruption odds; EC2's price-capacity optimized allocation picks pools with the most capacity at the lowest price. Job submission is decoupled from execution through an SQS queue: GPU tasks poll the queue, pull audio from S3, and write results out. When a Spot instance gets its 2-minute notice, jobs that can finish in time complete normally, while longer jobs are returned to the queue and picked up by another healthy worker, possibly on a different instance type or in a different zone. Custom AMIs that bundle model artifacts and container images warm up in about 2 minutes to shorten recovery. Each region runs a fully independent copy of the stack, which lets AssemblyAI keep audio data inside geographic boundaries for healthcare, finance, and legal customers. The authors report 70% savings on inference compute versus On-Demand pricing while compute demand grew nearly 4x year-over-year, though the post gives no interruption rate, latency distribution, or failure-rate data to quantify the SLA impact.
For short-lived, independently retriable GPU jobs, the biggest lever is diversification across instance families plus queue-based fault tolerance designed in from day one. Teams already running inference on AWS GPUs should expect large savings from Spot, but should measure interruption and retry behavior themselves rather than relying on the single headline number.