summaryrefslogtreecommitdiff
path: root/gnu/packages/machine-learning.scm
diff options
context:
space:
mode:
authorterramorpha <terramorpha@cock.li>2026-03-18 14:53:43 -0400
committerCayetano Santos <csantosb@inventati.org>2026-03-19 10:45:57 +0100
commit3d0900d0e6b12a2be0de16a9bb04fb72cdd7910c (patch)
treec209015fe9cc89b939c53e579e65e07dc6cadc55 /gnu/packages/machine-learning.scm
parentae680db2770e39d41441ebf874bc44f27dc9a207 (diff)
gnu: llama-cpp: Update to 0.0.0-b8411.
* gnu/packages/machine-learning.scm (llama-cpp): Update to 0.0.0-b8411. [arguments]: Update ’fix-tests and ’remove-tests #:phases. Merges guix/guix!7254 Change-Id: I9e05bc4962cfc69be2c91b6f0df9d576a740e9ca Signed-off-by: Cayetano Santos <csantosb@inventati.org> Modified-by: Cayetano Santos <csantosb@inventati.org>
Diffstat (limited to 'gnu/packages/machine-learning.scm')
-rw-r--r--gnu/packages/machine-learning.scm39
1 files changed, 21 insertions, 18 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 70fda1a60c5..9eccf22cf5c 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -832,7 +832,7 @@ NumPy @code{dtype} extensions used in machine learning libraries, including:
(license license:asl2.0)))
(define-public llama-cpp
- (let ((tag "b8054")) ;sync with ggml/scripts/sync-llama.last
+ (let ((tag "b8411")) ;sync with ggml
(package
(name "llama-cpp")
(version (string-append "0.0.0-" tag))
@@ -844,7 +844,7 @@ NumPy @code{dtype} extensions used in machine learning libraries, including:
(commit tag)))
(file-name (git-file-name name tag))
(sha256
- (base32 "0kwcgpilqh0583v3ilrm7h6l0z125b730h1gv20rin0rxbwlg0jw"))))
+ (base32 "1smgl6s3cpa3rg97201rsvb8cyydypqmm1zi42gwaf8w2719r8gp"))))
(build-system cmake-build-system)
(arguments
(list
@@ -874,25 +874,29 @@ NumPy @code{dtype} extensions used in machine learning libraries, including:
(substitute* '("tests/CMakeLists.txt")
(("llama_build_and_test\\(test-thread-safety.cpp.*")
"")
- (("test-download-model COMMAND")
- "test-download-model COMMAND true")
- (("llama_build_and_test\\(test-state-restore-fragmented.cpp.*")
+ (("set_tests_properties\\(test-thread-safety.*")
"")
- (("llama_build_and_test\\(test-eval-callback-download-model.cpp.*")
+ (((string-append "llama_build_and_test\\"
+ "(test-state-restore-fragmented.cpp.*"))
"")
- (("llama_build_and_test\\(test-eval-callback.cpp.*")
+ (("set_tests_properties\\(test-state-restore-fragmented.*")
"")
- (("llama_build_and_test\\(test-chat.cpp.*")
+ (((string-append "llama_build_and_test\\"
+ "(test-eval-callback-download-model.cpp.*"))
"")
- (("set_tests_properties\\(test-thread-safety.*")
+ (((string-append "set_tests_properties\\"
+ "(test-eval-callback-download-model.*"))
"")
- (("set_tests_properties\\(test-download-model.*")
+ (("llama_build_and_test\\(test-eval-callback.cpp.*")
"")
- (("set_tests_properties\\(test-state-restore-fragmented.*")
+ (("set_tests_properties\\(test-eval-callback.*")
"")
- (("set_tests_properties\\(test-eval-callback-download-model.*")
+ (("llama_build_and_test\\(test-llama-archs.cpp.*")
"")
- (("set_tests_properties\\(test-eval-callback.*")
+ (("set_tests_properties\\(test-download-model.*")
+ (string-append "set_tests_properties(test-download-model "
+ " PROPERTIES DISABLED TRUE)"))
+ (("llama_build_and_test\\(test-chat.cpp.*")
"")
;; error while handling argument "-m": expected value for
;; argument
@@ -911,11 +915,10 @@ NumPy @code{dtype} extensions used in machine learning libraries, including:
(add-after 'install 'wrap-python-scripts
(assoc-ref python:%standard-phases 'wrap))
(add-after 'install 'remove-tests
- (lambda* (#:key outputs #:allow-other-keys)
- (for-each delete-file (find-files
- (string-append (assoc-ref outputs "out")
- "/bin")
- "^test-")))))))
+ (lambda _
+ (for-each delete-file
+ (find-files (string-append #$output "/bin")
+ "^test-")))))))
(inputs
(list curl ggml glslang python-gguf python-minimal spirv-headers
spirv-tools vulkan-headers vulkan-loader openssl))