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
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,6 +16,8 @@ This repository holds a small (distilled) VAE decoder for FLUX.2. It is a drop-i
|
|
| 16 |
|
| 17 |
- **~28M** decoder params (vs ~50M full decoder)
|
| 18 |
- **~1.4x** faster decode
|
|
|
|
|
|
|
| 19 |
|
| 20 |
Compatible with all open-source FLUX.2 models:
|
| 21 |
- [FLUX.2-klein-4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B)
|
|
|
|
| 16 |
|
| 17 |
- **~28M** decoder params (vs ~50M full decoder)
|
| 18 |
- **~1.4x** faster decode
|
| 19 |
+
- **~1.4x** less VRAM
|
| 20 |
+
|
| 21 |
|
| 22 |
Compatible with all open-source FLUX.2 models:
|
| 23 |
- [FLUX.2-klein-4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B)
|