How to use from the
Use from the
Diffusers library
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]

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
31
Safetensors
Model size
4B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Audante/FLUX.2-klein-4B-bf16

Finetuned
(83)
this model