How to use pmczip/FLUX.2-klein-9B_Models with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-base-9B", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("pmczip/FLUX.2-klein-9B_Models") prompt = "A portrait of 413xkin65t0n with curly auburn hair and blue eyes. She wears a black and white lace-up top and shiny black leather pants. A gold necklace and multiple bracelets adorn her wrists. She has a silver ring on her left hand. Her pose is confident, with one hand resting on her hip and the other on her thigh. The background is plain white, highlighting the subject. The image style is contemporary and edgy, emphasizing the subject's clothing and accessories. " image = pipe(prompt).images[0]