--- base_model: Tongyi-MAI/Z-Image library_name: diffusers pipeline_tag: text-to-image tags: - text-to-image - diffusers - reinforcement-learning - imago --- # Imago-6B **Imago-6B** is a full-parameter RL post-trained DiT transformer from *Imago: Maturing Visual Generation with RL*, initialized from [`Tongyi-MAI/Z-Image`](https://huggingface.co/Tongyi-MAI/Z-Image). ![Qualitative comparison between Imago-6B and Z-Image](assets/qualitative.jpg) *Paired qualitative comparisons between **Imago-6B** and **Z-Image** across diverse artistic styles and aspect ratios (21:9 to 9:21), generated from identical prompts and initial noise.* ## Benchmark Results (Kimi-K2.6 Judge) | Model | Mean | T2I-CompBench | TIIF-Bench | SpatialGenEval | T2I-CoReBench | LPD-Bench | Arena-T2I-Hard | LongBench-T2I | DrawBench PickScore | |---|---:|---:|---:|---:|---:|---:|---:|---:|---:| | Imago-6B | **85.3** | 4.14 | 88.8 | 83.0 | 94.5 | 93.6 | 82.4 | 3.61 | 23.0 | | Z-Image (Base) | 81.2 | 3.98 | 85.7 | 77.9 | 90.8 | 91.1 | 78.0 | 3.26 | 22.4 | ## Training Recipe - **Reward**: Zero-shot Qwen3.5-9B ProbScore - **Curriculum**: Two-stage sequential RL (`Jialuo21/Imago-Short` -> `Jialuo21/Imago-Long`) - **Algorithm**: DiffusionNFT with Tree Sampling, DAVE, and NormReg (no CFG, no KL penalty) - **Settings**: LR `8e-6`, 500 steps on `Imago-Short` -> 500 steps on `Imago-Long`, Tree Sampling (`t in [0.5, 1.0]`), DAVE (`block 24/30`), NormReg (`beta=0.10`) ## Usage This repository contains the fine-tuned DiT transformer weights (`config.json` + `diffusion_pytorch_model.safetensors`). Load it into the base `ZImagePipeline`: ```python import torch from diffusers import ZImagePipeline, ZImageTransformer2DModel transformer = ZImageTransformer2DModel.from_pretrained( "Jialuo21/Imago-6B", torch_dtype=torch.bfloat16, ) pipe = ZImagePipeline.from_pretrained( "Tongyi-MAI/Z-Image", 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-6b.png") ```