Making a GPU interruption a delay, not a lost transcript
Turning speech into text takes more than one quick pass: each audio file moves through several deep-learning stages running on GPUs. At AssemblyAI’s scale, thousands of machines may be working continuously. Running all that capacity on standard On-Demand instances would be costly, but cheaper Spot machines can be reclaimed when AWS needs them elsewhere.
AssemblyAI’s answer is to keep an On-Demand base running and draw on Spot capacity for surges. The Spot fleet spans different GPU families and Availability Zones, giving the system more places to find available machines. As the job queue grows, capacity can scale up; when demand falls, it can scale back down.
The queue is what keeps a disappearing machine from taking a transcript with it. New requests wait in Amazon SQS until a GPU task picks them up. If a Spot instance receives its two-minute interruption notice, an AWS Lambda handler puts its unfinished job back on the main queue for another healthy task to process.
Transcriptions can take anything from 15 seconds to several minutes, depending on the audio. AssemblyAI also prepares machine images with model and container files to help new capacity recover quickly. For customers, an interruption may mean a modest wait, but the queued job can still finish and the transcript can be delivered.
AI-generated discussion · Different perspectives
The queue is doing the important work here: the cheap GPU can disappear, and the job still has somewhere to go. That’s a much better plan than hoping nothing ever breaks.
Exactly. Keep a steady floor, let flexible capacity handle the surges, and make the work resilient to a hiccup. A nice example of designing around the actual bargain instead of pretending it comes with no strings.