New Tool Radar

Local AI

How to Fix a whisper.cpp Model Download 404

Get the right whisper.cpp model file when the download script returns a 404.

Schematic illustration with three step boxes: See the 404; Check the model name; Download the file by hand.

whisper.cpp ships a download script that fetches model files from Hugging Face, and a 404 from it almost always means the model name is wrong or the file was moved. The fix is to check the name against the published list and download the file by hand if needed. This guide does that for a model that will not download.

Before you start

  • whisper.cpp cloned or built, with the models folder present.
  • A terminal and a browser.
  • The model name you tried, for example base.en.

See the 404

Run the download script and note the exact name it tried:

./models/download-ggml-model.sh base.en

A 404 means the file was not found at that address. Note whether the error is for the model file itself or for a checksum file; the fix is the same either way.

Check the model name

Open the whisper.cpp repository on Hugging Face, under the user ggerganov, and look at the model list in the README. Model names are exact: base.en is the English-only base model, while base is the multilingual one, and a typo such as base-en with a hyphen will 404. Use the exact name from the list.

Download the file by hand

Download the ggml file from the Hugging Face repository with your browser or with curl, and place it in the models folder. Then run the transcription with the file path:

./build/bin/whisper-cli -m models/ggml-base.en.bin -f samples/jfk.wav

The sample file should transcribe without a download step.

Worked example

Worked example: the script for “base.en” returns 404 because the name was typed as “base-en”. Use the exact name base.en from the README, or download ggml-base.en.bin by hand from the ggerganov repository and place it in models. The sample transcription should then run and produce the JFK speech text.

Expected result

UNTESTED in this guide: no model was downloaded while writing it. The expected result is that the correctly named file downloads, and the sample transcription runs without a 404.

Limitations

A 404 can also mean the network or a proxy blocks Hugging Face; if the name is right and the browser also cannot reach the file, the problem is the connection, not the name.

Sources

See all