Run this model with HF Jobs
Run black-forest-labs/FLUX.2-small-decoder on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/black-forest-labs/FLUX.2-small-decoder. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/black-forest-labs/FLUX.2-small-decoder on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use black-forest-labs/FLUX.2-small-decoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use black-forest-labs/FLUX.2-small-decoder 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("black-forest-labs/FLUX.2-small-decoder", 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] - Diffusion Single File
How to use black-forest-labs/FLUX.2-small-decoder with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download compare_small_decoder.png from black-forest-labs/FLUX.2-small-decoder: direct link, hf CLI and curl.
- Browser
- Download file 1.26 MB
-
https://huggingface.co/black-forest-labs/FLUX.2-small-decoder/resolve/main/compare_small_decoder.png
- Command line
-
hf download hf://black-forest-labs/FLUX.2-small-decoder/compare_small_decoder.png
-
curl -L -o compare_small_decoder.png https://huggingface.co/black-forest-labs/FLUX.2-small-decoder/resolve/main/compare_small_decoder.png
1.26 MB

- Xet hash:
- d8ccd859b93a10aa27aad081b58282d5bb48e70062d11d65aa365f4bc892ee49
- Size of remote file:
- 1.26 MB
- SHA256:
- 3ceccc1bea55fa0603266b440fb1e833dc17c3f1bb6fd3ace2573c2ef63c53bc
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.