Subject: [PATCH] gnu: Add ggml

From: Andy Tai <[email-masked]>
Date: Mon, 14 Aug 2023 01:26:39 -0700

* gnu/packages/machine-learning.scm (ggml): New variable
---
 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 c32180615b..8d89ef2208 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -4801,3 +4801,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 "95b559dbae6a25b2a7e26ab5989c1538387225e9")
+        (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
+                  "06x3aa6071f7r69lyipn8agzqryh0c4b6zs5mma7c0r8ixbjb3ly"))))
+      (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: b15381460ed74e72792ff182dd2ca7a06ba59b0c
-- 
2.41.0