guix-epistemia

Personal Guix channel
Log | Files | Refs

commit c5dc7e166558e423af51273e99bded5ea5ab5329
parent 2ef27c44dfa6480fe69f72886dd91ad151cb2f3e
Author: Vineet Kumar <git@vineetk.net>
Date:   Sat, 14 Nov 2026 22:22:29 +0100

packages/machine-learning: drop python-pytorch-rocm

no longer doing my previous research since graduating and current
classes don't need it.

if my later classes do somehow need pytorch, I guess I can try
re-adding it. I also haven't checked the status of pytorch-rocm for
many months so maybe it's already there or would be by the time I
need it again?

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

diff --git a/epistemia/packages/machine-learning.scm b/epistemia/packages/machine-learning.scm @@ -21,64 +21,6 @@ #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz)) -(define-public python-pytorch-rocm - (package/inherit python-pytorch-avx - (name "python-pytorch-rocm") - (inputs - (modify-inputs inputs - ;; these need to be manually specified (and not as a dependency of another package) so that - ;; cmake can find them - (append rocrand - hiprand - rocblas - hipblas - hipblas-common - hipfft - hipsparse - rocprim - hipcub - rocthrust - hipsolver - rocsolver - hipblaslt - rccl - rocm-hip-runtime - rocm-toolchain - miopen - ;;composable-kernel - roctracer) - (delete gloo))) - (arguments - (substitute-keyword-arguments arguments - ((#:phases phases) - #~(modify-phases #$phases - (add-before 'build 'set-rocm-env - (lambda* (#:key inputs #:allow-other-keys) - (setenv "USE_ROCM" "1") - (setenv "ROCM_PATH" (assoc-ref inputs "rocm-hip-runtime")) - (setenv "PYTORCH_ROCM_ARCH" #$(current-amd-gpu-targets-string)) - (setenv "USE_GLOO" "0") ; needs its own gloo-hip package - ;; TODO fix flash attention? - (setenv "USE_FBGEMM_GENAI" "0") - (setenv "USE_FLASH_ATTENTION" "0") - (setenv "USE_MEM_EFF_ATTENTION" "0") - (setenv "USE_ROCM_CK_SDPA" "0") - (setenv "USE_ROCM_CK_GEMM" "0"))) - ;; necessary for ATen - (add-after 'set-rocm-env 'build-amd - (lambda _ - ;; skip fbgemm stuff because it's in a different package - (setenv "FBCODE_BUILD_TOOL" "buck") - (invoke "python3" "tools/amd_build/build_amd.py"))) - ;; TODO fix flash attention? - ;; (add-after 'build-amd 'fix-aten-rocm-fa - ;; (lambda _ - ;; (substitute* "aten/src/ATen/CMakeLists.txt" - ;; (("third_party/composable_kernel") - ;; (string-append "//" #$(this-package-input "composable-kernel")))))) - )))) - (supported-systems '("x86_64-linux")))) - (define-public llama-cpp-rocm (let ((tag "b12373")) (package