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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gguf_diffusion-0.0.4.tar.gz (29.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gguf_diffusion-0.0.4-py3-none-win_amd64.whl (42.0 MB view details)

Uploaded Python 3Windows x86-64

gguf_diffusion-0.0.4-py3-none-macosx_26_0_arm64.whl (23.2 MB view details)

Uploaded Python 3macOS 26.0+ ARM64

File details

Details for the file gguf_diffusion-0.0.4.tar.gz.

File metadata

  • Download URL: gguf_diffusion-0.0.4.tar.gz
  • Upload date:
  • Size: 29.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for gguf_diffusion-0.0.4.tar.gz
Algorithm Hash digest
SHA256 43d76dda4aaad8c8dd8010f4c5032855285fd92fb40302ddd17a4210fb4e777c
MD5 8bb85c820cbc300f1191289efffbe848
BLAKE2b-256 e1899d7837847ca8ef3b7226665617ab8f9c4463f58ef1f378aa1ea6f1f97d34

See more details on using hashes here.

File details

Details for the file gguf_diffusion-0.0.4-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for gguf_diffusion-0.0.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 38f7daef5f5b3e99488a04b578e42f24191f6a758e499b06facd3feb5db4f48d
MD5 acfa2e632d2c1954c76b0aab3ca25022
BLAKE2b-256 369fa709e20a278199843b95b2719489ae6b3a43f7a62f3d9d9163c5a3cd1294

See more details on using hashes here.

File details

Details for the file gguf_diffusion-0.0.4-py3-none-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for gguf_diffusion-0.0.4-py3-none-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 e017e272de8ea5fc70ce2ea66066ac72b53f19b776c66eefb647fe4fe70b8fc6
MD5 f041d1b0e906da3045c33f6cae00933e
BLAKE2b-256 28d37b7968a7ba5c183b8d29f7cfa78af8c5c3c288299594a4a177d52e4c722c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

3 files

This release

0.0.4 This release

3 files

0.0.3

3 files

0.0.2

1 file

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page