update distil.sh
This commit is contained in:
@@ -17,15 +17,17 @@ if ! test -d ./whisper.cpp; then
|
|||||||
fi
|
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 -d ./$name; then
|
if ! test -f ../../ggml-$name.bin; then
|
||||||
git clone https://huggingface.co/distil-whisper/$name
|
if ! test -d ./$name; then
|
||||||
|
git clone https://huggingface.co/distil-whisper/$name
|
||||||
|
fi
|
||||||
|
cd ./$name
|
||||||
|
git lfs install
|
||||||
|
git lfs pull --include $(ls ggml*.en.bin | grep -v fp32)
|
||||||
|
git lfs install
|
||||||
|
mv $(ls ggml*.en.bin | grep -v fp32) ../../ggml-$name.bin
|
||||||
|
cd ..
|
||||||
|
rm -rf ./$name
|
||||||
fi
|
fi
|
||||||
cd ./$name
|
|
||||||
git lfs install
|
|
||||||
git lfs pull
|
|
||||||
git lfs install
|
|
||||||
cd ..
|
|
||||||
python3 ./convert-h5-to-ggml.py ./$name/ ../../whisper .
|
|
||||||
mv ./ggml-model.bin ../../ggml-$name.bin
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user