FLUX.2 [klein] 4B β€” Yarn Art style LoRA

A style LoRA for FLUX.2 klein base-4B that renders subjects as yarn / fiber art with dense stitch and thread texture.

Trigger word: Y4RN_ART β€” the style only activates when the trigger is in the prompt; without it, output stays photorealistic (no style bleed).

With trigger (fox) With trigger (astronaut) On distilled, 4 steps No trigger
fox astronaut distilled fox no trigger

Usage

import torch
from diffusers import Flux2KleinPipeline

pipe = Flux2KleinPipeline.from_pretrained(
    "black-forest-labs/FLUX.2-klein-base-4B", torch_dtype=torch.bfloat16
).to("cuda")
pipe.load_lora_weights("Barath/flux2-klein-yarn-art-lora")

img = pipe(
    "Y4RN_ART, a fox in a forest",
    num_inference_steps=28, guidance_scale=4.0,
).images[0]

The LoRA was trained on the undistilled base model but also transfers to the 4-step distilled FLUX.2-klein-4B:

pipe = Flux2KleinPipeline.from_pretrained(
    "black-forest-labs/FLUX.2-klein-4B", torch_dtype=torch.bfloat16
).to("cuda")
pipe.load_lora_weights("Barath/flux2-klein-yarn-art-lora")
img = pipe("Y4RN_ART, a fox in a forest", num_inference_steps=4, guidance_scale=1.0).images[0]

Files

  • klein4b_yarn_art_lora_v1.safetensors β€” final checkpoint (step 1800, recommended)
  • klein4b_yarn_art_lora_v1_000001200.safetensors β€” step-1200 checkpoint (slightly lighter style)

Training

Trained with ostris/ai-toolkit on a single RTX 4090 (~31 min).

  • Dataset: Norod78/Yarn-art-style (18 images, 1024px), captions rewritten to content-only with the Y4RN_ART trigger prefix
  • LoRA rank 32 / alpha 32, lr 1e-4, AdamW 8-bit, 1800 steps, batch 1, bf16 with 8-bit quantization, flowmatch, EMA 0.99
  • Multi-resolution buckets: 512 / 768 / 1024

Known limitation: still-life / tabletop scenes (e.g. "a cup of coffee on a wooden table") stay photorealistic β€” the small dataset contains creatures, figures and single objects, so coverage of such scenes is weak.

Downloads last month
-
Inference Examples
Examples
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Barath/flux2-klein-yarn-art-lora

Adapter
(88)
this model

Dataset used to train Barath/flux2-klein-yarn-art-lora