MochiDiffusion/MochiDiffusion
Native Mac image generation with Core ML, Metal, and local Draw Things
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Mochi Diffusion is a native SwiftUI macOS app that presents three inference paths through one model picker. Apple’s Core ML Stable Diffusion implementation loads converted model bundles and offers compute-unit selection. Iris (iris.c) runs FLUX.2 Klein and Z-Image Turbo through Metal on the local GPU. The selected model therefore determines not just the weights, but also the execution device, input modes, and available controls.
Draw Things is a separate server-backed path, not another in-process runtime. Mochi browses the model inventory over gRPC and submits generation to either the Draw Things app or its standalone gRPC server. The server can run on the same Mac or another machine on the LAN; its hardware performs inference, and Mochi does not use Draw Things cloud compute.
Key Capabilities & Differentiators
The Core ML Stable Diffusion path supports generation from a starting image and ControlNet with compatible models, but output dimensions are baked into each conversion. Iris runs FLUX.2 Klein without conversion and accepts up to four input images, resizing them when necessary to fit the attention budget and displaying the resulting dimensions. The Iris Z-Image Turbo pipeline is text-to-image only.
Draw Things exposes text-to-image models, starting-image input, LoRAs where supported, and reference images for FLUX.2. It does not expose image-editing models such as FLUX.1 Kontext and Qwen-Image-Edit. The built-in gallery supports import, save, and sync. PNG exports embed generation settings in an AUTOMATIC1111-compatible format that Civitai can read, while Musubi lets the app read metadata from other common generators.
Trade-offs & Limitations
Compared with Midjourney’s managed workflow, Mochi gives users control over local model files and can generate offline once the weights are installed. The trade-off is maintaining model files, choosing the right conversion variant, and sizing the machine for the selected backend. Core ML’s memory-efficient path comes with fixed output dimensions, and compute selection depends on the bundle: split_einsum works with Neural Engine options, whereas original requires CPU & GPU.
For a 16 GB Mac, Core ML with CPU & Neural Engine is the sensible starting point, not a sizing guarantee for the Iris backends. The recommended full-precision Z-Image Turbo download is about 32 GB on disk and may fail on Macs with less than 24 GB of RAM. A LAN Draw Things server shifts that inference load to another machine but does not give Mochi access to all of Draw Things’ editing workflows. GPL-3.0 obligations apply when distributing the app; model weights have separate licensing terms to check.
Hardware & Deployment Guide
Run a release build on Apple Silicon (M1 or later) with macOS 15.6 or later. Start with ~/MochiDiffusion/models/ or change the location in Settings. Put each model in its own subfolder: the Core ML example uses compiled components such as TextEncoder.mlmodelc and Unet.mlmodelc, while FLUX.2 Klein uses text_encoder/, tokenizer/, transformer/, and vae/. A model’s first Neural Engine run can spend up to two minutes compiling a cached version.
Source builds require Xcode 27 or later; signing overrides can live in a sibling SharedXcodeSettings/DeveloperSettings.xcconfig. For self-hosting, enable gRPC and Model Browsing in Draw Things, then configure the host, port, TLS, and shared secret in Mochi. Use a trusted network: TLS encrypts traffic but does not verify server identity. Release v6.2 added broader metadata interoperability, v6.3 added Iris Z-Image Turbo support and fixed FLUX Klein memory retention after generation, and v7.0 added Draw Things integration and filterable model and LoRA pickers.
Apple Silicon users who want offline image generation, control over model files, and reusable PNG generation metadata, with the option to run inference on a trusted LAN server.
You want a managed service with no model setup, need Draw Things’ unsupported image-editing models through Mochi, or require reliable Z-Image Turbo inference on a 16 GB Mac.
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| MochiDiffusion ★ | 8k | +1 | Swift | GPL-3.0 | Native Mac image generation with Core ML, Metal, and local Draw Things |
| InvokeAI | 29.2k | +65 | TypeScript | Apache-2.0 | Self-hosted canvas and node workflows for AI image generation and editing |
| ComfyUI | 149.9k | +945 | Python | GPL-3.0 | A node-graph engine for building and running multimodal AI workflows locally |
| easydiffusion | 10.5k | +1 | JavaScript | — | A browser UI and local diffusion engine for image generation and editing |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/MochiDiffusion/MochiDiffusion.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about MochiDiffusion
How does Mochi connect to Draw Things, and where does inference run?
Which backend should I start with on a 16 GB Apple Silicon Mac?
Can my team use Mochi commercially or distribute its own build?
When is Mochi a better fit than Midjourney or Draw Things directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy