guix-epistemia

Personal Guix channel
Log | Files | Refs

commit e0d8018e643aeb12e66450f295df85e17ff634ac
parent 65fb32365c58dd45218893e13a229850f2407852
Author: Vineet Kumar <git@vineetk.net>
Date:   Sun, 22 Nov 2026 13:50:40 +0100

packages/machine-learning: bump llama-cpp-rocm to b12632 from b12373/v1.0.0

Diffstat:
Mepistemia/packages/machine-learning.scm | 31++++++++++++++++++++++++++-----
1 file changed, 26 insertions(+), 5 deletions(-)

diff --git a/epistemia/packages/machine-learning.scm b/epistemia/packages/machine-learning.scm @@ -82,7 +82,8 @@ (properties `((amd-gpu-targets . ,%default-amd-gpu-targets))))) (define-public llama-cpp-rocm - (let ((tag "b12373")) + (let ((tag "b12632") + (ui-build "12631")) (package (inherit llama-cpp) (name "llama-cpp-rocm") @@ -95,7 +96,7 @@ (commit tag))) (file-name (git-file-name name tag)) (sha256 - (base32 "0av95i8na29mh7jg5jl8v22k6bxhrzpwn0b0s73inlspwhf97nvw")) + (base32 "1zannb5b2d1hrifzcr2s13sy9i9r4g39paxwhywamp0facjnkv7h")) (patches (list (plain-file "pulpie-eurobert.patch" "\ diff --git a/src/models/eurobert.cpp b/src/models/eurobert.cpp index 7a42f0dbf..9047f1b97 100644 @@ -143,13 +144,33 @@ index 7a42f0dbf..9047f1b97 100644 #~(append #$flags '(;; CMAKE_HIP_FLAGS is to workaround regression in ROCm 7.2 "-DCMAKE_HIP_FLAGS=\"-mllvm --amdgpu-unroll-threshold-local=600\"" - #$(string-append "-DGPU_TARGETS=" (current-amd-gpu-targets-string))))) + #$(string-append "-DGPU_TARGETS=" (current-amd-gpu-targets-string)) + "-DLLAMA_BUILD_TESTS=OFF" + "-DLLAMA_USE_PREBUILT_UI=OFF"))) ((#:phases phases) #~(modify-phases #$phases - (delete 'fix-python-shebang))))) + (delete 'fix-python-shebang) + ;; upstream moved webui from tools/ui to ui/apps/chat + (delete 'get-ui) + (add-after 'unpack 'get-ui + (lambda _ + (let ((dist "ui/apps/chat/dist")) + (mkdir-p dist) + (invoke "tar" "xf" + #$(this-package-input "ui.tar.gz") + "-C" dist "--strip-components=1")))))))) (inputs (modify-inputs (package-inputs llama-cpp) - (replace "ggml" ggml-rocm)))))) + (replace "ggml" ggml-rocm) + (replace "ui.tar.gz" + (origin + (method url-fetch) + (uri (string-append + "https://github.com/ggml-org/llama.cpp/releases/download/b" + ui-build "/llama-b" ui-build "-ui.tar.gz")) + (file-name "ui.tar.gz") + (sha256 + (base32 "0iwpb2595q0w2859paph0jmf29n3sz283yl6xhzfh9a37wygi63y"))))))))) (define-public stable-diffusion-cpp-rocm (package