Lumina-Image 2.0: A Unified and Efficient Image Generative Framework
1,015
stars
56
commits
Python
primary language
May 22, 2026
updated
¹The University of Sydney, ²Shanghai AI Laboratory, ³Shanghai Innovation Institute
⁴The Chinese University of Hong Kong, ⁵Shanghai Jiao Tong University
Lumina-Image 2.0, including:


| Resolution | Parameter | Text Encoder | VAE | Download URL |
|---|---|---|---|---|
| 1024 | 2.6B | Gemma-2-2B | FLUX-VAE-16CH | hugging face |
git clone https://github.com/Alpha-VLLM/Lumina-Image-2.0.git
conda create -n Lumina2 python=3.11 -y
conda activate Lumina2
cd Lumina-Image-2.0
pip install -r requirements.txt
pip install https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.2cxx11abiFALSE-cp311-cp311-linux_x86_64.whl --no-build-isolation
Kindly find proper flash-attn version from this link.
You can place the links to your data files in ./configs/data.yaml. Your image-text pair training data format should adhere to the following:
{
"image_path": "path/to/your/image",
"prompt": "a description of the image"
}
[!Note] Since gemma2-2B requires authentication, you’ll need a Huggingface Access Token and pass it via the
--hf_tokenargument.
bash scripts/run_1024_finetune.sh
We support multiple solvers including Midpoint Solver, Euler Solver, and DPM Solver for inference.
[!Note] You can also directly download from huggingface. We have uploaded the .pth weight files, and you can simply specify the
--ckptargument as the download directory.
python demo.py \
--ckpt /path/to/your/ckpt \
--res 1024 \
--port 10010 \
--hf_token xxx
--model_dir: provide the path to your local checkpoint directory or specify Alpha-VLLM/Lumina-Image-2.0.
--cap_dir: point to either
"prompt" field, orbash scripts/sample.sh
import torch
from diffusers import Lumina2Pipeline
pipe = Lumina2Pipeline.from_pretrained("Alpha-VLLM/Lumina-Image-2.0", torch_dtype=torch.bfloat16)
pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
prompt = "A serene photograph capturing the golden reflection of the sun on a vast expanse of water. "
image = pipe(
prompt,
height=1024,
width=1024,
guidance_scale=4.0,
num_inference_steps=50,
cfg_trunc_ratio=0.25,
cfg_normalization=True,
generator=torch.Generator("cpu").manual_seed(0)
).images[0]
image.save("lumina_demo.png")
We are hiring interns and full-time researchers at the Alpha VLLM Group, Shanghai AI Lab. If you are interested, please contact alphavllm@gmail.com.
If you find the provided code or models useful for your research, consider citing them as:
@misc{lumina2,
author={Qi Qin and Le Zhuo and Yi Xin and Ruoyi Du and Zhen Li and Bin Fu and Yiting Lu and Xinyue Li and Dongyang Liu and Xiangyang Zhu and Will Beddow and Erwann Millon and Victor Perez,Wenhai Wang and Yu Qiao and Bo Zhang and Xiaohong Liu and Hongsheng Li and Chang Xu and Peng Gao},
title={Lumina-Image 2.0: A Unified and Efficient Image Generative Framework},
year={2025},
eprint={2503.21758},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/pdf/2503.21758},
}
Python
99.3%
Lumina-Image 2.0: A Unified and Efficient Image Generative Framework
1,015
stars
56
commits
Python
primary language
May 22, 2026
updated
¹The University of Sydney, ²Shanghai AI Laboratory, ³Shanghai Innovation Institute
⁴The Chinese University of Hong Kong, ⁵Shanghai Jiao Tong University
Lumina-Image 2.0, including:


| Resolution | Parameter | Text Encoder | VAE | Download URL |
|---|---|---|---|---|
| 1024 | 2.6B | Gemma-2-2B | FLUX-VAE-16CH | hugging face |
git clone https://github.com/Alpha-VLLM/Lumina-Image-2.0.git
conda create -n Lumina2 python=3.11 -y
conda activate Lumina2
cd Lumina-Image-2.0
pip install -r requirements.txt
pip install https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.2cxx11abiFALSE-cp311-cp311-linux_x86_64.whl --no-build-isolation
Kindly find proper flash-attn version from this link.
You can place the links to your data files in ./configs/data.yaml. Your image-text pair training data format should adhere to the following:
{
"image_path": "path/to/your/image",
"prompt": "a description of the image"
}
[!Note] Since gemma2-2B requires authentication, you’ll need a Huggingface Access Token and pass it via the
--hf_tokenargument.
bash scripts/run_1024_finetune.sh
We support multiple solvers including Midpoint Solver, Euler Solver, and DPM Solver for inference.
[!Note] You can also directly download from huggingface. We have uploaded the .pth weight files, and you can simply specify the
--ckptargument as the download directory.
python demo.py \
--ckpt /path/to/your/ckpt \
--res 1024 \
--port 10010 \
--hf_token xxx
--model_dir: provide the path to your local checkpoint directory or specify Alpha-VLLM/Lumina-Image-2.0.
--cap_dir: point to either
"prompt" field, orbash scripts/sample.sh
import torch
from diffusers import Lumina2Pipeline
pipe = Lumina2Pipeline.from_pretrained("Alpha-VLLM/Lumina-Image-2.0", torch_dtype=torch.bfloat16)
pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
prompt = "A serene photograph capturing the golden reflection of the sun on a vast expanse of water. "
image = pipe(
prompt,
height=1024,
width=1024,
guidance_scale=4.0,
num_inference_steps=50,
cfg_trunc_ratio=0.25,
cfg_normalization=True,
generator=torch.Generator("cpu").manual_seed(0)
).images[0]
image.save("lumina_demo.png")
We are hiring interns and full-time researchers at the Alpha VLLM Group, Shanghai AI Lab. If you are interested, please contact alphavllm@gmail.com.
If you find the provided code or models useful for your research, consider citing them as:
@misc{lumina2,
author={Qi Qin and Le Zhuo and Yi Xin and Ruoyi Du and Zhen Li and Bin Fu and Yiting Lu and Xinyue Li and Dongyang Liu and Xiangyang Zhu and Will Beddow and Erwann Millon and Victor Perez,Wenhai Wang and Yu Qiao and Bo Zhang and Xiaohong Liu and Hongsheng Li and Chang Xu and Peng Gao},
title={Lumina-Image 2.0: A Unified and Efficient Image Generative Framework},
year={2025},
eprint={2503.21758},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/pdf/2503.21758},
}
Python
99.3%