Model reference · open weights

OmniGen2

LLMs OmniGen2 Omni (any→any) 1 build Open weights 2k dl/mo

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.

  • OmniGen2 is a 4.0B parameter unified multimodal model designed for visual understanding, text-to-image generation, instruction-guided image editing, and in-context generation.
  • It features distinct decoding pathways for text and image modalities and is built on the Qwen-VL-2.5 foundation.
  • The model is released under the Apache 2.0 license and requires approximately 17GB of VRAM for native inference, with support for CPU offloading to reduce memory usage.

Summary of the OmniGen2/OmniGen2 model card, 2026-10-01

What it is

Released byOmniGen2
Released2025-06-06
Parameters4.0B
VRAM15.6 GB for the weights

What it runs on

Memory and cards for OmniGen2 (FP32)

15.6 GBweights, file size
108 MBcache per 1K tokens
684 MBruntime overhead, at least
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB … RTX 4060 Ti 16 GB
2 smaller cards
———
RTX 3090 24 GB8264K23.4 GB
RTX 4090 24 GB8264K23.4 GB
RTX 5090 32 GB164128K31.0 GB
L40S 48 GB317128K44.0 GB
A100 80 GB7017128K78.2 GB
H100 80 GB6516128K78.1 GB
RTX PRO 6000 Blackwell 96 GB8320128K93.8 GB
DGX Spark (GB10) 128 GB unified9824128K107 GB
H200 141 GB13333128K138 GB
B200 180 GB17644128K176 GB
Memory needed at each load
Requests at once8K tokens each32K tokens each
117.2 GB19.8 GB
520.7 GB33.9 GB
823.3 GB44.5 GB
1630.4 GB72.7 GB
3244.5 GB129 GB
6472.7 GB242 GB

One card, with vLLM's small-card settings.

From the model card

What OmniGen2 says about OmniGen2

Read the model card

🔥 News

Introduction

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:

  • Visual Understanding: Inherits the robust ability to interpret and analyze image content from its Qwen-VL-2.5 foundation.
  • Text-to-Image Generation: Creates high-fidelity and aesthetically pleasing images from textual prompts.
  • Instruction-guided Image Editing: Executes complex, instruction-based image modifications with high precision, achieving state-of-the-art performance among open-source models.
  • In-context Generation: A versatile capability to process and flexibly combine diverse inputs—including humans, reference objects, and scenes—to produce novel and coherent visual outputs.

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!

📌 TODO

  • [x] Technical report.
  • [x] Support CPU offload and improve inference efficiency.
  • [x] In-context generation benchmark: OmniContext.
  • [ ] Integration of diffusers.
  • [x] Training datasets.
  • [ ] Training data construction pipeline.
  • [ ] ComfyUI Demo (commuity support will be greatly appreciated!).

🚀 Quick Start

🛠️ Environment Setup

✅ Recommended Setup
# 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
🌏 For users in Mainland China
# 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

🧪 Run Examples

# 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

🌐 Gradio Demo

  • 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:

    Demo1, Demo2, Demo3, Demo4

    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.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms