Instructions to use black-forest-labs/FLUX.1-schnell with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use black-forest-labs/FLUX.1-schnell with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Flux for 8GB graphics card
Is it possible to run such huge model directly or wait for prune versions to use it?
Lets discuss on the script to prune it properly.
Will this also work on rundiffusion?
works on my 8gb card, took 2 minutes for a 4-step image though...
hold my beer Works on my Dell Inspiron 15 Gaming (CPU matters when you offload work onto the CPU to make the model fit on a) NVIDIA GeForce 1050 mobile (4GB VRAM):
I ran this code: https://github.com/InServiceOfX/InServiceOfX/blob/master/PythonLibraries/HuggingFace/MoreDiffusers/morediffusers/Applications/terminal_only_finite_loop_flux.py
I made this: https://www.instagram.com/p/C-U61P2p0jG/?utm_source=ig_web_copy_link&igsh=MzRlODBiNWFlZA== https://x.com/inserviceofx/status/1820790765670252776
I did this about 15hours after flux1.schnell released in lowvram mode. 2 step generated in about 60 seconds in comfyui.

Flux still can't do the hard things, like understand idioms and purely abstract concepts like spaceships.
the bathtub prompt is "Burning the midnight oil while trying not to throw the baby out with the bathwater."










