]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
models : Faster download for models on windows using BitTransfer (#1404)
authorWhiteOlivierus <redacted>
Mon, 30 Oct 2023 19:18:12 +0000 (20:18 +0100)
committerGitHub <redacted>
Mon, 30 Oct 2023 19:18:12 +0000 (19:18 +0000)
models/download-ggml-model.cmd

index 8220ac597ca5ba46cf87925f1017b19e3cd4f580..9042e99b27558434f33a6fe946b57d137c9a7764 100644 (file)
@@ -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%