Guideschevron_rightServers

Servers · 7 min read · Updated

How to Transcribe Audio with Whisper on a GPU Server

To transcribe audio with Whisper on a GPU server, install the NVIDIA driver, then pip install faster-whisper together with NVIDIA's cuBLAS and cuDNN libraries for CUDA 12, and load the model with WhisperModel("large-v3", device="cuda", compute_type="float16"). It returns timed segments you can save as text or subtitles. In faster-whisper's benchmark the large-v2 model needed about 4.5 GB of GPU memory, and 2.9 GB at 8-bit.

How Fast It Is

faster-whisper's large-v2 benchmark on an NVIDIA RTX 3070 Ti 8 GB
SetupTimeGPU memory
OpenAI Whisper, 16-bit2m23s4,708 MB
faster-whisper, 16-bit1m03s4,525 MB
faster-whisper, 8-bit59s2,926 MB
faster-whisper, 16-bit, batch size 817s6,090 MB
faster-whisper, 8-bit, batch size 816s4,500 MB

Figures from the faster-whisper README, for the same audio file and beam size 5.

GPU servers for speech-to-text
PlanGPUTotal GPU memorySystem memoryPrice
NVIDIA DGX SparkNVIDIA DGX Spark · 128 GB128 GB128 GB$609.00/mo
AMD EPYC 7443P w/ NVIDIA RTX 3090NVIDIA RTX 3090 · 24 GB24 GB256 GB$659.00/mo
AMD Ryzen 9 9950X w/ NVIDIA RTX 3050NVIDIA RTX 3050 · 6 GB6 GB192 GB$699.00/mo
AMD Ryzen 9 9950X w/ NVIDIA RTX 5090NVIDIA RTX 5090 · 32 GB32 GB64 GB$789.00/mo
AMD Ryzen 9 9950X w/ NVIDIA RTX 5090NVIDIA RTX 5090 · 32 GB32 GB96 GB$829.00/mo
AMD EPYC 7702 w/ 4x NVIDIA RTX 30904× NVIDIA RTX 3090 · 24 GB each96 GB128 GB$929.00/mo
AMD EPYC 7443P w/ 4x NVIDIA V100 16GB4× NVIDIA V100 · 16 GB each64 GB128 GB$1,059.00/mo
AMD EPYC 7443P w/ 4x NVIDIA V100 32GB4× NVIDIA V100 · 32 GB each128 GB128 GB$1,059.00/mo
AMD EPYC 7443P w/ 4x NVIDIA V1004× NVIDIA V100—256 GB$1,189.00/mo
2x NVIDIA DGX Spark2× NVIDIA DGX Spark · 128 GB each256 GB256 GB$1,449.00/mo
AMD EPYC 9B14 w/ 2x NVIDIA RTX 50902× NVIDIA RTX 5090 · 32 GB each64 GB384 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=True for 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.

Common Questions

  • What is faster-whisper?

    A reimplementation of OpenAI's Whisper speech-to-text model on the CTranslate2 engine. Its README reports it running several times faster than the original Whisper with the same accuracy and less memory, on a GPU or on the processor.

  • How much GPU memory does Whisper need?

    In faster-whisper's own benchmark, the large-v2 model used about 4.5 GB of GPU memory at 16-bit and about 2.9 GB at 8-bit, so it fits on modest GPUs. Batched transcription is faster and uses more memory.

  • Can it run without a GPU?

    Yes: create the model with device="cpu" and compute_type="int8". It is slower, but a VPS or dedicated server can transcribe recordings overnight, and smaller models such as small or medium are much quicker on the processor.

  • Is my audio sent anywhere?

    No. The model downloads once from Hugging Face; after that, transcription runs entirely on your server, which matters for interviews, meetings and medical or legal recordings.

Plans and prices

GPU Servers

Dedicated servers with NVIDIA GPUs for speech-to-text and AI work.

See all plans
  • NVIDIA DGX Spark

    NVIDIA DGX Spark · 128 GB GPU

    20 Cores · 128 GB RAM · 4TB NVMe Gen4

    Ogden, UT (UT1) · 50 TB transfer · 10 Gbps

    $609.00/mo

    Sold out
  • AMD EPYC 7443P w/ NVIDIA RTX 3090

    NVIDIA RTX 3090 · 24 GB GPU

    24 Cores · 256 GB RAM · 3.84TB NVMe

    Ogden, UT (UT1) · 100 TB transfer · 10 Gbps

    $659.00/mo

  • AMD Ryzen 9 9950X w/ NVIDIA RTX 3050

    NVIDIA RTX 3050 · 6 GB GPU

    16 Cores · 192 GB RAM · 2x 2 TB NVMe

    Ashburn, VA (ASH1) · Unmetered transfer · 1 Gbps

    $699.00/mo

  • AMD Ryzen 9 9950X w/ NVIDIA RTX 5090

    NVIDIA RTX 5090 · 32 GB GPU

    16 Cores · 64 GB RAM · 3.84TB NVMe Gen4

    Ogden, UT (UT1) · 50 TB transfer · 10 Gbps

    $789.00/mo

Keep Reading

All guides