summaryrefslogtreecommitdiffstats
path: root/stablediffusion.scm
diff options
context:
space:
mode:
Diffstat (limited to 'stablediffusion.scm')
-rw-r--r--stablediffusion.scm46
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)))