Skip to main content

gguf-diffusion

Image generation GUI for GGUF diffusion models, packaged for Python. The GUI runs in your browser against a local server; generation is done by the diffusion.cpp engine, compiled during pip install and bundled with the package as a single binary. Model and image files are referenced by filesystem path through a built-in file browser — nothing is uploaded or copied to temp storage.

Install

pip install gguf-diffusion

Building the bundled engine requires a C/C++ toolchain and CMake ≥ 3.15 (on Windows: MSVC Build Tools). The engine source is resolved from a sibling ../diffusion checkout, a vendored vendor/diffusion copy (see scripts/vendor_engine.py), or GGUF_DIFFUSION_ENGINE_DIR. GPU backends are opt-in at build time via the engine's own options:

CMAKE_ARGS="-DSD_CUDA=ON"    pip install gguf-diffusion   # NVIDIA (CUDA toolkit)
CMAKE_ARGS="-DSD_HIPBLAS=ON" pip install gguf-diffusion   # AMD (ROCm/HIP)
CMAKE_ARGS="-DSD_METAL=ON"   pip install gguf-diffusion   # Apple (macOS)
CMAKE_ARGS="-DSD_VULKAN=ON"  pip install gguf-diffusion   # Vulkan

Usage

python -m gguf_diffusion             # launch the GUI in the browser
gguf-diffusion                       # same
gguf-diffusion --port 8643 --no-browser

GUI features (as in the desktop app's diffusion panel):

  • txt2img with the full model stack: --model / --diffusion-model, VAE, external text encoders (--clip_l, --t5xxl, --llm, …), additional models (ControlNet, TAESD, upscaler, PhotoMaker, …), tokenizer packs
  • image inputs: init image (img2img), mask (inpainting), end frame, control image, reference images
  • sampling controls: CFG scale, steps, size, seed, batch count, all engine sampling methods and schedules, flash attention, low-VRAM flags
  • live progress and engine log, output gallery, saved workflows (localStorage + JSON export/import), copyable/editable CLI command

Engine CLI passthrough (runs the bundled diffusion binary):

python -m gguf_diffusion engine -- --diffusion-model model.gguf -p "a cat" -o cat.png
gguf-diffusion engine -- --help

How it works

  • pip install compiles the diffusion.cpp engine (static libdiffusion + static ggml linked into one CLI executable) via scikit-build-core and installs it into the package's bin/ directory.
  • gguf-diffusion starts a stdlib HTTP server (default port 8643) serving the static GUI and a small JSON API, and opens the browser.
  • Each generation spawns one engine process; the server parses its progress bars, streams the log to the GUI, and lists the produced images.
  • File selection uses a server-side directory listing (/api/browse) so the GUI gets real filesystem paths — no drag & drop uploads of multi-GB models.

Metadata

Release files for gguf-diffusion 0.0.8

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

Source distribution (sdist)

Source distribution for gguf-diffusion 0.0.8
File Size Uploaded
gguf_diffusion-0.0.8.tar.gz 29.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for gguf-diffusion 0.0.8
File Interpreter ABI Platform
gguf_diffusion-0.0.8-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details

Total release size: 71.8 MB

Release files / gguf_diffusion-0.0.8.tar.gz

Download URL gguf_diffusion-0.0.8.tar.gz
Size 29.7 MB
Tags Source
SHA-256 checksum
How to use checksums
50723c82ad6b5465424302102ed2088e1883a61b9db640aeafa1d1a495c6bc9d
BLAKE2b-256 checksum
How to use checksums
58526f17740715d470e4c9899e765e0558db0ddaeb1c4fd7bbc0a509142d2139
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / gguf_diffusion-0.0.8-py3-none-win_amd64.whl

Download URL gguf_diffusion-0.0.8-py3-none-win_amd64.whl
Size 42.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
9b5560ac245558447fc841b085f408a9469e2a870445ee56305c3191790064f4
BLAKE2b-256 checksum
How to use checksums
ce2b14940c4188d41877f159572d9b44a1eb4c2e03e00dd76f7784aa709bf015
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.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

3 release files

0.0.4

3 release files

0.0.3

3 release files

0.0.2

1 release file

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