Instructions to use SimpleTuner/flux-3-klein-image-domokun-1024 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SimpleTuner/flux-3-klein-image-domokun-1024 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-3-image-klein-base", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("SimpleTuner/flux-3-klein-image-domokun-1024") prompt = "unconditional (blank prompt)" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
SimpleTuner/flux-3-klein-image-domokun-1024
This is a PEFT LoRA derived from black-forest-labs/flux-3-image-klein-base.
No validation prompt was used during training.
Validation settings
- CFG:
3.5 - CFG Rescale:
0.0 - Steps:
50 - Sampler:
FlowMatchEulerDiscreteScheduler - Seed:
42 - Resolutions:
512x512,1024x1024
Note: The validation settings are not necessarily the same as the training settings.
You can find some example images in the following gallery:

- Prompt
- unconditional (blank prompt)
- Negative Prompt
- '

- Prompt
- unconditional (blank prompt)
- Negative Prompt
- '

- Prompt
- A photo of π« standing on a sunny beach beside the ocean.
- Negative Prompt
- '

- Prompt
- A photo of π« standing on a sunny beach beside the ocean.
- Negative Prompt
- '

- Prompt
- A photo of π« wearing a red scarf in a snowy park.
- Negative Prompt
- '

- Prompt
- A photo of π« wearing a red scarf in a snowy park.
- Negative Prompt
- '

- Prompt
- A studio portrait of an elderly woman wearing a blue silk scarf, soft light and a grey background.
- Negative Prompt
- '

- Prompt
- A studio portrait of an elderly woman wearing a blue silk scarf, soft light and a grey background.
- Negative Prompt
- '

- Prompt
- An illustration of an anthropomorphic fox wearing a blue jacket and reading a book in a cozy library.
- Negative Prompt
- '

- Prompt
- An illustration of an anthropomorphic fox wearing a blue jacket and reading a book in a cozy library.
- Negative Prompt
- '
The text encoder was not trained. You may reuse the base model text encoder for inference.
Training settings
Training epochs: 370
Training steps: 10000
Learning rate: 0.0001
- Learning rate schedule: constant_with_warmup
- Warmup steps: 25
Max grad norm: 1.0
Effective batch size: 1
- Micro-batch size: 1
- Gradient accumulation steps: 1
- Number of GPUs: 1
Gradient checkpointing: True
Prediction type: flow_matching[]
Optimizer: adamw_bf16
Trainable parameter precision: Pure BF16
Base model precision:
no_changeCaption dropout probability: 0.0%
LoRA Rank: 32
LoRA Alpha: 32.0
LoRA Dropout: 0.0
LoRA initialisation style: default
LoRA mode: Standard
Datasets
domokun-1024
- Repeats: 0
- Total number of images: 27
- Total number of aspect buckets: 1
- Resolution: 1024 px
- Cropped: True
- Crop style: random
- Crop aspect: square
- Used for regularisation data: No
Inference
import torch
from simpletuner.helpers.models.flux3_image.pipeline import Flux3ImagePipeline as DiffusionPipeline
model_id = 'black-forest-labs/flux-3-image-klein-base'
adapter_id = 'SimpleTuner/flux-3-klein-image-domokun-1024'
pipeline = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16) # loading directly in bf16
pipeline.load_lora_weights(adapter_id)
prompt = "An astronaut is riding a horse through the jungles of Thailand."
negative_prompt = ''
## Optional: quantise the model to save on vram.
## Note: The model was not quantised during training, so it is not necessary to quantise it during inference time.
#from optimum.quanto import quantize, freeze, qint8
#quantize(pipeline.transformer, weights=qint8)
#freeze(pipeline.transformer)
pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu') # the pipeline is already in its target precision level
model_output = pipeline(
prompt=prompt,
negative_prompt=negative_prompt,
num_inference_steps=50,
generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(42),
width=512,
height=512,
guidance_scale=3.5,
).images[0]
model_output.save("output.png", format="PNG")
- Downloads last month
- 375
Model tree for SimpleTuner/flux-3-klein-image-domokun-1024
Base model
black-forest-labs/flux-3-image-klein-base