If you want to try out the new Flux model locally and don’t want to waste hours trying to set up Python, Conda, PyTorch, etc., I’ve got just the thing for you! This guide will walk you through the Flux Pinokio setup, making local AI image generation a breeze.
With https://pinokio.computer/, you can easily install Flux and other models without risking your existing Python installation. It provides a nice, user-friendly interface to install, reset, and uninstall models.
Pinokio is a self-contained platform that lets you install apps in an isolated manner.
To achieve this, Pinokio stores everything under a single isolated folder (“pinokio home”), so it never has to rely on your system-wide configs and programs but runs everything in a self-contained manner.
You can set the pinokio home folder when you first set up Pinokio, as well as later change it to a new location from the settings tab.
Taken straight from here: https://program.pinokio.computer/#/?id=pinokio-file-system
There is a Gradio interface, which you can see above, with which you can install to use the Flux model with no knowledge of Python just by following the instructions.
Now Pinokio will download and install all needed software to run the model.
After it has downloaded everything, you should see the Gradio interface, which will appear automatically:
Here you can (1) input your prompt, (2) change the model, (3,4) configure the height, (5) select the number of images to generate and (6) choose how many inference steps the model should do.
Now we’ll try to generate an image. I’ve chosen “a black forest cake with the words ‘it works’ written in icing” as my prompt, but you do as you like.
The first time it runs, it will have to download the model, which can take a long time. You can watch the process and also check if you get errors by clicking on the Terminal entry on the left menubar.
This might take a while (5-10 minutes depending on the internet connection), so lie back and get yourself some coffee or other beverage.
It won’t automatically switch back to the web UI, but when the last line looks like this:
“(…)pytorch_model-00002-of-00003.safetensors: 100%|█████████████████████████████████████████████████████████████▉| 9.94G/9.95G [04:49<00:00, 113MB/s]”
Then it should be done and we can switch back.
To switch back, press the “Open Web UI” in the menu on the left side.
Voilà, it works, and it even has great support for text and runs 100% locally. The first run took me around 377 seconds = 6 minutes on an M3 Max 128GB MacBook.
The next run only took me 20 seconds, with the model downloaded and cached:
And that’s it, you can now generate images locally with Flux.
There are a lot of other fun apps to run with Pinokio which you can find here: https://pinokio.computer/#explore
A: You have two options:
A: The naming is confusing, but FLUX.1-merged is Flux.1-dev with 8 steps. https://github.com/pinokiofactory/flux-webui
A: There was an update that fixes that. Remove the app and reinstall it again according to the above instructions. Updating didn’t work for me and gave me a “optimum package missing” error when trying to start it. Might be because I messed around, you can try and update it (First you have to stop it, else the update button doesn’t appear). But if the updated version gives you an error, just try and reinstall it and it should fix it.
Do you know if you can load the Dev Version of flux within Pinokio? I have the same specs as you.
Hey Jason, I updated the FAQ to answer the question. In short FLUX.1-merged is Flux.1-dev with 8 steps (https://github.com/pinokiofactory/flux-webui), but you need to update / remove and reinstall the script for it to work. (Not the whole app, just the flux-webui)
I got it to work by removing and installing it again and it takes me around 50s on the M3 Max to generate an image, after the model is loaded for the first time.