Instructions to use Jialuo21/Imago-6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Jialuo21/Imago-6B 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-6B", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
|
Download README.md from Jialuo21/Imago-6B: direct link, hf CLI and curl.
- Browser
- Download file 2.32 kB
-
https://huggingface.co/Jialuo21/Imago-6B/resolve/main/README.md
- Command line
-
hf download hf://Jialuo21/Imago-6B/README.md
-
curl -L -o README.md https://huggingface.co/Jialuo21/Imago-6B/resolve/main/README.md
2.32 kB
| 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). | |
|  | |
| *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") | |
| ``` | |