whisper.cpp/models
andypayne a09ce6e889 Changes to work by default on macOS - use curl when wget is not available, and use an alternative method to get the script path when realpath is not available. 2022-10-26 12:18:18 +03:00
..
.gitignore Initial release 2022-09-25 22:13:49 +03:00
README.md Minor 2022-10-10 22:06:27 +03:00
convert-pt-to-ggml.py Add enconding parameter to vocab.json opening to fix errors 2022-10-23 11:55:01 +03:00
download-ggml-model.sh Changes to work by default on macOS - use curl when wget is not available, and use an alternative method to get the script path when realpath is not available. 2022-10-26 12:18:18 +03:00
for-tests-ggml-base.bin Adding dummy models for testing purposes 2022-10-08 11:43:42 +03:00
for-tests-ggml-base.en.bin Adding dummy models for testing purposes 2022-10-08 11:43:42 +03:00
for-tests-ggml-large.bin Adding dummy models for testing purposes 2022-10-08 11:43:42 +03:00
for-tests-ggml-medium.bin Adding dummy models for testing purposes 2022-10-08 11:43:42 +03:00
for-tests-ggml-medium.en.bin Adding dummy models for testing purposes 2022-10-08 11:43:42 +03:00
for-tests-ggml-small.bin Adding dummy models for testing purposes 2022-10-08 11:43:42 +03:00
for-tests-ggml-small.en.bin Adding dummy models for testing purposes 2022-10-08 11:43:42 +03:00
for-tests-ggml-tiny.bin Adding dummy models for testing purposes 2022-10-08 11:43:42 +03:00
for-tests-ggml-tiny.en.bin Adding dummy models for testing purposes 2022-10-08 11:43:42 +03:00

README.md

Whisper model files in custom ggml format

The original Whisper PyTorch models provided by OpenAI have been converted to custom ggml format in order to be able to load them in C/C++. The conversion has been performed using the convert-pt-to-ggml.py script. You can either obtain the original models and generate the ggml files yourself using the conversion script, or you can use the download-ggml-model.sh script to download the already converted models from https://ggml.ggerganov.com

Sample usage:

$ ./download-ggml-model.sh base.en
Downloading ggml model base.en ...
models/ggml-base.en.bin          100%[=============================================>] 141.11M  5.41MB/s    in 22s
Done! Model 'base.en' saved in 'models/ggml-base.en.bin'
You can now use it like this:

  $ ./main -m models/ggml-base.en.bin -f samples/jfk.wav

A third option to obtain the model files is to download them from Hugging Face:

https://huggingface.co/datasets/ggerganov/whisper.cpp/tree/main

Model files for testing purposes

The model files pefixed with for-tests- are empty (i.e. do not contain any weights) and are used by the CI for testing purposes. They are directly included in this repository for convenience and the Github Actions CI uses them to run various sanitizer tests.