faster-whisper reports CUDA not found when the GPU build of its backend is missing, even though the card and drivers are fine. The cause is usually the plain CPU build of ctranslate2, or a CUDA version mismatch. This guide checks the install and either fixes it or falls back to the CPU path.
Before you start
- Python with faster-whisper installed.
- An NVIDIA GPU with drivers installed, checked with nvidia-smi.
- A terminal and pip.
See the exact error
Try loading the model on CUDA and note the error:
from faster_whisper import WhisperModel
model = WhisperModel("base", device="cuda", compute_type="float16")
“CUDA not found” or a library load error points at the ctranslate2 build; a different error, such as out of memory, is a different problem.
Check the ctranslate2 build
Check which build is installed:
pip show ctranslate2
The plain wheel is CPU-only. Install a CUDA build of ctranslate2 that matches your CUDA version, then load the model again. Also check that the CUDA toolkit version matches the one the wheel was built for.
Fall back to CPU if the GPU cannot be fixed
If the CUDA build cannot be installed, use the CPU path instead:
model = WhisperModel("base", device="cpu", compute_type="int8")
The transcription will be slower but it will work, and int8 on the CPU is the standard fallback for this tool.
Worked example
Worked example: loading on CUDA fails with “CUDA not found” although nvidia-smi shows the card. After installing the CUDA build of ctranslate2, the same code loads the model on the GPU and a 10-minute file transcribes in well under a minute. If the install fails, the CPU fallback transcribes the same file in about 2 minutes.
Expected result
UNTESTED in this guide: no transcription was run while writing it. The expected result is that the CUDA build loads the model on the GPU, or the CPU fallback transcribes the file cleanly.
Limitations
A CUDA build for the wrong CUDA version can fail to load with a confusing error. Match the wheel to the CUDA version reported by nvidia-smi before reinstalling.
