MLX port of FLUX for local image generation on Macs
Top 28.1% on sourcepulse
MFLUX is a Python library that ports the FLUX text-to-image diffusion models to Apple's MLX framework, enabling local execution on Macs. It targets users who want to leverage powerful image generation models efficiently on Apple Silicon hardware, offering features like quantization for reduced memory usage and faster inference, LoRA support, and various image manipulation tools.
How It Works
MFLUX is a line-by-line port of the Hugging Face Diffusers implementation of FLUX. It prioritizes a minimal and explicit codebase, with network architectures hardcoded and only tokenizers relying on external libraries. This approach aims for readability and efficiency, especially when models are quantized.
Quick Start & Requirements
uv tool install --upgrade mflux
or pip install -U mflux
.schnell
, dev
) are ~34GB; quantization significantly reduces this.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
10 hours ago
1 day