mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: llama-cpp: Use OpenBLAS.
For faster prompt processing, OpenBLAS is recommended by https://github.com/ggerganov/llama.cpp * gnu/packages/machine-learning.scm (llama-cpp)[arguments]: Add #:configure-flags. [native-inputs]: Add pkg-config. [propagated-inputs]: Add openblas. Change-Id: Iaf6f22252da13e2d6f503992878b35b0da7de0aa Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
parent
227dee63b0
commit
d8a63bbcee
1 changed files with 4 additions and 1 deletions
|
@ -541,6 +541,8 @@ (define-public llama-cpp
|
|||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:configure-flags
|
||||
'(list "-DLLAMA_BLAS=ON" "-DLLAMA_BLAS_VENDOR=OpenBLAS")
|
||||
#:modules '((ice-9 textual-ports)
|
||||
(guix build utils)
|
||||
((guix build python-build-system) #:prefix python:)
|
||||
|
@ -575,8 +577,9 @@ (define (make-script script)
|
|||
(lambda _
|
||||
(copy-file "bin/main" (string-append #$output "/bin/llama")))))))
|
||||
(inputs (list python))
|
||||
(native-inputs (list pkg-config))
|
||||
(propagated-inputs
|
||||
(list python-numpy python-pytorch python-sentencepiece))
|
||||
(list python-numpy python-pytorch python-sentencepiece openblas))
|
||||
(home-page "https://github.com/ggerganov/llama.cpp")
|
||||
(synopsis "Port of Facebook's LLaMA model in C/C++")
|
||||
(description "This package provides a port to Facebook's LLaMA collection
|
||||
|
|
Loading…
Reference in a new issue