update distil.sh
parent
e3a7628acf
commit
60d38c4d5c
|
|
@ -18,14 +18,16 @@ fi
|
||||||
cd ./whisper.cpp/models
|
cd ./whisper.cpp/models
|
||||||
|
|
||||||
for name in distil-medium.en; do # distil-large-v2
|
for name in distil-medium.en; do # distil-large-v2
|
||||||
|
if ! test -f ../../ggml-$name.bin; then
|
||||||
if ! test -d ./$name; then
|
if ! test -d ./$name; then
|
||||||
git clone https://huggingface.co/distil-whisper/$name
|
git clone https://huggingface.co/distil-whisper/$name
|
||||||
fi
|
fi
|
||||||
cd ./$name
|
cd ./$name
|
||||||
git lfs install
|
git lfs install
|
||||||
git lfs pull
|
git lfs pull --include $(ls ggml*.en.bin | grep -v fp32)
|
||||||
git lfs install
|
git lfs install
|
||||||
|
mv $(ls ggml*.en.bin | grep -v fp32) ../../ggml-$name.bin
|
||||||
cd ..
|
cd ..
|
||||||
python3 ./convert-h5-to-ggml.py ./$name/ ../../whisper .
|
rm -rf ./$name
|
||||||
mv ./ggml-model.bin ../../ggml-$name.bin
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue