Sub topic 4
Choosing a Whisper Model Size
Prerequisites
This chapter assumes basic Python, installing packages with pip, familiarity with WAV and MP3 files, and a general idea of neural networks. You should also know how to run a Python script from a terminal.
Whisper models trade accuracy for speed and memory. A larger model usually handles accents, background noise, rare words, and multilingual speech better. It also needs more memory and takes longer to run. The best model is the smallest one that meets your accuracy and latency requirements.
Model sizes and variants
The standard model family contains tiny, base, small, medium, and large. Parameter counts are approximate.
| Model | Parameters | Relative speed | Typical use |
|---|---|---|---|
| `tiny` | 39 million | Fastest | Experiments and rough captions |
| `base` | 74 million | Fast | Prototypes and clear speech |
| `small` | 244 million | Moderate | Good general-purpose starting point |
| `medium` | 769 million | Slow | Higher accuracy and difficult audio |
| `large` | 1.5 billion | Slowest | Highest accuracy when resources allow |
The exact speed depends on your processor, graphics card, audio length, and decoding settings. A larger model can still be the better choice if correcting transcription errors costs more than the extra compute.
Whisper also has English-only variants such as tiny.en, base.en, small.en, and medium.en. These variants are trained specifically for English. They can perform better than the corresponding multilingual model on English audio, especially at smaller sizes. The large family is multilingual rather than English-only.
English-only versus multilingual
Use a multilingual model when the recording may contain several languages, when you need automatic language detection, or when you want to translate speech into English. Use an English-only model when the input is reliably English and you want the best English result for a given smaller model size.
A multilingual model can transcribe speech in its original language. With the translate task, it produces English text. Translation is not the same as transcription: names, technical terms, and cultural expressions may be changed during translation.
A practical selection process
Start with small for a balanced baseline. Compare it with base if you need lower latency or lower memory use. Compare it with medium or large when accuracy is more important than cost.
Measure the models on audio from your real application. A clean podcast and a noisy call center recording produce very different results. Evaluate several speakers, accents, microphones, and background conditions before choosing a production model.
import whisper
language = "en"
model_name = "small.en" if language == "en" else "small"
model = whisper.load_model(model_name)
result = model.transcribe("audio.mp3", language=language)
print(f"model: {model_name}")
print(result["text"])The code selects an English-only model for known English input. If the language is unknown or may change, select a multilingual model and allow Whisper to detect the language.
Exercise
Exercise
You need live English captions on a CPU with limited memory. You also need the lowest practical delay. Which model should you test first, and what should you compare it against?
Show answer
Test base.en first because it is English-only and relatively fast. Compare it with tiny.en for lower latency and small.en for better accuracy. Measure both error rate and end-to-end delay on real recordings.