From: WhiteOlivierus Date: Mon, 30 Oct 2023 19:18:12 +0000 (+0100) Subject: models : Faster download for models on windows using BitTransfer (#1404) X-Git-Tag: upstream/1.7.4~1296 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=45c87b54813a185ebf37bb40f46587fd6eb86a4d;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp models : Faster download for models on windows using BitTransfer (#1404) --- diff --git a/models/download-ggml-model.cmd b/models/download-ggml-model.cmd index 8220ac59..9042e99b 100644 --- a/models/download-ggml-model.cmd +++ b/models/download-ggml-model.cmd @@ -40,7 +40,7 @@ if exist "ggml-%model%.bin" ( goto :eof ) -PowerShell -NoProfile -ExecutionPolicy Bypass -Command "Invoke-WebRequest -Uri https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-%model%.bin -OutFile ggml-%model%.bin" +PowerShell -NoProfile -ExecutionPolicy Bypass -Command "Start-BitsTransfer -Source https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-%model%.bin -Destination ggml-%model%.bin" if %ERRORLEVEL% neq 0 ( echo Failed to download ggml model %model%