diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2026-03-19 10:18:51 +0100 |
|---|---|---|
| committer | Cayetano Santos <csantosb@inventati.org> | 2026-03-19 10:45:57 +0100 |
| commit | 10f605296265d7db5737fe21113ea75ee35874ee (patch) | |
| tree | ecaa399d86b7f895e123e75f91c097a7e7a25fd2 /gnu | |
| parent | 3d0900d0e6b12a2be0de16a9bb04fb72cdd7910c (diff) | |
gnu: whisper-cpp: Update to 1.8.4.
* gnu/packages/machine-learning.scm (whisper-cpp): Update to 1.8.4.
Change-Id: Icf3522af467ee7b06df66b9019c5ab838e440d8d
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/machine-learning.scm | 127 |
1 files changed, 62 insertions, 65 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 9eccf22cf5c..36727f16257 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm | |||
| @@ -935,70 +935,67 @@ independently to be able to run a LLaMA model.") | |||
| 935 | (license license:expat)))) | 935 | (license license:expat)))) |
| 936 | 936 | ||
| 937 | (define-public whisper-cpp | 937 | (define-public whisper-cpp |
| 938 | ;; Keep in sync with ggml/scripts/sync-whisper.last | 938 | (package |
| 939 | (let ((commit "364c77f4ca2737e3287652e0e8a8c6dce3231bba") | 939 | (name "whisper-cpp") |
| 940 | (revision "0")) | 940 | (version "1.8.4") ;keep in sync with ggml |
| 941 | (package | 941 | (source (origin |
| 942 | (name "whisper-cpp") | 942 | (method git-fetch) |
| 943 | (version (git-version "1.8.3" revision commit)) | 943 | (uri (git-reference |
| 944 | (source (origin | 944 | (url "https://github.com/ggml-org/whisper.cpp") |
| 945 | (method git-fetch) | 945 | (commit (string-append "v" version)))) |
| 946 | (uri (git-reference | 946 | (file-name (git-file-name name version)) |
| 947 | (url "https://github.com/ggml-org/whisper.cpp") | 947 | (sha256 |
| 948 | (commit commit))) | 948 | (base32 |
| 949 | (file-name (git-file-name name version)) | 949 | "0vgx2jibmfkk77n912p4iavql2q3x50dmvfxzbqidbm568l9cav0")))) |
| 950 | (sha256 | 950 | (build-system cmake-build-system) |
| 951 | (base32 | 951 | (arguments |
| 952 | "1q2x3m3v54x7y10k8n558jc36vcy41rvz2n9arjki4almcs6kyxl")))) | 952 | (list |
| 953 | (build-system cmake-build-system) | 953 | #:configure-flags |
| 954 | (arguments | 954 | #~(list "-DBUILD_SHARED_LIBS=ON" |
| 955 | (list | 955 | "-DWHISPER_SDL2=TRUE" |
| 956 | #:configure-flags | 956 | "-DWHISPER_FFMPEG=TRUE" |
| 957 | #~(list "-DBUILD_SHARED_LIBS=ON" | 957 | "-DWHISPER_USE_SYSTEM_GGML=ON") |
| 958 | "-DWHISPER_SDL2=TRUE" | 958 | #:phases |
| 959 | "-DWHISPER_FFMPEG=TRUE" | 959 | #~(modify-phases %standard-phases |
| 960 | "-DWHISPER_USE_SYSTEM_GGML=ON") | 960 | (add-after 'unpack 'patch-paths |
| 961 | #:phases | 961 | (lambda* (#:key inputs #:allow-other-keys) |
| 962 | #~(modify-phases %standard-phases | 962 | (substitute* |
| 963 | (add-after 'unpack 'patch-paths | 963 | "ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp" |
| 964 | (lambda* (#:key inputs #:allow-other-keys) | 964 | (("\"/bin/sh\"") |
| 965 | (substitute* | 965 | (string-append |
| 966 | "ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp" | 966 | "\"" (search-input-file inputs "/bin/sh") "\""))))) |
| 967 | (("\"/bin/sh\"") | 967 | #$@(if (target-32bit?) |
| 968 | (string-append | 968 | '((add-after 'unpack 'skip-failing-tests |
| 969 | "\"" (search-input-file inputs "/bin/sh") "\""))))) | 969 | (lambda _ |
| 970 | #$@(if (target-32bit?) | 970 | ;; 32-bit system |
| 971 | '((add-after 'unpack 'skip-failing-tests | 971 | ;; large model does not fit in RAM in 32-bit system, |
| 972 | (lambda _ | 972 | ;; disable large model test |
| 973 | ;; 32-bit system | 973 | (substitute* "tests/CMakeLists.txt" |
| 974 | ;; large model does not fit in RAM in 32-bit system, | 974 | (("LABELS \"large\"") |
| 975 | ;; disable large model test | 975 | "DISABLED true"))))) |
| 976 | (substitute* "tests/CMakeLists.txt" | 976 | '()) |
| 977 | (("LABELS \"large\"") | 977 | (add-after 'unpack 'skip-failing-vad-tests |
| 978 | "DISABLED true"))))) | 978 | (lambda _ |
| 979 | '()) | 979 | (substitute* "tests/CMakeLists.txt" |
| 980 | (add-after 'unpack 'skip-failing-vad-tests | 980 | ;; error: failed to read audio data as wav (Unknown error) |
| 981 | (lambda _ | 981 | (("\\$\\{VAD_TEST\\} PROPERTIES LABELS \"unit\"") |
| 982 | (substitute* "tests/CMakeLists.txt" | 982 | "${VAD_TEST} PROPERTIES DISABLED true") |
| 983 | ;; error: failed to read audio data as wav (Unknown error) | 983 | ;; error: failed to read audio data as wav (Unknown error) |
| 984 | (("\\$\\{VAD_TEST\\} PROPERTIES LABELS \"unit\"") | 984 | (("\\$\\{VAD_TEST\\} PROPERTIES LABELS \"base;en\"") |
| 985 | "${VAD_TEST} PROPERTIES DISABLED true") | 985 | "${VAD_TEST} PROPERTIES DISABLED true"))))))) |
| 986 | ;; error: failed to read audio data as wav (Unknown error) | 986 | (native-inputs |
| 987 | (("\\$\\{VAD_TEST\\} PROPERTIES LABELS \"base;en\"") | 987 | (list git pkg-config shaderc)) |
| 988 | "${VAD_TEST} PROPERTIES DISABLED true"))))))) | 988 | (inputs |
| 989 | (native-inputs | 989 | (list ffmpeg |
| 990 | (list git pkg-config shaderc)) | 990 | ggml |
| 991 | (inputs | 991 | sdl2 |
| 992 | (list ffmpeg | 992 | spirv-headers |
| 993 | ggml | 993 | spirv-tools |
| 994 | sdl2 | 994 | vulkan-headers |
| 995 | spirv-headers | 995 | vulkan-loader)) |
| 996 | spirv-tools | 996 | (synopsis "OpenAI's Whisper model in C/C++") |
| 997 | vulkan-headers | 997 | (description |
| 998 | vulkan-loader)) | 998 | "This package is a high-performance inference of OpenAI's |
| 999 | (synopsis "OpenAI's Whisper model in C/C++") | ||
| 1000 | (description | ||
| 1001 | "This package is a high-performance inference of OpenAI's | ||
| 1002 | Whisper automatic speech recognition (ASR) model, implemented in plain C/C++ | 999 | Whisper automatic speech recognition (ASR) model, implemented in plain C/C++ |
| 1003 | without dependencies, with | 1000 | without dependencies, with |
| 1004 | @itemize | 1001 | @itemize |
| @@ -1014,7 +1011,7 @@ without dependencies, with | |||
| 1014 | @end itemize") | 1011 | @end itemize") |
| 1015 | (properties '((tunable? . #true))) ;use AVX512, FMA, etc. when available | 1012 | (properties '((tunable? . #true))) ;use AVX512, FMA, etc. when available |
| 1016 | (home-page "https://github.com/ggml-org/whisper.cpp/") | 1013 | (home-page "https://github.com/ggml-org/whisper.cpp/") |
| 1017 | (license license:expat)))) | 1014 | (license license:expat))) |
| 1018 | 1015 | ||
| 1019 | (define-public mcl | 1016 | (define-public mcl |
| 1020 | (package | 1017 | (package |
