Instructions to use black-forest-labs/FLUX.2-klein-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use black-forest-labs/FLUX.2-klein-9B 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-klein-9B", 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-klein-9B 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
- Inference
- Notebooks
- Google Colab
- Kaggle
π Free Local GUI for FLUX.2 Klein (One-Click Install / RTX 5090 Optimized)
Hi everyone! π
First off, huge thanks to the BFL team for releasing this amazing distilled model. The speed/quality ratio at 4 steps is incredible.
To make testing this model easier for everyone, I created a standalone Local GUI (WIN) specifically optimized for FLUX.2 Klein.
If you don't want to mess with complex ComfyUI workflows or dependency conflicts, this might be for you.
β¨ Features:
- One-Click Installer (
install.bat) for Windows. - Optimized Tech Stack: Uses PyTorch Nightly with CUDA 13.0 (Ready for RTX 5090 / Blackwell).
- Pre-configured: Automatically sets the recommended 4 steps and guidance values.
- Lightweight: Simple Gradio interface with Image-to-Image support.
It handles the download and CPU offloading automatically, so it runs smoothly even if you don't have 90GB VRAM.
π You can download it here on GitHub:
https://github.com/Detoxfox4234/FLUX.2-Klein-Local-GUI-Windows-RTX-5090-Optimized
Feel free to give it a try and let me know what you think! Happy generating. π¨
GrΓΌΓe nach Freiburg (meiner alten Heimat) aus Hamburg π