diff options
author | msglm <msglm@techchud.xyz> | 2024-03-30 06:36:09 -0500 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2024-03-30 06:36:09 -0500 |
commit | b8777cb0e04a51cb3cdca7107337296ac1d0ccdf (patch) | |
tree | 90c9e0f855a005a35f7e9597aa4467739f1dfaf0 /stablediffusion.scm | |
parent | 1e271104036d32b9de3de6bf37ddfb47b958a9f3 (diff) | |
download | guix-msglm-b8777cb0e04a51cb3cdca7107337296ac1d0ccdf.tar.gz guix-msglm-b8777cb0e04a51cb3cdca7107337296ac1d0ccdf.tar.bz2 guix-msglm-b8777cb0e04a51cb3cdca7107337296ac1d0ccdf.zip |
add stable diffusion cpp
Diffstat (limited to 'stablediffusion.scm')
-rw-r--r-- | stablediffusion.scm | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/stablediffusion.scm b/stablediffusion.scm new file mode 100644 index 0000000..ea9dd09 --- /dev/null +++ b/stablediffusion.scm @@ -0,0 +1,46 @@ +(define-module (stablediffusion) + #:use-module (guix build-system cmake) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (guix gexp) + #:use-module (guix download) + #:use-module ((guix licenses) :prefix license:) + #:use-module (gnu packages python) + #:use-module (gnu packages golang) + #:use-module (gnu packages maths) + #:use-module (gnu packages golang) + #:use-module (gnu packages golang-xyz) + #:use-module (gnu packages machine-learning) + + #:use-module (gnu packages version-control) + #:use-module (golang) + ) +(define-public stable-diffusion-cpp + (package + (name "stable-diffusion-cpp") + (version "48bcce493f45a11d9d5a4c69943d03ff919d748f") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/leejet/stable-diffusion.cpp.git") + (recursive? #t) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1sx0y3b2bz9b5nqmav4g0hrsxinih3scyywy3zam8ywamcfpvww1")))) + (build-system cmake-build-system) + (inputs (list openblas)) + (arguments + '( + #:tests? #f + ;#:cmake "--config Release" + ;#:configure-flags "-DSD_CUBLAS=ON -DGGML_OPENBLAS=ON --config Release" + #:configure-flags (list "-DGGML_OPENBLAS=ON --config Release") + ) + ) + (home-page "https://github.com/leejet/stable-diffusion.cpp") + (synopsis "Inference of Stable Diffusion in pure C/C++") + (description "Inference of Stable Diffusion in pure C/C++") + (license license:expat))) |