fuuuuuuuu lost my models folder oh well

master
Bel LaPointe 2023-11-30 09:06:26 -07:00
parent ff0f34f80b
commit 9e97f8669d
1 changed files with 11 additions and 0 deletions

11
models/download_models.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
src="https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml"
cd "$(dirname "$(realpath "$BASH_SOURCE")")"
# Whisper models
for model in "tiny.en" "base.en" "small.en" "medium.en" "large-v2"; do
test -f ./ggml-$model.bin || wget --quiet --show-progress -O ./ggml-$model.bin "$src-$model.bin"
done
test -f ./ggml-distil-medium.en.bin || wget https://huggingface.co/distil-whisper/distil-medium.en/resolve/main/ggml-medium-32-2.en.bin?download=true -O ./ggml-distil-medium.en.bin