Skip to main content

gk-diffuser

Image/video/audio generation GUI for GGUF diffusion models, packaged for Python — the diffusion half of the unified ggk package. The GUI runs in your browser against a local backend; each generation spawns the diffusion C/C++ CLI, compiled during pip install and bundled with the package as a single binary. The engine evaluates its graphs on gk, an independent tensor library — there is no ggml anywhere in the tree. Model files are referenced by filesystem path through a built-in file browser — nothing is uploaded or copied to temp storage.

Install

pip install gk-diffuser

Building the bundled engine requires a C/C++ toolchain and CMake ≥ 3.15 (on Windows: MSVC Build Tools). The engine source is resolved from the vendored vendor/diffusion copy (see scripts/vendor_engine.py) or GK_DIFFUSER_ENGINE_DIR. That tree is self-contained — it carries the gk kernels and the diffusion runtime with its own tokenizers and thirdparty — so the build compiles the CLI binary and nothing else.

The vendor/diffusion/gk kernels are shared verbatim with the gk-server package; both are vendored from the same unified ggk engine tree, so the two packages always compute with the same gk.

GPU and accelerator backends

The default build is CPU-only (on macOS, Metal is on by default — no flag needed). Backends are opt-in and can be requested with an environment variable or a CMake define — the env var is usually easier to pass through pip:

GK_DIFFUSER_CUDA=1   pip install gk-diffuser    # NVIDIA (needs the CUDA toolkit)
GK_DIFFUSER_HIP=1    pip install gk-diffuser    # AMD (needs ROCm/HIP)
GK_DIFFUSER_VULKAN=1 pip install gk-diffuser    # cross-vendor (needs the Vulkan SDK)

CMAKE_ARGS="-DGK_DIFFUSER_CUDA=ON" pip install gk-diffuser   # equivalent

Available: CUDA, HIP, VULKAN, METAL. Each option maps to the gk backend of the same name, and the finer-grained GK_* knobs (GK_NATIVE, GK_CUDA_ARCHITECTURES, …) can still be passed straight through as -DGK_<NAME>=….

A CUDA build works its own architecture list out from nvcc and the installed GPUs, and embeds PTX for the newest, so an unlisted card JITs rather than failing. A wheel built on one machine for another should still say what it targets, e.g. CMAKE_ARGS="-DGK_DIFFUSER_CUDA=ON -DGK_CUDA_ARCHITECTURES=89".

Run

gk-diffuser              # GUI on http://127.0.0.1:8643, opens the browser
python -m gk_diffuser    # same thing
gk-diffuser --port 0     # pick a free port; --no-browser to stay headless

The engine is directly scriptable from the CLI too:

gk-diffuser engine -- -m sd.gguf -p "a lighthouse at dusk" -o out.png
gk-diffuser engine -- --help

Metadata

Release files for gk-diffuser 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gk-diffuser 0.0.2
File Size Uploaded
gk_diffuser-0.0.2.tar.gz 28.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for gk-diffuser 0.0.2
File Interpreter ABI Platform
gk_diffuser-0.0.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details

Total release size: 63.9 MB

Release files / gk_diffuser-0.0.2.tar.gz

Download URL gk_diffuser-0.0.2.tar.gz
Size 28.9 MB
Tags Source
SHA-256 checksum
How to use checksums
d271a7b5afca28029f5bb342eac8f91b380a62369fb5929a1dae4761642f6da8
BLAKE2b-256 checksum
How to use checksums
50a441a36330ec54406154ce1e15aa20d6d15603bc3d686e12bdfd76ff55ef7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / gk_diffuser-0.0.2-py3-none-win_amd64.whl

Download URL gk_diffuser-0.0.2-py3-none-win_amd64.whl
Size 35.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
2b93a6102213f929436f2c39e2ada40f1745b15ced70993ca10f3667c1bd0982
BLAKE2b-256 checksum
How to use checksums
ba6e97407e833596bedd7dea924e21e80ea982eed1862ba92db55c506bc88e3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page