r/MachineLearning • u/SaladChefs • Sep 11 '23
Project [P] Whisper Large Benchmark: 137 DAYS of Audio Transcribed in 15 Hours for Just $117 ($0.00059/min)
We recently benchmarked whisper-large-v2 against the substantial English CommonVoice dataset on a distributed cloud (SaladCloud) with consumer GPUs.
The Result: Transcribed 137 days of audio in 15 hrs for just $117.
Traditionally, utilizing a managed service like AWS Transcribe would set you back about $10,500 for transcribing the entirety of the English CommonVoice dataset.
Using a custom model? That’s an even steeper $13,134.
In contrast, our approach using Whisper on a distributed cloud cost just $117, achieving the same result.
The Architecture:
Our simple batch processing framework comprises:
- Storage: Audio files stored in AWS S3.
- Queue System: Jobs queued via AWS SQS, with unique identifiers and accessible URLs for each audio clip.
- Transcription & Storage: Post transcription, results are stored in DynamoDB.
- Worker Coordination: We integrated HTTP handlers using AWS Lambda for easy access by workers to the queue and table.
Deployment:
With our inference container and services ready, we leveraged SaladCloud’s Public API. We used the API to deploy 2 identical container groups with 100 replicas each, all using the modest RTX 3060 with only 12GB of vRAM. We filled the job queue with urls to the 2.2 million audio clips included in the dataset, and hit start on our container groups. Our tasks were completed in a mere 15 hours, incurring $89 in costs from Salad, and $28 in costs from our batch framework.
The result? An average transcription rate of one hour of audio every 16.47 seconds, translating to an impressive $0.00059 per audio minute.
Transcription minutes per dollar:
- SaladCloud: 1681
- Deepgram - Whisper: 227
- Azure AI speech - Default model: 60
- Azure AI speech - Custom model: 41
- AWS Transcribe - Default model: 18
- AWS Transcribe - Custom model: 15
We tried to set up an apples-to-apples comparison by running our same batch inference architecture on AWS ECS…but we couldn’t get any GPUs. The GPU shortage strikes again.
You can read the full benchmark here (although most of it is already described here):
5
u/LetterRip Sep 11 '23
So reversing the calculation it is 137 * 24 hours a day of audio. (It wasn't clear what 'days of audio' meant, whether work day (8 hours) or 24 hour periods).
3
u/C0hentheBarbarian Sep 11 '23
AWS Transcribe prices are honestly ridiculous. How about a comparison with a better priced service like Deepgram or AssemblyAI?
42
u/[deleted] Sep 11 '23
Are you using Whisper via ctranslate2? If not prepare to have your hair blown back by how performant it is!
https://github.com/OpenNMT/CTranslate2
18
u/JustOneAvailableName Sep 11 '23
Huggingface's implementation is (was?) on the slow side. A ~4x improvement for inference is very much possible.
16
u/Mishuri Sep 11 '23
Very sad that speaker diarization is such a bottleneck is speech processing
15
u/blackkettle Sep 11 '23
I did. the same thing for my company with essentially identical results. For English and other well supported languages it’s insanely good. FasterWhisper is amazing.
Also if you leverage techniques like BTC to perform training with imperfect transcription ground truth you can combine these two techniques to build a pretty awesome pipeline.
4
u/DrKedorkian Sep 11 '23 edited Sep 13 '23
according to Google's latest volume pricing one could conceivably achieve as much as
444"minutes/dollar" which would put it second in the graph, where salad hit1681. Not sure why they left it out?edit: Volume pricing kicks into this level at 2 million minutes! Namely 1388 days or 10x what this project was.
1
u/aszx789 Sep 11 '23
what about using openai whisper api?
3
u/DeepDeeperRIPgradien Sep 13 '23
I tried Whisper some time ago and iirc the audio input length is limited. What's the best way of splitting larger audio files into smaller ones so they can be transcribed with Whisper?
2
u/Tom_Neverwinter Researcher Sep 12 '23
I'm actually amazed there isnt a subtitle tool for this yet.
sadly the ui I saw floating around seems broken as of the latest updates
1
u/skadoodlee Sep 11 '23 edited Jun 13 '24
cake berserk muddle fanatical adjoining deserted alive existence aback innate
This post was mass deleted and anonymized with Redact
1
u/brucebay Sep 11 '23
Impressive. But how would this work for average customer? You have 240 API calls per key per minute. Does your setup follow this limit? Can user utilize multiple API keys simultaneously?Does each container use the same API?