How Fast It Is
| Setup | Time | GPU memory |
|---|---|---|
| OpenAI Whisper, 16-bit | 2m23s | 4,708 MB |
| faster-whisper, 16-bit | 1m03s | 4,525 MB |
| faster-whisper, 8-bit | 59s | 2,926 MB |
| faster-whisper, 16-bit, batch size 8 | 17s | 6,090 MB |
| faster-whisper, 8-bit, batch size 8 | 16s | 4,500 MB |
Figures from the faster-whisper README, for the same audio file and beam size 5.
| Plan | GPU | Total GPU memory | System memory | Price |
|---|---|---|---|---|
| NVIDIA DGX Spark | NVIDIA DGX Spark · 128 GB | 128 GB | 128 GB | $609.00/mo |
| AMD EPYC 7443P w/ NVIDIA RTX 3090 | NVIDIA RTX 3090 · 24 GB | 24 GB | 256 GB | $659.00/mo |
| AMD Ryzen 9 9950X w/ NVIDIA RTX 3050 | NVIDIA RTX 3050 · 6 GB | 6 GB | 192 GB | $699.00/mo |
| AMD Ryzen 9 9950X w/ NVIDIA RTX 5090 | NVIDIA RTX 5090 · 32 GB | 32 GB | 64 GB | $789.00/mo |
| AMD Ryzen 9 9950X w/ NVIDIA RTX 5090 | NVIDIA RTX 5090 · 32 GB | 32 GB | 96 GB | $829.00/mo |
| AMD EPYC 7702 w/ 4x NVIDIA RTX 3090 | 4× NVIDIA RTX 3090 · 24 GB each | 96 GB | 128 GB | $929.00/mo |
| AMD EPYC 7443P w/ 4x NVIDIA V100 16GB | 4× NVIDIA V100 · 16 GB each | 64 GB | 128 GB | $1,059.00/mo |
| AMD EPYC 7443P w/ 4x NVIDIA V100 32GB | 4× NVIDIA V100 · 32 GB each | 128 GB | 128 GB | $1,059.00/mo |
| AMD EPYC 7443P w/ 4x NVIDIA V100 | 4× NVIDIA V100 | — | 256 GB | $1,189.00/mo |
| 2x NVIDIA DGX Spark | 2× NVIDIA DGX Spark · 128 GB each | 256 GB | 256 GB | $1,449.00/mo |
| AMD EPYC 9B14 w/ 2x NVIDIA RTX 5090 | 2× NVIDIA RTX 5090 · 32 GB each | 64 GB | 384 GB | $2,639.00/mo |
1. Install
With the NVIDIA driver installed and nvidia-smi working:
sudo apt install -y python3-venv ffmpeg python3 -m venv ~/whisper && source ~/whisper/bin/activate pip install faster-whisper nvidia-cublas-cu12 "nvidia-cudnn-cu12==9.*" # tell the engine where pip put the CUDA libraries (before starting Python) export LD_LIBRARY_PATH=$(python3 -c 'import os, nvidia.cublas, nvidia.cudnn; print(os.path.dirname(nvidia.cublas.__path__[0]) + "/cublas/lib:" + os.path.dirname(nvidia.cudnn.__path__[0]) + "/cudnn/lib")')
The current CTranslate2 engine needs CUDA 12 and cuDNN 9, which these packages provide without a system-wide CUDA install.
2. Transcribe a File
Save as transcribe.py:
import sys
from faster_whisper import WhisperModel
model = WhisperModel("large-v3", device="cuda", compute_type="float16")
segments, info = model.transcribe(sys.argv[1], beam_size=5, vad_filter=True)
print(f"Language: {info.language} ({info.language_probability:.2f})")
for s in segments: # transcription runs as you read the segments
print(f"[{s.start:7.2f} -> {s.end:7.2f}] {s.text.strip()}")python transcribe.py interview.mp3 > interview.txt
The first run downloads the model. vad_filter=True skips long silences, which saves time and can reduce stray text in quiet stretches. For less GPU memory use compute_type="int8_float16"; for a faster, lighter model try "turbo" or "distil-large-v3".
3. Long Files and Many Files
- Faster on one GPU: faster-whisper's batched pipeline processes several pieces of a file at once, as the benchmark shows; it uses more memory.
- Subtitles: each segment has a start and end time, which is all an SRT file needs; add
word_timestamps=Truefor word-level timing. - A folder of recordings: load the model once and loop over the files in one script, rather than starting Python for each file.
- An API for other apps: wrap the script in a small web service, kept behind a firewall or a VPN, as with serving an LLM API.
Recordings and transcripts can be large and sensitive: copy them off the server with rsync and delete what you no longer need.