diff options
| author | techchud <protrude_paying969@simplelogin.com> | 2025-10-14 01:34:52 -0500 | 
|---|---|---|
| committer | techchud <protrude_paying969@simplelogin.com> | 2025-10-14 01:34:52 -0500 | 
| commit | 8f7f989acc521753b00a199419a01822e7e7d8ed (patch) | |
| tree | 721348c2d361540d7066286cc0de24cff5820793 /machinelearning.scm | |
| parent | 69d27b527352e896d28b32f5447bec7485ba6e4f (diff) | |
| download | guix-techchud-8f7f989acc521753b00a199419a01822e7e7d8ed.tar.gz guix-techchud-8f7f989acc521753b00a199419a01822e7e7d8ed.tar.bz2 guix-techchud-8f7f989acc521753b00a199419a01822e7e7d8ed.zip | |
remove kolbold.cpp, poetry, and python-gguf
Diffstat (limited to 'machinelearning.scm')
| -rw-r--r-- | machinelearning.scm | 134 | 
1 files changed, 0 insertions, 134 deletions
| diff --git a/machinelearning.scm b/machinelearning.scm index e0d1f23..60ff988 100644 --- a/machinelearning.scm +++ b/machinelearning.scm @@ -52,26 +52,7 @@                 #:use-module (guix utils)                 ) -(define-public python-poetry-core-1.9.0 -               (package -                 (inherit python-poetry-core) -                 (name "python-poetry-core") -                 (version "1.9.0") -                 )) -(define-public poetry-1.8.2 -               (package -                 (inherit poetry) -                 (name "poetry") -                 (version "1.8.2") -                 )) - -(define-public poetry-1.3 -               (package -                 (inherit poetry) -                 (name "poetry") -                 (version "1.3") -                 ))  (define-public python-installer                 (package @@ -454,121 +435,6 @@                   (description "CLBlast is a lightweight, performant and tunable OpenCL BLAS library written in C++11. It is designed to leverage the full performance potential of a wide variety of OpenCL devices from different vendors, including desktop and laptop GPUs, embedded GPUs, and other accelerators. CLBlast implements BLAS routines: basic linear algebra subprograms operating on vectors and matrices. See the CLBlast website for performance reports on some devices.")                   (license license:asl2.0))) -(define-public kobold-cpp -               (package -                 (name "kobold-cpp") -                 (version "1.76") -                 (source -                   (origin -                     (method git-fetch) -                     (uri (git-reference -                            (url "https://github.com/LostRuins/koboldcpp.git") -                            (commit (string-append "v" version)) -                            )) -                     (file-name (git-file-name name version)) -                     (sha256 -                       (base32 "155207vyxl2gh156gf0zs6ylkixrgr563cdfzkapcdhzj9lpsdfk")) -                     )) -                 (build-system gnu-build-system) -                 (arguments -                   (list -                     #:make-flags -                     #~(list  -                         "LLAMA_OPENBLAS=1" -                         "LLAMA_CLBLAST=1" -                         "LLAMA_VULKAN=1" -                         (string-append "CC=" #$(cc-for-target)) -                         ) -                     #:modules '((ice-9 textual-ports) -                                 (guix build utils) -                                 ((guix build python-build-system) #:prefix python:) -                                 (guix build gnu-build-system)) -                     #:imported-modules `(,@%default-gnu-imported-modules -                                           (guix build python-build-system)) - - -                     #:phases -                     #~(modify-phases %standard-phases -                                      ;(add-after 'unpack 'disable-unrunable-tests -                                      ;  ;; test-eval-callback downloads ML model from network, cannot -                                      ;  ;; run in Guix build environment -                                      ;  (lambda _ -                                      ;    (substitute* '("examples/eval-callback/CMakeLists.txt") -                                      ;      (("add_test") "#add_test")) -                                      ;    (substitute* '("examples/eval-callback/CMakeLists.txt") -                                      ;      (("set_property") "#set_property")))) -                                      (add-after 'build 'install-python-scripts -                                                 (lambda _ -                                                   (let ((bin (string-append #$output "/bin/"))) -                                                     (define (make-script script) -                                                       (let ((suffix (if (string-suffix? ".py" script) "" ".py"))) -                                                         (call-with-input-file -                                                           (string-append script suffix) -                                                           (lambda (input) -                                                             (call-with-output-file (string-append bin script) -                                                                                    (lambda (output) -                                                                                      (format output "#!~a/bin/python3\n~a" -                                                                                              #$(this-package-input "python") -                                                                                              (get-string-all input)))))) -                                                         (chmod (string-append bin script) #o555))) -                                                     (make-script "koboldcpp.py") -                                                     ;(make-script "convert-hf-to-gguf") -                                                     ;(make-script "convert-llama-ggml-to-gguf") -                                                     ;(make-script "convert-hf-to-gguf-update.py") -                                                     ))) -                                      (add-after 'build 'install-compiled -                                                 (lambda _  -                                                   (mkdir-p (string-append #$output "/lib")) -                                                   (mkdir-p (string-append #$output "/bin")) -                                                   (for-each (lambda (f)  -                                                               (install-file f (string-append #$output "/lib"))) (find-files "." "\\.so$")) -                                                   (for-each (lambda (f)  -                                                               (install-file f (string-append #$output "/bin"))) (find-files "." "\\.py$")))) -                                      ;(add-after 'install-compiled 'wrap-python-scripts -                                      ;           ;(assoc-ref python:%standard-phases 'wrap) -                                      ;           (add-after 'wrap-python-scripts 'wrap-for-local-libs -                                      ;                      (lambda _ -                                      ;                        (wrap-program (string-append #$output "/bin/koboldcpp.py") -                                      ;                                      '("PATH" ":" suffix (string-append #$output "/lib/"))) -                                      ;                        ) -                                      ;                      ) -                                      (delete 'configure) -                                      (delete 'check) -                                      (delete 'install) ;Only running "make" is necssary for install. -                                      ))) -                 (inputs (list python)) -                 (native-inputs (list pkg-config gcc-toolchain)) -                 (propagated-inputs -                   (list python-numpy python-pytorch python-sentencepiece openblas clblast opencl-clhpp opencl-icd-loader vulkan-headers vulkan-loader python-gguf python-customtkinter findutils)) -                 (properties '((tunable? . #true))) ;use AVX512, FMA, etc. when available -                 (home-page "https://github.com/lostruins/koboldcpp") -                 (synopsis " A simple one-file way to run various GGML and GGUF models with a KoboldAI UI.") -                 (description "KoboldCpp is an easy-to-use AI text-generation software for GGML and GGUF models, inspired by the original KoboldAI. It's a single self-contained distributable from Concedo, that builds off llama.cpp, and adds a versatile KoboldAI API endpoint, additional format support, Stable Diffusion image generation, speech-to-text, backward compatibility, as well as a fancy UI with persistent stories, editing tools, save formats, memory, world info, author's note, characters, scenarios and everything KoboldAI and KoboldAI Lite have to offer.") -                 (license license:agpl3))) -(define-public python-gguf -               (package -                 (name "python-gguf") -                 (version "0.9.1") -                 (source -                   (origin -                     (method url-fetch) -                     (uri (pypi-uri "gguf" version)) -                     (sha256 -                       (base32 "0fyk7x6b2a7xjmf3q7zb61ik1yrk80xm7xx9yr2wa6avw63hkrzm")))) -                 (build-system pyproject-build-system) -                 (arguments -                   '( #:phases -                      (modify-phases %standard-phases -                                     (delete 'check)  ;#TODO: see why this is broke -                                     (delete 'sanity-check) ;TODO: Fix broken sanity-check -                                     ))) -                 (native-inputs (list poetry)) -                 (propagated-inputs (list python-numpy python-tqdm)) -                 (home-page "https://ggml.ai") -                 (synopsis "Read and write ML models in GGUF for GGML") -                 (description "Read and write ML models in GGUF for GGML.") -                 (license #f))) -  (define-public python-darkdetect                 (package                   (name "python-darkdetect") | 
