Subject: [bug#63656] [PATCH] gnu: llama-cpp: Update to commit 2e6cd4b

From: Andy Tai <[email-masked]>
Date: Mon, 22 May 2023 22:57:44 -0700

* gnu/packages/machine-learning.scm (llama-cpp): Update to commit 2e6cd4b
---
 gnu/packages/machine-learning.scm | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 269bfd4459..b3d74bda48 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -405,7 +405,7 @@ (define-public guile-aiscm-next
   (deprecated-package "guile-aiscm-next" guile-aiscm))
 
 (define-public llama-cpp
-  (let ((commit "3cd8dde0d1357b7f11bdd25c45d5bf5e97e284a0")
+  (let ((commit "2e6cd4b02549e343bef3768e6b946f999c82e823")
         (revision "0"))
     (package
       (name "llama-cpp")
@@ -418,7 +418,7 @@ (define-public llama-cpp
                (commit (string-append "master-" (string-take commit 7)))))
          (file-name (git-file-name name version))
          (sha256
-          (base32 "0i7c92cxqs31xklrn688978kk29agivgxjgvsb45wzm65gc6hm5c"))))
+          (base32 "0pyia26czpqdyncgx18j639xjxx02m1c5x4iwzqv5y09y5xkfdjp"))))
       (build-system cmake-build-system)
       (arguments
        (list
@@ -446,11 +446,8 @@ (define-public llama-cpp
                       (chmod (string-append bin script) #o555)))
                   (mkdir-p bin)
                   (make-script "convert-pth-to-ggml")
-                  (make-script "convert-gptq-to-ggml")
-                  (make-script "quantize.py")
-                  (substitute* (string-append bin "quantize.py")
-                    (("os\\.getcwd\\(\\), quantize_script_binary")
-                     (string-append "\"" bin "\", quantize_script_binary"))))))
+                  (make-script "convert-lora-to-ggml")
+                  (make-script "convert"))))
             (add-after 'install-python-scripts 'wrap-python-scripts
               (assoc-ref python:%standard-phases 'wrap))
             (replace 'install

base-commit: e3d3501f73333face5715383c925a9cba2f0772b
prerequisite-patch-id: 40c26bda63a766b003facd4969c98c45046cbf12
-- 
2.40.1