guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 5af99e153d38a9c604e74627861b67f5ad3bd293
Author: Cayetano Santos <[email protected]>
AuthorDate: Wed Feb 11 08:14:51 2026 +0100

    gnu: llama-cpp: Unbundle ggml.
    
    * gnu/packages/machine-learning.scm (llama-cpp)[inputs]: Add ggml.
    [arguments]<#:configure-flags>: Set accordingly.
    
    Change-Id: I30299ccab727f5a242eeb5437cb4b7e581e2b47d
---
 gnu/packages/machine-learning.scm | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index c8f7e8727c..98008eb3b7 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -924,24 +924,14 @@ training, HMM clustering, HMM mixtures.")
       (arguments
        (list
         #:configure-flags
-        #~(list #$(string-append "-DGGML_BUILD_NUMBER=" tag)
-                "-DBUILD_SHARED_LIBS=ON"
-                "-DGGML_VULKAN=ON"
-                "-DGGML_BLAS=ON"
-                "-DGGML_BLAS_VENDOR=OpenBLAS"
+        #~(list "-DBUILD_SHARED_LIBS=ON"
                 (string-append "-DBLAS_INCLUDE_DIRS="
                                #$(this-package-input "openblas")
                                "/include")
                 (string-append "-DBLAS_LIBRARIES="
                                #$(this-package-input "openblas")
                                "/lib/libopenblas.so")
-
-                "-DGGML_NATIVE=OFF" ;no '-march=native'
-                "-DGGML_FMA=OFF"    ;and no '-mfma', etc.
-                "-DGGML_AVX2=OFF"
-                "-DGGML_AVX512=OFF"
-                "-DGGML_AVX512_VBMI=OFF"
-                "-DGGML_AVX512_VNNI=OFF")
+                "-DLLAMA_USE_SYSTEM_GGML=ON")
 
         #:modules '((ice-9 textual-ports)
                     (guix build utils)
@@ -1009,7 +999,7 @@ training, HMM clustering, HMM mixtures.")
                                                       "/bin")
                                        "^test-")))))))
       (inputs
-       (list curl glslang python-gguf python-minimal openblas spirv-headers
+       (list curl ggml glslang python-gguf python-minimal openblas 
spirv-headers
              spirv-tools vulkan-headers vulkan-loader openssl))
       (native-inputs
        (list bash-minimal pkg-config python-minimal-wrapper shaderc))

Reply via email to