Imago
Collection
8 items โข Updated
How to use Jialuo21/Imago-4B with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("Jialuo21/Imago-4B", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Imago-4B is a full-parameter RL post-trained DiT transformer from Imago: Maturing Visual Generation with RL, initialized from black-forest-labs/FLUX.2-klein-base-4B.
| Model | Mean | T2I-CompBench | TIIF-Bench | SpatialGenEval | T2I-CoReBench | LPD-Bench | Arena-T2I-Hard | LongBench-T2I | DrawBench PickScore |
|---|---|---|---|---|---|---|---|---|---|
| Imago-4B | 82.7 | 4.09 | 84.7 | 80.9 | 88.7 | 93.0 | 80.0 | 3.50 | 22.8 |
| FLUX.2-Klein-Base (4B) | 73.8 | 3.84 | 77.1 | 71.6 | 77.2 | 88.8 | 67.7 | 2.88 | 22.4 |
Jialuo21/Imago-Short -> Jialuo21/Imago-Long)1e-6, 500 steps on Imago-Short -> 500 steps on Imago-Long, Branch Sampling (t in [0.8, 1.0]), DAVE (block 14/25), Norm Reg. (beta=0.07)This repository contains the fine-tuned DiT transformer weights (config.json + diffusion_pytorch_model.safetensors). Load it into the base Flux2KleinPipeline:
import torch
from diffusers import Flux2KleinPipeline, Flux2Transformer2DModel
transformer = Flux2Transformer2DModel.from_pretrained(
"Jialuo21/Imago-4B",
torch_dtype=torch.bfloat16,
)
pipe = Flux2KleinPipeline.from_pretrained(
"black-forest-labs/FLUX.2-klein-base-4B",
transformer=transformer,
torch_dtype=torch.bfloat16,
).to("cuda")
image = pipe(
prompt="A weathered brass telescope resting on a wooden tripod next to an open leather-bound star atlas on a stone balcony overlooking a moonlit harbor.",
height=1024,
width=1024,
num_inference_steps=50,
guidance_scale=4.0,
generator=torch.Generator("cuda").manual_seed(0),
).images[0]
image.save("imago-4b.png")
Base model
black-forest-labs/FLUX.2-klein-base-4B