How Deepgram optimized voice AI at scale with AWS Trainium
Deepgram worked with the AWS Forward Deployed Engineering team to port its Nova-3 speech-to-text model to AWS Trainium2 for offline batch inference. This post covers porting to the AWS Neuron stack, kernel-level tuning, a data-parallel Rust runtime, and the throughput and cost results on batch transcription.
First seen by Oriel on .
AI summary
Deepgram and AWS ported the Nova-3 speech-to-text model to Trainium2 and optimized batch inference, achieving 11–70% more audio per dollar than Deepgram’s previous compute options.
- TorchNeuron compiled the encoder and decoder into separate static-shape graphs, with no CPU fallbacks detected and accuracy checked against CPU outputs and reference Word Error Rate.
- Hand-tuned kernels improved FFN latency 2.0x and depthwise convolution speed 1.5x at batch size 96; a custom conv2d kernel enabled batches above 32.
- A Rust runtime coordinates eight model replicas per device through a work-stealing queue and calls ahead-of-time-compiled NEFFs through the Neuron Runtime API.
- At the throughput-maximizing batch size, the Rust runtime delivered 7.5% more throughput than the multiprocessing Python baseline; gains were largest at low batch sizes.
#aws trainium #speech-to-text #aws neuron #rust
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| AWS Machine Learning Blog | 0b1e8b84bdaaccec8fd8f6adeda3c1b7cbd14074 | https://aws.amazon.com/blogs/machine-learning/how-deepgram-optimized-voice-ai-at-scale-with-aws-trainium/ Read discussion |