Archive of AI

Source Snapshot / 2025-09-28-hunyuanimage-3-0-open-source-3

tencent/HunyuanImage-3.0

Linked event: 2025-09-28 · Tencent Hunyuan open-sources 80B-parameter native multimodal image generation model HunyuanImage-3.0

Publisher
Hugging Face
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / f1109443796f3021
Original URL
Open source ↗
Wayback Backup
Not archived
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

[来源关键摘录] HunyuanImage-3.0 模型权重发布页,记录 2025 年 9 月 28 日正式开源节点及硬件运行说明。

[正文前段节选] Hugging Face

Search models, datasets, users... ⌘K

HunyuanImage-3.0

Tencent 13.8k

Text-to-Image

Transformers

hunyuan_image_3_moe

text-generation

arxiv: 2509.23951

License: tencent-hunyuan-community

Model card Files Files and versions

Copy to bucket

Use this model

🎨 HunyuanImage-3.0: A Powerful Native Multimodal Model for Image Generation

👏 Join our WeChat and Discord |

💻 Official website(官网) Try our model!

January 26, 2026: 🚀 HunyuanImage-3.0-Instruct-Distil - Distilled checkpoint for efficient deployment (8 steps sampling recommended).

January 26, 2026: 🎉 HunyuanImage-3.0-Instruct - Release of Instruct (with reasoning) for intelligent prompt enhancement and Image-to-Image generation for creative editing.

October 30, 2025: 🚀 HunyuanImage-3.0 vLLM Acceleration - Significantly faster inference with vLLM support.

September 28, 2025: 📖 HunyuanImage-3.0 Technical Report - Comprehensive technical documentation now available.

September 28, 2025: 🎉 HunyuanImage-3.0 Open Source - Inference code and model weights publicly available.

🧩 Community Contributions

If you develop/use HunyuanImage-3.0 in your projects, welcome to let us know.

📑 Open-source Plan

HunyuanImage-3.0 (Image Generation Model)

HunyuanImage-3.0 Checkpoints

HunyuanImage-3.0-Instruct Checkpoints (with reasoning)

vLLM Support

Distilled Checkpoints

Image-to-Image Generation

Multi-turn Interaction

📖 Introduction

✨ Key Features

📦 Environment Setup

📥 Install Dependencies

HunyuanImage-3.0 (Text-to-image)

🔥 Quick Start with Transformers

1️⃣ Download model weights

2️⃣ Run with Transformers

🏠 Local Installation & Usage

1️⃣ Clone the Repository

2️⃣ Download Model Weights

3️⃣ Run the Demo

4️⃣ Command Line Arguments

🎨 Interactive Gradio Demo

1️⃣ Install Gradio

2️⃣ Configure Environment

3️⃣ Launch the Web Interface

4️⃣ Access the Interface

HunyuanImage-3.0-Instruct

5️⃣ For fewer Sampling Steps

🧱 Models Cards

📊 Evaluation

Evaluation of HunyuanImage-3.0-Instruct

Evaluation of HunyuanImage-3.0 (Text-to-Image)

Showcases of HunyuanImage-3.0-Instruct

🙏 Acknowledgements

🌟🚀 Github Star History

HunyuanImage-3.0 is a groundbreaking native multimodal model that unifies multimodal understanding and generation within an autoregressive framework. Our text-to-image and image-to-image model achieves performance comparable to or surpassing leading closed-source models.

🧠 Unified Multimodal Architecture: Moving beyond the prevalent DiT-based architectures, HunyuanImage-3.0 employs a unified autoregressive framework. This design enables a more direct and integrated modeling of text and image modalities, leading to surprisingly effective and contextually rich image generation.

🏆 The Largest Image Generation MoE Model: This is the largest open-source image generation Mixture of Experts (MoE) model to date. It features 64 experts and a total of 80 billion parameters, with 13 billion activated per token, significantly enhancing its capacity and performance.

🎨 Superior Image Generation Performance: Through rigorous dataset curation and advanced reinforcement learning post-training, we've achieved an optimal balance between semantic accuracy and visual excellence. The model demonstrates exceptional prompt adherence while delivering photorealistic imagery with stunning aesthetic quality and fine-grained details.

💭 Intelligent Image Understanding and World-Knowledge Reasoning: The unified multimodal architecture endows HunyuanImage-3.0 with powerful reasoning capabilities. It under stands user's input image, and leverages its extensive world knowledge to intelligently interpret user intent, automatically elaborating on sparse prompts with contextually appropriate details to produce superior, more complete visual outputs.

🐍 Python: 3.12+ (recommended and tested)

⚡ CUDA: 12.8

# 1. First install PyTorch (CUDA 12.8 Version)

pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128

# 2. Install tencentcloud-sdk for Prompt Enhancement (PE) only for HunyuanImage-3.0 not HunyuanImage-3.0-Instruct

pip install -i https://mirrors.tencent.com/pypi/simple/ --upgrade tencentcloud-sdk-python

# 3. Then install other dependencies

pip install -r requirements.txt

For up to 3x faster inference, install these optimizations:

# FlashInfer for optimized moe inference. v0.5.0 is tested.

pip install flashinfer-python==0.5.0

💡Installation Tips: It is critical that the CUDA version used by PyTorch matches the system's CUDA version.

FlashInfer relies on this compatibility when compiling kernels at runtime.

GCC version >=9 is recommended for compiling FlashAttention and FlashInfer.

⚡ Performance Tips: These optimizations can significantly speed up your inference!

💡Notation: When FlashInfer is enabled, the first inference may be slower (about 10 minutes) due to kernel compilation. Subsequent inferences on the same machine will be much faster.

# Download from HuggingFace and rename the directory.

# Notice that the directory name should not contain dots, which may cause issues when loading using Transformers.

hf download tencent/HunyuanImage-3.0 --local-dir ./HunyuanImage-3

from transformers import AutoModelForCausalLM

# Load the model

model_id = "./HunyuanImage-3"

# Currently we can not load the model using HF model_id `tencent/HunyuanImage-3.0` directly

# due to the dot in the name.

kwargs = dict(

attn_implementation="sdpa", # Use "flash_attention_2" if FlashAttention is installed

trust_remote_code=True,

torch_dtype="auto",

device_map="auto",

moe_impl="eager", # Use "flashinfer" if FlashInfer is installed

model = AutoModelForCausalLM.from_pretrained(model_id, **kwargs)

model.load_tokenizer(model_id)

# generate the image

prompt = "A brown and white dog is running on the grass"

image = model.generate_image(prompt=prompt, stream=True)

image.save("image.png")

git clone https://github.com/Tencent-Hunyuan/HunyuanImage-3.0.git

cd HunyuanImage-3.0/

# Download from HuggingFace

The Pretrain Checkpoint does not automatically rewrite or enhance input prompts, for optimal results currently, we recommend community partners to use deepseek to rewrite the prompts. You can go to Tencent Cloud to apply for an API Key.

# Without PE

export MODEL_PATH="./HunyuanImage-3"

python3 run_image_gen.py \

--model-id $MODEL_PATH \

--verbose 1 \

--prompt "A brown and white dog is running on the grass" \

--bot-task image \

--image-size "1024x1024" \

--save ./image.png \

--moe-impl flashinfer

export DEEPSEEK_KEY_ID="your_deepseek_key_id"

export DEEPSEEK_KEY_SECRET="your_deepseek_key_secret"

--moe-impl flashinfer \

Input prompt

Attention implementation. Either sdpa or flash_attention_2.

MoE implementation. Either eager or flashinfer

Random seed for image generation

--diff-infer-steps

Diffusion infer steps

--image-size

Image resolution. Can be auto, like 1280x768 or 16:9

Image save path.

Verbose level. 0: No log; 1: log inference information.

Whether to enable rewriting

Launch an interactive web interface for easy text-to-image generation.

pip install gradio>=4.21.0

# Set your model path

export MODEL_ID="path/to/your/model"

# Optional: Configure GPU usage (default: 0,1,2,3)

export GPUS="0,1,2,3"

# Optional: Configure host and port (default: 0.0.0.0:443)

export HOST="0.0.0.0"

export PORT="443"

Basic Launch:

sh run_app.sh

With Performance Optimizations:

# Use both optimizations for maximum performance

sh run_app.sh --moe-impl flashinfer --attn-impl flash_attention_2

🌐 Web Interface: Open your browser and navigate to http://localhost:443 (or your configured port)

Latest Version (Image-to-image & Text-image-to-image)

HunyuanImage-3.0-Instruct (Instruction reasoning and Image-to-image generation, including editing and multi-image fusion)

hf download tencent/HunyuanImage-3.0-Instruct --local-dir ./HunyuanImage-3-Instruct

model_id = "./HunyuanImage-3-Instruct"

[...内容已截断,完整版请查看原文或 Wayback 快照]