Model reference · open weights
OmniGen2 is an open-weight language model from OmniGen2. OmniGen2 (FP32) weighs 15.6 GB; the smallest configuration that runs it is RTX 4090 24 GB.
Summary of the OmniGen2/OmniGen2 model card, 2026-10-01
What it is
| Released by | OmniGen2 |
|---|---|
| Released | 2025-06-06 |
| Parameters | 4.0B |
| VRAM | 15.6 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … RTX 4060 Ti 16 GB 2 smaller cards | — | — | — | |
| RTX 3090 24 GB | 8 | 2 | 64K | 23.4 GB |
| RTX 4090 24 GB | 8 | 2 | 64K | 23.4 GB |
| RTX 5090 32 GB | 16 | 4 | 128K | 31.0 GB |
| L40S 48 GB | 31 | 7 | 128K | 44.0 GB |
| A100 80 GB | 70 | 17 | 128K | 78.2 GB |
| H100 80 GB | 65 | 16 | 128K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 83 | 20 | 128K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 98 | 24 | 128K | 107 GB |
| H200 141 GB | 133 | 33 | 128K | 138 GB |
| B200 180 GB | 176 | 44 | 128K | 176 GB |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 17.2 GB | 19.8 GB |
| 5 | 20.7 GB | 33.9 GB |
| 8 | 23.3 GB | 44.5 GB |
| 16 | 30.4 GB | 72.7 GB |
| 32 | 44.5 GB | 129 GB |
| 64 | 72.7 GB | 242 GB |
One card, with vLLM's small-card settings.
From the model card
flash-attn. Users can still install it for optimal performance.OmniGen2 is a powerful and efficient unified multimodal model. Unlike OmniGen v1, OmniGen2 features two distinct decoding pathways for text and image modalities, utilizing unshared parameters and a decoupled image tokenizer. OmniGen2 has competitive performance across four primary capabilities:
As an open-source project, OmniGen2 provides a powerful yet resource-efficient foundation for researchers and developers exploring the frontiers of controllable and personalized generative AI.
We will release the training code, dataset, and data construction pipeline soon. Stay tuned!
# 1. Clone the repo
git clone git@github.com:VectorSpaceLab/OmniGen2.git
cd OmniGen2
# 2. (Optional) Create a clean Python environment
conda create -n omnigen2 python=3.11
conda activate omnigen2
# 3. Install dependencies
# 3.1 Install PyTorch (choose correct CUDA version)
pip install torch==2.6.0 torchvision --extra-index-url https://download.pytorch.org/whl/cu124
# 3.2 Install other required packages
pip install -r requirements.txt
# Note: Version 2.7.4.post1 is specified for compatibility with CUDA 12.4.
# Feel free to use a newer version if you use CUDA 12.6 or they fixed this compatibility issue.
# OmniGen2 runs even without flash-attn, though we recommend install it for best performance.
pip install flash-attn==2.7.4.post1 --no-build-isolation
# Install PyTorch from a domestic mirror
pip install torch==2.6.0 torchvision --index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu124
# Install other dependencies from Tsinghua mirror
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# Note: Version 2.7.4.post1 is specified for compatibility with CUDA 12.4.
# Feel free to use a newer version if you use CUDA 12.6 or they fixed this compatibility issue.
# OmniGen2 runs even without flash-attn, though we recommend install it for best performance.
pip install flash-attn==2.7.4.post1 --no-build-isolation -i https://pypi.tuna.tsinghua.edu.cn/simple
# Visual Understanding
bash example_understanding.sh
# Text-to-image generation
bash example_t2i.sh
# Instruction-guided image editing
bash example_edit.sh
# In-context generation
bash example_in_context_generation.sh
Online Demo: HF Spaces. Beyond Hugging Face Spaces, we are temporarily allocating additional GPU resources to ensure smooth access to the online demos. If you notice a long queue for a particular link, please try other links:
Chat-Demo1, Chat-Demo2, Chat-Demo3, [Chat-Demo4](
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.