gnu: Add python-gguf-llama-cpp.

* gnu/packages/machine-learning.scm (python-gguf-llama-cpp): New variable.

Change-Id: I1c1b5f5956e3acb380b56816d180f53243b741fa
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
This commit is contained in:
Morgan Smith 2025-03-31 18:50:46 -04:00 committed by Danny Milosavljevic
parent 171c62a96d
commit 0a2521e3ed
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -7116,6 +7116,21 @@ performance library of basic building blocks for deep learning applications.")
(description "A Python library for reading and writing GGUF & GGML format ML models.")
(license license:expat)))
(define-public python-gguf-llama-cpp
(package/inherit python-gguf
(version "0.16.0")
(source (package-source llama-cpp))
(propagated-inputs (list python-numpy python-pyyaml python-sentencepiece
python-tqdm))
(native-inputs (list python-poetry-core))
(arguments
(substitute-keyword-arguments (package-arguments python-gguf)
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(add-after 'unpack 'chdir
(lambda _
(chdir "gguf-py")))))))))
(define-public python-gymnasium
(package
(name "python-gymnasium")