guix-epistemia

Personal Guix channel
Log | Files | Refs

commit 6dc14eccb88e4bcb9b083974a38d5fc1d1b5f9d4
parent 120ddeccd153782de13e66c4abecafed38e800b5
Author: Vineet Kumar <git@vineetk.net>
Date:   Sun, 17 May 2026 16:56:56 -0400

packages/machine-learning: update llama-cpp-rocm to honorary b9203

no tags yet after b9198. two commits after that improves mtp=on pp
speed, so might as well use latest commit as of right now.

Diffstat:
Mepistemia/packages/machine-learning.scm | 21++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/epistemia/packages/machine-learning.scm b/epistemia/packages/machine-learning.scm @@ -16,7 +16,7 @@ #:use-module (gnu packages rocm-libs)) (define-public llama-cpp-rocm - (let ((tag "b9082")) + (let ((tag "87589042cac2c390cec8d68fb2fad64e0a2a252a")) (package (inherit llama-cpp) (name "llama-cpp-rocm") @@ -25,28 +25,31 @@ (origin (method git-fetch) (uri (git-reference - (url "https://github.com/ggml-org/llama.cpp") - (commit tag))) + (url "https://github.com/ggml-org/llama.cpp") + (commit tag))) (file-name (git-file-name name tag)) (sha256 - (base32 "1y1qf4ig4xziyrx1vp87s7v1c2zs475l59yfx4ld5f2gpmibazgy")))) + (base32 "08q6k02rrrzizhlhfyw3bdqq03vrl6yaz8h91i5zach26ck01c3k")))) (arguments (substitute-keyword-arguments (package-arguments llama-cpp) ((#:configure-flags flags #~'()) #~(append #$flags '(;; CMAKE_HIP_FLAGS is to workaround regression in ROCm 7.2 "-DCMAKE_HIP_FLAGS=\"-mllvm --amdgpu-unroll-threshold-local=600\"" - "-DGPU_TARGETS=gfx1100"))) + "-DGPU_TARGETS=gfx1100" + ;; temporarily disable webui building until I figure out how to add second source for hf bucket + "-DLLAMA_USE_PREBUILT_UI=OFF" "-DLLAMA_BUILD_UI=OFF"))) ((#:phases phases) #~(modify-phases #$phases - ;; the test-chat test got two new extra lines that need to be removed + ;; mtp added test that also needs internet for downloading its model (add-after 'fix-tests 'fix-tests-new (lambda _ (substitute* "tests/CMakeLists.txt" - (("target_include_directories\\(test-chat PRIVATE.*") + (("llama_build_and_test\\(test-recurrent-state-rollback\\.cpp .*") "") - (("target_link_libraries\\(test-chat PRIVATE.*") - "")))))))) + (("set_tests_properties\\(test-recurrent-state-rollback PROPERTIES.*") + "")))) + (delete 'fix-python-shebang))))) (inputs (modify-inputs (package-inputs llama-cpp) (replace "ggml" ggml-rocm))))))