mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-02-12 13:35:17 +00:00
Some checks are pending
CI / ubuntu-latest (linux/amd64) (push) Waiting to run
CI / ubuntu-latest (linux/ppc64le) (push) Waiting to run
CI / ubuntu-latest-arm64 (linux/arm64) (push) Waiting to run
CI / ubuntu-latest-arm-v7 (linux/arm/v7) (push) Waiting to run
CI / macOS-latest (push) Waiting to run
CI / ubuntu-latest-gcc (linux/amd64, Debug) (push) Waiting to run
CI / ubuntu-latest-gcc (linux/amd64, Release) (push) Waiting to run
CI / ubuntu-latest-gcc (linux/ppc64le, Debug) (push) Waiting to run
CI / ubuntu-latest-gcc (linux/ppc64le, Release) (push) Waiting to run
CI / ubuntu-latest-gcc-arm64 (linux/arm64, Debug) (push) Waiting to run
CI / ubuntu-latest-gcc-arm64 (linux/arm64, Release) (push) Waiting to run
CI / ubuntu-latest-gcc-arm-v7 (linux/arm/v7, Debug) (push) Waiting to run
CI / ubuntu-latest-gcc-arm-v7 (linux/arm/v7, Release) (push) Waiting to run
CI / ubuntu-latest-clang (linux/amd64, Debug) (push) Waiting to run
CI / ubuntu-latest-clang (linux/amd64, Release) (push) Waiting to run
CI / ubuntu-latest-clang (linux/arm64, Debug) (push) Waiting to run
CI / ubuntu-latest-clang (linux/arm64, Release) (push) Waiting to run
CI / ubuntu-latest-clang (linux/ppc64le, Debug) (push) Waiting to run
CI / ubuntu-latest-clang (linux/ppc64le, Release) (push) Waiting to run
CI / ubuntu-latest-gcc-sanitized (linux/amd64, ADDRESS) (push) Waiting to run
CI / ubuntu-latest-gcc-sanitized (linux/amd64, THREAD) (push) Waiting to run
CI / ubuntu-latest-gcc-sanitized (linux/amd64, UNDEFINED) (push) Waiting to run
CI / ubuntu-22-cmake-sycl (linux/amd64, icx, icpx, ON) (push) Waiting to run
CI / ubuntu-22-cmake-sycl (linux/arm/v7, icx, icpx, ON) (push) Waiting to run
CI / ubuntu-22-cmake-sycl (linux/arm64, icx, icpx, ON) (push) Waiting to run
CI / ubuntu-22-cmake-sycl (linux/ppc64le, icx, icpx, ON) (push) Waiting to run
CI / ubuntu-22-cmake-sycl-fp16 (linux/amd64, icx, icpx, ON) (push) Waiting to run
CI / ubuntu-22-cmake-sycl-fp16 (linux/arm/v7, icx, icpx, ON) (push) Waiting to run
CI / ubuntu-22-cmake-sycl-fp16 (linux/arm64, icx, icpx, ON) (push) Waiting to run
CI / ubuntu-22-cmake-sycl-fp16 (linux/ppc64le, icx, icpx, ON) (push) Waiting to run
CI / windows-msys2 (Release, clang-x86_64, CLANG64) (push) Waiting to run
CI / windows-msys2 (Release, ucrt-x86_64, UCRT64) (push) Waiting to run
CI / windows (Win32, Release, win32-x86, x86, 2.28.5, ON) (push) Waiting to run
CI / windows (x64, Release, win32-x86-64, x64, 2.28.5, ON) (push) Waiting to run
CI / windows-blas (Win32, ON, Release, x86, 2.28.5, ON) (push) Waiting to run
CI / windows-blas (x64, ON, Release, x64, 2.28.5, ON) (push) Waiting to run
CI / windows-cublas (x64, Release, ON, 11.8.0, ON, 2.28.5) (push) Waiting to run
CI / windows-cublas (x64, Release, ON, 12.2.0, ON, 2.28.5) (push) Waiting to run
CI / emscripten (Release) (push) Waiting to run
CI / ios-xcode-build (Release) (push) Waiting to run
CI / android (push) Waiting to run
CI / quantize (push) Waiting to run
Publish Docker image / Push Docker image to Docker Hub (map[dockerfile:.devops/main.Dockerfile platform:linux/amd64 tag:main]) (push) Waiting to run
65 lines
1.4 KiB
Batchfile
65 lines
1.4 KiB
Batchfile
@echo off
|
|
|
|
pushd %~dp0
|
|
set models_path=%CD%
|
|
for %%d in (%~dp0..) do set root_path=%%~fd
|
|
popd
|
|
|
|
set argc=0
|
|
for %%x in (%*) do set /A argc+=1
|
|
|
|
set models=tiny.en tiny base.en base small.en small medium.en medium large-v1 large-v2 large-v3 large-v3-turbo
|
|
|
|
if %argc% neq 1 (
|
|
echo.
|
|
echo Usage: download-ggml-model.cmd model
|
|
CALL :list_models
|
|
goto :eof
|
|
)
|
|
|
|
set model=%1
|
|
|
|
for %%b in (%models%) do (
|
|
if "%%b"=="%model%" (
|
|
CALL :download_model
|
|
goto :eof
|
|
)
|
|
)
|
|
|
|
echo Invalid model: %model%
|
|
CALL :list_models
|
|
goto :eof
|
|
|
|
:download_model
|
|
echo Downloading ggml model %model%...
|
|
|
|
cd "%models_path%"
|
|
|
|
if exist "ggml-%model%.bin" (
|
|
echo Model %model% already exists. Skipping download.
|
|
goto :eof
|
|
)
|
|
|
|
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%
|
|
echo Please try again later or download the original Whisper model files and convert them yourself.
|
|
goto :eof
|
|
)
|
|
|
|
echo Done! Model %model% saved in %root_path%\models\ggml-%model%.bin
|
|
echo You can now use it like this:
|
|
echo build\bin\Release\whisper-cli.exe -m %root_path%\models\ggml-%model%.bin -f %root_path%\samples\jfk.wav
|
|
|
|
goto :eof
|
|
|
|
:list_models
|
|
echo.
|
|
echo Available models:
|
|
(for %%a in (%models%) do (
|
|
echo %%a
|
|
))
|
|
echo.
|
|
exit /b
|