Instructions to use Jialuo21/Imago-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Jialuo21/Imago-2B 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-2B", 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-2B: direct link, hf CLI and curl.
- Browser
- Download file 2.21 kB
-
https://huggingface.co/Jialuo21/Imago-2B/resolve/main/README.md
- Command line
-
hf download hf://Jialuo21/Imago-2B/README.md
-
curl -L -o README.md https://huggingface.co/Jialuo21/Imago-2B/resolve/main/README.md
2.21 kB
| base_model: Efficient-Large-Model/SANA1.5_1.6B_1024px_diffusers | |
| library_name: diffusers | |
| pipeline_tag: text-to-image | |
| tags: | |
| - text-to-image | |
| - diffusers | |
| - reinforcement-learning | |
| - imago | |
| # Imago-2B | |
| **Imago-2B** is a full-parameter RL post-trained DiT transformer from *Imago: Maturing Visual Generation with RL*, initialized from [`Efficient-Large-Model/SANA1.5_1.6B_1024px_diffusers`](https://huggingface.co/Efficient-Large-Model/SANA1.5_1.6B_1024px_diffusers). | |
| ## 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-2B | **72.1** | 3.94 | 75.1 | 73.5 | 63.7 | 91.4 | 61.9 | 3.03 | 22.7 | | |
| | SANA-1.5 (Base) | 63.5 | 3.71 | 69.2 | 63.2 | 53.4 | 83.1 | 51.5 | 2.49 | 22.7 | | |
| ## Training Recipe | |
| - **Reward**: Zero-shot Qwen3.5-9B ProbScore | |
| - **Curriculum**: Two-stage sequential RL (`Jialuo21/Imago-Short` -> `Jialuo21/Imago-Long`) | |
| - **Algorithm**: DiffusionNFT with Branch Sampling, DAVE, and scalar velocity norm regularization (no CFG, no KL penalty) | |
| - **Settings**: LR `1e-5`, 500 steps on `Imago-Short` -> 500 steps on `Imago-Long`, Branch Sampling (`t in [0.5, 1.0]`), DAVE (`block 16/20`), Norm Reg. (`beta=0.05`) | |
| ## Usage | |
| This repository contains the fine-tuned DiT transformer weights (`config.json` + `diffusion_pytorch_model.safetensors`). Load it into the base `SanaPipeline`: | |
| ```python | |
| import torch | |
| from diffusers import SanaPipeline, SanaTransformer2DModel | |
| transformer = SanaTransformer2DModel.from_pretrained( | |
| "Jialuo21/Imago-2B", | |
| torch_dtype=torch.bfloat16, | |
| ) | |
| pipe = SanaPipeline.from_pretrained( | |
| "Efficient-Large-Model/SANA1.5_1.6B_1024px_diffusers", | |
| 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=20, | |
| guidance_scale=4.5, | |
| generator=torch.Generator("cuda").manual_seed(0), | |
| ).images[0] | |
| image.save("imago-2b.png") | |
| ``` | |