Subject: [bug#65284] [PATCH v3] gnu: Add ggml

From: Andy Tai <[email-masked]>
Date: Sun, 17 Dec 2023 16:37:21 -0800

* gnu/packages/machine-learning.scm (ggml): New variable

Change-Id: I9de46fb537262089cf9d548fab056a2a55279b23
---
 gnu/packages/machine-learning.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index c100e0be6e..5d144961c7 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -5038,3 +5038,30 @@ (define-public oneapi-dnnl
      "OneAPI Deep Neural Network Library (oneDNN) is a cross-platform
 performance library of basic building blocks for deep learning applications.")
     (license license:asl2.0)))
+
+
+(define-public ggml
+  (let ((commit "6b846cbde81ae02cd3e363311180ae706091933e")
+        (version "0.1.0")
+        (revision "1"))
+    (package
+      (name "ggml")
+      (version (git-version version revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/ggerganov/ggml")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "02s3rrns0nw2d3321wizpy9qgc4w7vl604kql5s77srz6lr9km0b"))))
+      (build-system cmake-build-system)
+      (home-page "https://ggml.ai/")
+      (synopsis "Tensor library for machine learning")
+      (description
+       "ggml is a tensor library for machine learning to enable large models and
+high performance on commodity hardware.  It is used by llama.cpp and whisper.cpp.")
+      (license license:expat))))
+
+

base-commit: 6ab242609daec00e8bd54f7bff54557c92695724
-- 
2.41.0