Subject: [PATCH] Update llama-cpp hashes to latest version and add new script names
From: John Fremlin <[email-masked]>
To: [email-masked]
Cc: John Fremlin <[email-masked]>
Date: Tue, 13 Feb 2024 10:32:12 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Change-Id: I9f5474606dd01be73fbc50813250991e9d248d85
---
 gnu/packages/machine-learning.scm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 2e20872555..53e152a88f 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -522,7 +522,7 @@ (define-public guile-aiscm-next
   (deprecated-package "guile-aiscm-next" guile-aiscm))
 
 (define-public llama-cpp
-  (let ((commit "f31b5397143009d682db90fd2a6cde83f1ef00eb")
+  (let ((commit "03bf161eb6dea6400ee49c6dc6b69bdcfa9fd3fc")
         (revision "0"))
     (package
       (name "llama-cpp")
@@ -532,10 +532,10 @@ (define-public llama-cpp
          (method git-fetch)
          (uri (git-reference
                (url "https://github.com/ggerganov/llama.cpp")
-               (commit (string-append "master-" (string-take commit 7)))))
+               (commit commit)))
          (file-name (git-file-name name version))
          (sha256
-          (base32 "0ys6n53n032zq1ll9f3vgxk8sw0qq7x3fi7awsyy13adzp3hn08p"))))
+          (base32 "1ag1jash84hasz10h0piw72a8ginm8kzvhihbzzljz96gq2kjm88"))))
       (build-system cmake-build-system)
       (arguments
        (list
@@ -562,8 +562,10 @@ (define-public llama-cpp
                                       (get-string-all input))))))
                       (chmod (string-append bin script) #o555)))
                   (mkdir-p bin)
-                  (make-script "convert-pth-to-ggml")
+                  (make-script "convert-hf-to-gguf")
+                  (make-script "convert-llama-ggml-to-gguf")
                   (make-script "convert-lora-to-ggml")
+                  (make-script "convert-persimmon-to-gguf")
                   (make-script "convert"))))
             (add-after 'install-python-scripts 'wrap-python-scripts
               (assoc-ref python:%standard-phases 'wrap))

base-commit: ffc7650c11fd7c4b9f7b4894f8e0a451e0e49063
-- 
2.41.0