From 3e2e1e2ff8fbbb42b3d7a84f6fb9f3fa9a47f3a3 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Sun, 26 Nov 2023 16:23:42 -0700 Subject: [PATCH] wip --- rust-whisper.d/models/distil.sh | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 rust-whisper.d/models/distil.sh diff --git a/rust-whisper.d/models/distil.sh b/rust-whisper.d/models/distil.sh deleted file mode 100644 index 7dfeed2..0000000 --- a/rust-whisper.d/models/distil.sh +++ /dev/null @@ -1,33 +0,0 @@ -#! /bin/bash - -set -ueo pipefail - -cd "$(dirname "$(realpath "$BASH_SOURCE")")" - -if git lfs 2>&1 | grep not.a.git; then - brew install git-lfs -fi - -echo "https://github.com/ggerganov/whisper.cpp/pull/1424" >&2 -if ! test -d ./whisper; then - git clone https://github.com/openai/whisper -fi -if ! test -d ./whisper.cpp; then - git clone https://github.com/ggerganov/whisper.cpp -fi -cd ./whisper.cpp/models - -for name in distil-medium.en; do # distil-large-v2 - if ! test -f ../../ggml-$name.bin; then - 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 -done