Member-only story
Run FLUX Models Locally on Your Mac!
MFLUX is essentially a port of the FLUX models using Apple’s MLX framework.
I’ve been playing around with it on my Mac, let me walk you through what I’ve learned.
No more fluff, let’s see how good it is!
What’s MFLUX All About?
MFLUX is basically a line-by-line port of the FLUX implementation from the Huggingface Diffusers library into Apple’s MLX.
It’s designed to be super minimal and explicit.
There are no convoluted config files (except for the tokenizers), and the network architectures are hardcoded.
The idea is to keep the codebase tiny and focused solely on expressing these models, which means fewer abstractions to deal with.
Even though MFLUX prioritizes readability over generality and performance, it’s surprisingly fast — and even faster when you use quantization.
It’s like having a lean, mean, image-generating machine right on your Mac.
Let me walk you through the repository and explain what I have found out along the way!
Installing MFLUX
Getting MFLUX up and running is pretty straightforward.