Instructions to use nucleuseru/flux-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use nucleuseru/flux-2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("nucleuseru/flux-2", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download example_t2i.png from nucleuseru/flux-2: direct link, hf CLI and curl.
- Browser
- Download file 6.52 MB
-
https://huggingface.co/nucleuseru/flux-2/resolve/main/example_t2i.png
- Command line
-
hf download hf://nucleuseru/flux-2/example_t2i.png
-
curl -L -o example_t2i.png https://huggingface.co/nucleuseru/flux-2/resolve/main/example_t2i.png
6.52 MB

- Xet hash:
- 9e739fd5ada8447db1f1cbd254780d1f72c5be97de771e345a87c796b052197b
- Size of remote file:
- 6.52 MB
- SHA256:
- 0559a27f45fb3ca0c007d787b37744e21f7e44bf7b06f35f0485f4a12e2d907c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.