Instructions to use Audante/FLUX.2-klein-4B-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Audante/FLUX.2-klein-4B-bf16 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("Audante/FLUX.2-klein-4B-bf16", 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
FLUX.2 [klein] 4B (diffusers, bf16)
A copy of black-forest-labs/FLUX.2-klein-4B at revision e7b7dc27f91deacad38e78976d1f2b499d76a294, by Black Forest Labs. This is not an official release.
Changes
None. The files are identical to the source.
Licence
Apache License 2.0, as the source โ see LICENSE.
All rights to the model remain with its authors.
SHA256SUMS, where present, lists the checksum of every file.
- Downloads last month
- 23
Model tree for Audante/FLUX.2-klein-4B-bf16
Base model
black-forest-labs/FLUX.2-klein-4B