Repository navigation
DiffusionBear v0.5.0
DiffusionBear v0.5.0
🍎 Important Note for macOS Users (Gatekeeper / First Launch)
Because DiffusionBear is an independent open-source project built with local ad-hoc code signing (without an expensive paid Apple Developer ID notarization certificate), macOS Gatekeeper protects your Mac by halting the initial double-click with this security alert:
“DiffusionBear” Not Opened
Apple could not verify “DiffusionBear” is free of malware that may harm your Mac or compromise your privacy.
This is standard macOS security behavior for free open-source software. To authorize DiffusionBear:
- Move to Applications: Drag
DiffusionBear.appinto your /Applications folder (do not launch it directly from inside the mounted DMG or~/Downloads). - Authorize it (choose one of the two methods):
- Method A (Terminal 1-Liner — Fastest):
Open Terminal.app and run:(Or:xattr -cr /Applications/DiffusionBear.app
sudo xattr -rd com.apple.quarantine /Applications/DiffusionBear.app)
Then simply double-clickDiffusionBear.app— it opens immediately! - Method B (System Settings — GUI):
- Click Done on the alert dialog.
- Open System Settings > Privacy & Security.
- Scroll down to the Security section: you will see “DiffusionBear” was blocked from use because it is not from an identified developer.
- Click Open Anyway, enter your Mac password / Touch ID, and confirm Open.
- Method A (Terminal 1-Liner — Fastest):
Once authorized, the warning will never return, and DiffusionBear will launch normally on every future click.
[0.5.0] — 2026-11-15
Release Date: 2026-11-15
Target OS: macOS 26.2+ (Apple Silicon M1 / M2 / M3 / M4 / Ultra)
Package: DiffusionBear-0.5.0-arm64.zip (217.1 MB zip → 615 MB .app) / DiffusionBear-0.5.0-arm64.dmg (291.0 MB)
SHA-256 (ZIP): f2d3bf2865fb53ef215cefcaefb331793ef76119a88cb79dabb7ec38c27a94fa
SHA-256 (DMG): 4a2ed3eba57378c47a80c4a3b4d15bfa50bc461c8986126c1324d4fd7725ec9b
✨ Highlights
Because of the scale of this architectural overhaul — 100% PyTorch removal, a rebuilt 3- and 4-stage pure-MLX generation pipeline, embedded SHA-256 model integrity verification, Kromoss 5B support, and an open Agentic REST API with no cloud tokens or subscriptions — DiffusionBear jumps directly from v0.4.5 to v0.5.0.
🔥 Pure-MLX Runtime & Trimmed Binary Packaging (-52% .app, -45% .zip)
- Complete PyTorch eradication:
torch,torchvision,torchaudio,diffusers, andaccelerateare 100% removed from the packaged.appand default runtime. Every built-in engine (FLUX.1, FLUX.2, FLUX.3, SDXL, MOSS-Image, Kromoss, Qwen-Image, Krea 2, Z-Image, and FIBO 2.0) executes natively on Apple MLX,safetensors, NumPy,transformers, andtokenizers. - Leaner binary packaging: Only the exact runtime modules required are bundled (e.g.,
mlx-vlminstalled with--no-deps, unused training/eval dependencies pruned), shrinking the standalone.appfrom 1.3 GB → 615 MB (-52%) and the release arm64.zipfrom 396.7 MB → 217.1 MB (-45%), compiled with0build warnings.
⚡ Rebuilt 3-Stage / 4-Stage MLX Generation Architecture & Benchmarks
Instead of keeping the Text Encoder, DiT Transformer, and VAE resident in memory for the entire call (which caused swap thrashing on 16 GB Macs), the generation engine now runs a strict sequential component lifecycle where only one heavy model tree is resident in Unified Memory at a time:
- 3-Stage Lifecycle (Text-to-Image):
- Encode: Load Text Encoder → encode prompt into embeddings → evict Text Encoder (
del,gc.collect(),mx.clear_cache()). - Generate: Load DiT Transformer (or UNet) → denoise latents → evict DiT.
- Decode: Load VAE (or fast TAEF/TAESD mini-VAE) → decode latents to pixels → evict VAE.
- Encode: Load Text Encoder → encode prompt into embeddings → evict Text Encoder (
- 4-Stage Lifecycle (Reference / Image-to-Image / Edit):
- Reference Encode (Stage 1/4): Load VAE (or Vision-Language encoder) → encode reference image(s) into latent space (
image_latents+image_latent_ids) → evict Reference VAE. - Prompt Encode (Stage 2/4): Load Text Encoder → encode prompt → evict Text Encoder.
- Generate (Stage 3/4): Load DiT Transformer → denoise with injected reference latents → evict DiT.
- Decode (Stage 4/4): Load VAE → decode final latents to pixels → evict VAE.
- Reference Encode (Stage 1/4): Load VAE (or Vision-Language encoder) → encode reference image(s) into latent space (
Benchmark Gains (Apple M1 16 GB, 512×768 medians across 19 matched configs / 209 runs):
Total suite wall time dropped from 13h 01m 38s to 5h 24m 26s (-58.5% total, -4.7% step-matched):
- MOSS-Image SFT 5B (4s DMD): 83.57 s (-96.7% vs 25-step stock)
- Qwen-Image 2.1 (2s + DMD2): 46.77 s (-32.0%) · Qwen-Image 2.1 Turbo (8s): 158.64 s (-19.4%)
- FLUX.1-schnell (4s): 74.22 s (-16.5%) · RealVisXL V5.0 (8s): 38.78 s (-16.0%)
- Juggernaut XL Lightning (4s): 8.80 s (-9.9%) · Bria FIBO 2.0 Edit Turbo (4s): 93.68 s (-8.3%)
- FLUX.2-klein 9B (4s): 96.54 s (-8.0%) · FLUX.2-klein 4B (4s): 44.09 s (-7.2%)
- SDXL persistent q4 cache: warm SDXL + LoRA reloads dropped from ~34 s to ~3.45 s via staged TE/UNet eviction and persistent prequantized artifacts.
🧩 Model Families, Qwen 2.5 Prompt Enhancers & New Features
- Canonical model families & Qwen 2.5 prompt enhancers: Models are now organized into distinct families (
sdxl,flux1,flux2,flux3,krea2,z-image,qwen,moss,fibo2) that never borrow another family's LoRA mappings or metrics, and each family has its own dedicated local Qwen 2.5 (0.5B / 1.5B MLX) prompt enhancer profile. - Kromoss 5B (4-bit MLX) + 8-step Accelerator LoRA: Added full support for Kromoss 5B (
Ouinche/kromoss-mlx-q4, a 4-bit MLX-quantized distillation of MOSS /lodestones/Kromossunder Apache 2.0) paired with its automatic 8-step DMD2 Accelerator LoRA (8-steps-dmd2-lora.safetensors), measuring 129.43 s median (512×768, 8 steps) on a 16 GB M1. - Alpha Channel (RGBA Transparency) for Qwen-Image 2.1 & Turbo: Added an option in Advanced Settings on Qwen-Image 2.1 and Qwen-Image 2.1 Turbo to force 4th-channel alpha transparency directly at generation time, with checkerboard transparency preview across the Studio Canvas, Browser, and Image Cards.
- First-Run Model SHA-256 Verification & Partial Repair: Embedded model manifests (
model_manifests.json) inside the app binary. On first launch of v0.5.0, DiffusionBear hashes installed built-in models (leaving custom user models untouched), flags any mismatches from older-version upgrades or incomplete downloads, and offers shard-level partial repair or full re-download (also accessible anytime on the Models tab).
🤖 Open Agentic REST API & Remote Browser Access (No Cloud Tokens, No Subscriptions)
- Open backend for local & remote agents: DiffusionBear's backend (
http://127.0.0.1:8001) is now open and documented (diffusionbear.com/agentic-api.html,docs/parameters-api-guide.md,docs/agentic-api-reference.md) so local or remote AI agents (Claude Code, Cursor, Antigravity, scripts) and remote web browsers (Chrome,Firefox,Opera,Safarion Mac/iPhone/iPad) can generate images directly via API — with zero cloud tokens, zero subscriptions, and zero per-image billing. - API security gateway: Bearer token or
X-API-Key(dbk_..., SHA-256 hashed) authentication on/api/*routes (with/api/versionpublic), wildcard bind fail-safe (127.0.0.1fallback if no 16+ char key is configured),429queue/rate limiting, and?token=media URL support for browser<img>tags.
🛡️ Hardware-Aware Memory, Validation & Fixes
- Krea, Qwen, and FIBO models declare resident-memory estimates; pixel ceilings deduct them before a request is accepted.
- Per-model prompt budgets (8 KiB SDXL, 16 KiB others) prevent silent tokenizer truncation.
- Strictly typed spatial boxes, canonical prompt-enhancer LoRA validation, atomic
loras.jsonwrites, and SHA-256 prompt-cache manifests. - All audit findings closed; full backend suite and frontend build pass.
📦 Checksums
DiffusionBear-0.5.0-arm64.zipSHA-256:f2d3bf2865fb53ef215cefcaefb331793ef76119a88cb79dabb7ec38c27a94faDiffusionBear-0.5.0-arm64.dmgSHA-256:4a2ed3eba57378c47a80c4a3b4d15bfa50bc461c8986126c1324d4fd7725ec9b(all checksums recorded inpackaging/ALL_SHA256SUMS).

