Sub topic 4
Choosing a model size: tiny to large, English-only and multilingual
This chapter assumes you can run Python scripts, have openai-whisper and ffmpeg installed, and know the idea from the previous chapter: Whisper is an encoder-decoder transformer that reads a log-Mel spectrogram and writes text tokens. Here you will learn how the released checkpoints differ, how to pick one, and how to check your choice with a measurement.
What actually changes between sizes
Every Whisper checkpoint uses the same architecture and the same audio preprocessing. Larger checkpoints have more transformer layers, wider layers, and more attention heads, in both the encoder and the decoder. This gives them more parameters (the learned numbers in the network). More parameters usually mean lower word error rate, especially on noisy audio, accents, and less common languages. They also cost more memory and time.
The tokenizer, the 30-second window, and the output format are the same in every size. Your code does not change when you switch models. Only the name passed to load_model changes.
The model family
The table gives the figures from the openai-whisper README. The speeds are relative to large, measured on a GPU. Treat memory and speed as rough guides, because they depend on your hardware, audio, and decoding settings.
| Name | Parameters | English-only version | Multilingual version | Approx. VRAM | Relative speed |
|---|---|---|---|---|---|
| tiny | 39 M | `tiny.en` | `tiny` | ~1 GB | ~10x |
| base | 74 M | `base.en` | `base` | ~1 GB | ~7x |
| small | 244 M | `small.en` | `small` | ~2 GB | ~4x |
| medium | 769 M | `medium.en` | `medium` | ~5 GB | ~2x |
| large | 1550 M | none | `large` | ~10 GB | 1x |
| turbo | 809 M | none | `turbo` | ~6 GB | ~8x |
Some points the table does not show:
largeis an alias for the newest large release. The releases arelarge-v1,large-v2, andlarge-v3. If you need results you can reproduce over time, name the version explicitly.large-v3takes 128 Mel frequency bins as input instead of the 80 bins that earlier models use. The package handles this for you. It matters if you build spectrograms yourself and feed them to the model.turbois an optimized form oflarge-v3. Its decoder is pruned to far fewer layers, which is why it runs much faster thanlargewith only a small accuracy loss. It was not trained for translation, so usemediumorlargefor the translate task.- Model files download on first use and are cached, by default under
~/.cache/whisper. Plan for the download on a fresh machine or container.
English-only versus multilingual
The .en models exist for tiny, base, small, and medium. They were trained only on English speech. They cannot detect a language or translate, and they always produce English.
The OpenAI paper found that .en models perform better than their multilingual twins at the tiny and base sizes. The gap shrinks at small and medium, and for larger models the multilingual version tends to be just as good or better. This is why no large.en was released.
Use this rule:
- If the audio is all English and you need a small model (tiny or base), pick the
.enversion. - If you use small or medium on English, try both. The difference is often small, so evaluate it yourself.
- If any audio might not be English, use a multilingual model. An English-only model fed Spanish speech will still output English-looking text. It will usually be wrong, and it will not report an error.
Multilingual accuracy is not uniform. The paper reports that word error rate by language follows how much training audio each language had. English dominates the training data, while many languages have only a few hours or a few hundred hours. A model size that works well for English may be too weak for a low-resource language, so test on your target language.
Trade-offs you will feel in practice
Moving up a size helps in these cases:
- Background noise, music, or overlapping sounds.
- Strong accents or domain vocabulary such as medical terms and product names.
- Non-English languages, especially low-resource ones.
- Less hallucination, meaning invented text that is not in the audio. Smaller models are more prone to it, as later chapters show.
Moving up a size costs you in these ways:
- Memory. If the model plus the decoding state does not fit in GPU memory, you get an out-of-memory error. Larger beam sizes and bigger batches raise memory use.
- Speed. On CPU,
largecan run slower than real time. Short clips in a batch job may be fine, while live captioning is not. - Startup time. Loading a big checkpoint from disk takes seconds to tens of seconds. Load once and reuse the model object. Do not call
load_modelinside a loop over files.
The decision process is easier to follow as a flow.
Inspecting and comparing models in code
The package lists the names it can load. A loaded model also tells you whether it is multilingual. The script below loads three checkpoints, counts parameters, times one transcription, and prints the start of each result. Use a short English recording, because tiny.en cannot handle anything else.
import time
import whisper
print(whisper.available_models())
for name in ["tiny.en", "base", "small"]:
model = whisper.load_model(name)
params = sum(p.numel() for p in model.parameters())
start = time.perf_counter()
result = model.transcribe("audio.mp3", fp16=False)
elapsed = time.perf_counter() - start
print(f"{name}: multilingual={model.is_multilingual}, "
f"params={params / 1e6:.0f}M, time={elapsed:.1f}s")
print(result["text"][:100])Some details about this script:
fp16=Falseavoids a warning on CPU and runs in 32-bit floats. On a GPU you can leave the default, which uses 16-bit floats and is faster.- The first call to
load_modelfor each name downloads the checkpoint, so the first run is slow. Time the transcription, not the load, as the script does. - A single timing is noisy. For real comparisons, repeat the run and use several files.
Choosing with evidence
The model table gives a starting point, but the right answer depends on your audio. A practical process:
- Collect 10 to 30 representative clips, such as your real microphones, accents, and topics. Write correct transcripts for them by hand.
- Run two or three candidate sizes on all clips and compute word error rate for each. A later chapter covers this metric.
- Record time and peak memory on the hardware you will deploy to, not your laptop.
- Pick the smallest model that meets your accuracy target. Then check that the error is acceptable for the worst clips, not only the average.
Keep the decision tied to numbers. A model that scores a little better on average but fails badly on one speaker's accent may be the wrong choice for your users.
Common mistakes
- Choosing
largeby default. It is the slowest and largest choice. For clean English speech, small or medium is often enough. - Forgetting the
.ensuffix matters.baseandbase.enare different checkpoints. The names differ by one suffix, but the behavior differs. - Comparing models on one clip. A single clip tells you little. Use a set of clips.
- Reloading the model for every file. Load once, then call
transcribemany times. - Judging a non-English model by English results. Test in the language you will use.
Exercise
A team transcribes customer calls. Most calls are English, but about one in ten is in Portuguese or Spanish. They are considering base.en for its low memory use. Which kind of model should they choose, and what should they do to choose the size?
Show answer
They should use a multilingual model, because an English-only model cannot detect or transcribe Portuguese or Spanish and will silently output wrong English text for those calls. For the size, they should collect representative English, Portuguese, and Spanish clips with correct transcripts, run small and medium (or turbo for transcription speed), compute word error rate per language, and pick the smallest model that meets their accuracy target in every language on their deployment hardware.
Exercise
You run the comparison script and find that tiny.en is faster than small, but its text contains many errors on noisy recordings. Name two options other than "just use a bigger model" for improving results, using what you know from this chapter.
Show answer
Possible answers include: use small.en instead of the multilingual small if the audio is English-only, since an English-only model of the same size may do equally well while using the same memory; try turbo if a large-class model is affordable and you only need transcription, since it is much faster than large; or test whether base.en is accurate enough, as it is still small. Any two of these, together with measuring word error rate on your own clips, are valid.