mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: whisper-cpp: Build with vulkan support.
* gnu/packages/machine-learning.scm (whisper-cpp)<#:configure-flags>: Add "-DGGML_VULKAN=ON". [arguments]<#:phases>[patch-paths]: New phase. [native-inputs]: Add shaderc. [inputs]: Add spirv-headers, spirv-tools, vulkan-headers, vulkan-loader. Change-Id: I8d5570b8a2b7e9b6d19bd5a0258ea672baf50d35 Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
This commit is contained in:
parent
d8dc8d856a
commit
c85acd96e7
1 changed files with 10 additions and 3 deletions
|
@ -812,9 +812,15 @@ independently to be able to run a LLaMA model.")
|
|||
"-DGGML_AVX2=OFF"
|
||||
"-DGGML_AVX512=OFF"
|
||||
"-DGGML_AVX512_VBMI=OFF"
|
||||
"-DGGML_AVX512_VNNI=OFF")
|
||||
"-DGGML_AVX512_VNNI=OFF"
|
||||
"-DGGML_VULKAN=ON")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-paths
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp"
|
||||
(("\"/bin/sh\"")
|
||||
(string-append "\"" (search-input-file inputs "/bin/sh") "\"")))))
|
||||
#$@(if (not (target-64bit?))
|
||||
'((add-after 'unpack 'skip-failing-tests
|
||||
(lambda _
|
||||
|
@ -835,9 +841,10 @@ independently to be able to run a LLaMA model.")
|
|||
(("\\$\\{VAD_TARGET\\} PROPERTIES LABELS \"base;en\"")
|
||||
"${VAD_TEST} PROPERTIES DISABLED true")))))))
|
||||
(native-inputs
|
||||
(list pkg-config))
|
||||
(list pkg-config shaderc))
|
||||
(inputs
|
||||
(list openblas sdl2 git))
|
||||
(list openblas sdl2 git spirv-headers spirv-tools
|
||||
vulkan-headers vulkan-loader))
|
||||
(synopsis "OpenAI's Whisper model in C/C++")
|
||||
(description
|
||||
"This package is a high-performance inference of OpenAI's
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue