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 from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("nucleuseru/flux-2", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download example_edit.png from nucleuseru/flux-2: direct link, hf CLI and curl.
- Browser
- Download file 5.01 MB
-
https://huggingface.co/nucleuseru/flux-2/resolve/main/example_edit.png
- Command line
-
hf download hf://nucleuseru/flux-2/example_edit.png
-
curl -L -o example_edit.png https://huggingface.co/nucleuseru/flux-2/resolve/main/example_edit.png
5.01 MB

- Xet hash:
- 04984708652d0519eda0a6ba332363fc131d963cdaf91b58b4c7e73f7f446a6c
- Size of remote file:
- 5.01 MB
- SHA256:
- 0372a83c07acc7bba7e7d92d08b5e6a8d96771e46962d59f99f107a62498c0f1
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.