From: Thea Mukhi Date: Sun, 24 Aug 2025 09:52:33 +0000 (-0400) Subject: models : update`./models/download-ggml-model.cmd` to allow for tdrz download (#3381) X-Git-Tag: upstream/1.8.0~246 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=c09b0e0c4c20e81ad974146c00321bee83df38db;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp models : update`./models/download-ggml-model.cmd` to allow for tdrz download (#3381) * added patch to cmd to allow for tdrz download * remove @signs * Update models/download-ggml-model.cmd Add missing closing double quote. --------- Co-authored-by: Daniel Bevenius --- diff --git a/models/download-ggml-model.cmd b/models/download-ggml-model.cmd index ce7a15b5..d8c2e6a7 100644 --- a/models/download-ggml-model.cmd +++ b/models/download-ggml-model.cmd @@ -30,7 +30,7 @@ tiny.en tiny.en-q5_1 tiny.en-q8_0 ^ base base-q5_1 base-q8_0 ^ base.en base.en-q5_1 base.en-q8_0 ^ small small-q5_1 small-q8_0 ^ -small.en small.en-q5_1 small.en-q8_0 ^ +small.en small.en-q5_1 small.en-q8_0 small.en-tdrz ^ medium medium-q5_0 medium-q8_0 ^ medium.en medium.en-q5_0 medium.en-q8_0 ^ large-v1 ^ @@ -74,8 +74,13 @@ if exist "%models_path%\\ggml-%model%.bin" ( echo Model %model% already exists. Skipping download. goto :eof ) +echo %model% | findstr tdrz +if %ERRORLEVEL% neq 0 ( + PowerShell -NoProfile -ExecutionPolicy Bypass -Command "Start-BitsTransfer -Source https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-%model%.bin -Destination \"%models_path%\\ggml-%model%.bin\"" +) else ( + PowerShell -NoProfile -ExecutionPolicy Bypass -Command "Start-BitsTransfer -Source https://huggingface.co/akashmjn/tinydiarize-whisper.cpp/resolve/main/ggml-%model%.bin -Destination \"%models_path%\\ggml-%model%.bin\"" -PowerShell -NoProfile -ExecutionPolicy Bypass -Command "Start-BitsTransfer -Source https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-%model%.bin -Destination \"%models_path%\\ggml-%model%.bin\"" +) if %ERRORLEVEL% neq 0 ( echo Failed to download ggml model %model%