AMD-AGI/HummingbirdXT

This repository presents an efficient acceleration pipeline for Diffusion Transformer (DiT) based video generation models, optimized for AMD client-grade GPUs, including Navi48 dGPUs and Strix Halo iGPUs.

17

stars

27

commits

Python

primary language

Jul 13, 2026

updated

diffusion
dit
long-video-generation
python
pytorch
video-generation
Browse cluster: Text-to-Video and Video Generation

README



Bridging the Last Mile: Deploying Hummingbird-XT for Efficient Video Generation on AMD Consumer-Grade Platforms

🔍 Overview

This repository presents an efficient acceleration pipeline for Diffusion Transformer (DiT) based video generation models, optimized for AMD client-grade GPUs, including Navi48 dGPUs and Strix Halo iGPUs.

Built upon this pipeline, we introduce Hummingbird-XT, a new family of DiT-based text-to-video models derived from Wan2.2-5B, achieving high-quality video generation with significantly reduced inference cost.Additionally, to further extend the length of generated videos, we introduce Hummingbird-XTX, an efficient autoregressive model for long-video generation based on Wan-2.1-1.3B, which is capable of generating long videos.

Hummingbird-XT Text-to-Video Showcases

CaptionVideo
Text Prompt (click to expand)
The young East Asian man with short black hair, fair skin, and monolid eyes looks ahead. A young East Asian woman with long black hair and fair skin turns to smile warmly at him. The background is blurred, focusing on their shared gaze. Realistic cinematic style.
Text Prompt (click to expand)
A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about.
Text Prompt (click to expand)
Animated scene features a close-up of a short fluffy monster kneeling beside a melting red candle. The art style is 3D and realistic, with a focus on lighting and texture. The mood of the painting is one of wonder and curiosity, as the monster gazes at the flame with wide eyes and open mouth. Its pose and expression convey a sense of innocence and playfulness, as if it is exploring the world around it for the first time. The use of warm colors and dramatic lighting further enhances the cozy atmosphere of the image.

Hummingbird-XT Image-to-Video Showcases

CaptionVideo
Text Prompt (click to expand)
A back-view close-up focusing on the runner’s feet striking the track. Only subtle movement occurs—his steps land firmly, kicking a small amount of dust or rubber granules. The camera stays low and straight-on behind him, following smoothly with minimal shake. The sunlight is bright, with long shadows stretching forward.
Text Prompt (click to expand)
A graceful woman stands under a majestic sandstone arch, forming a small heart shape with her fingers close to the camera while smiling warmly and radiating joy. Behind her, a smooth and elegant fountain rises gracefully, its water reflecting the warm, inviting courtyard walls in a mirror-like fashion.
Text Prompt (click to expand)
舞台上,一名男子弹奏着一把由闪电构成的电吉他。随着音乐渐强, 火花在他周围噼啪作响。突然,耀眼的光芒转为暗红色,他的双眼 发出幽光,黑色的翅膀从背后羽化而出。他的皮肤变得黝黑,闪电 缠绕着他的身体,他化身为一个恶魔,伫立在翻滚的烟雾和雷鸣之中。

Hummingbird-XTX 20s videos Showcases

CaptionVideo
Text Prompt (click to expand)
Several giant wooly mammoths approach treading through a snowy meadow, their long wooly fur lightly blows in the wind as they walk, snow covered trees and dramatic snow capped mountains in the distance, mid afternoon light with wispy clouds and a sun high in the distance creates a warm glow, the low camera view is stunning capturing the large furry mammal with beautiful photography, depth of field.
Text Prompt (click to expand)
A movie trailer featuring the adventures of the 30 year old space man wearing a red wool knitted motorcycle helmet, blue sky, salt desert, cinematic style, shot on 35mm film, vivid colors.
Text Prompt (click to expand)
A cinematic wide portrait of a man with his face lit by the glow of a TV.

📝 News

  • [2026.07.13]: 🔥🔥We present a ROCm-optimized implementation of video sparse attention (VSA) that delivers 1.37x and 1.33x speedups in the forward and backward passes, respectively, over the original FastVideo implementation on AMD Instinct MI325X GPUs.
  • [2026.02.10]: 🔥🔥Based on the Wan 2.2 5B model, we trained a 5B version of the Hummingbird-XTX long-video generation model, and have now open-sourced all the code and weights.
  • [2026.01.09]: 🔥🔥Release the full code and pre-trained weight of HummingbirdXT!
  • [2026.01.08]: 🔥🔥Release our Blog: Bridging the Last Mile: Deploying Hummingbird-XT for Efficient Video Generation on AMD Consumer-Grade Platforms !

🧬 Models

Hummingbird-XT

  • DiT-based text-to-video model built upon Wan2.2-5B
  • Optimized for few-step inference
  • Designed for efficient deployment on AMD GPUs
  • Maintains competitive visual quality compared to full-step baselines

Hummingbird-XTX (Long Video Extension)

  • Extends Hummingbird-XT to support efficient long video generation
  • Improves temporal consistency across extended sequences
  • Suitable for long-form generation scenarios

Lightweight VAE Decoder

  • Lightweight and efficient VAE decoder

  • Introduces 3D DW Conv to reduce redundancy in original 3D Conv

  • Achieves 14x speedup for decoding and reduce memory usage by 4x

  • Preserves competitive reconstruction and generation quality


⚙️ Installation

Clone this Repo:

git clone https://github.com/AMD-AGI/HummingbirdXT.git
cd HummingbirdXT

Option 1: Conda Environment

conda create -n hummingbirdxt python=3.10
conda activate hummingbirdxt
pip install -r requirements.txt

For rocm flash-attn, you can install it by this link.

git clone https://github.com/ROCm/flash-attention.git
cd flash-attention
python setup.py install

Option 2: Docker

You can download our pre-built Docker image for better reproducibility:

docker pull panisobe/dmd_flash_image_2:latest

You can use docker run to run the image. For example:

docker run -it \
  --shm-size=900g \
  --name hm \
  --network host \
  --ipc=host \
  --cap-add=SYS_PTRACE \
  --security-opt seccomp=unconfined \
  --device=/dev/kfd \
  --device=/dev/dri \
  --group-add video \
  -e HSA_OVERRIDE_GFX_VERSION=11.0.0 \
  -v /home:/home \
  panisobe/dmd_flash_image_2_release:latest

🚀 Getting Started for Video Generation

You can download the weights for all our models from our models' huggingface: amd/HummingbirdXT.

Rocm-VSA

cd ./HummingbirdXT_VSA/train 
bash running_scripts/train/dmd.sh 

HummingbirdXT Video Generation

cd infer
bash run_t2v.sh # for text-to-video  task
bash run_i2v.sh # for image-to-video task

If you use docker, you should make sure diffusers==0.35.0. To use Lightweight VAE decoder in generation, add the below parameters after running command in run_t2v.sh and run_i2v.sh:

--vae_model ${VAE_PATH_ROOT}/wan22_v1_tiling_16_12 --t_block_size 16 --t_stride 12  

HummingbirdXTX Long Video Generation

For 5B model, you can run below commands:

cd long_video
bash infer.sh

For 1.3B model, you can run this commamd:

cd long_video
bash infer_1_3b.sh

🧪 Training & Implementation

HummingbirdXT Training

First you need to enter the train folder:

cd train

Step 1: Download the Teacher Model We use Wan2.2-TI2V-5B as the teacher model for step distillation.

pip install "huggingface_hub[hf_transfer]"
HF_HUB_ENABLE_HF_TRANSFER=1 --local-dir wan_models/Wan2.2-TI2V-5B

Step 2: Prepare Training Datasets We train our models on a mixture of large-scale video datasets, including: MagicData,OpenVid,HumanVid

Please update the dataset root paths in the corresponding CSV files to match your local storage layout. You can download the csv file from our models' huggingface: amd/HummingbirdXT.

Step 3: Launch Training Start the step distillation training using the provided script:

bash running_scripts/train/dmd.sh

The training pipeline demonstrates stable loss convergence across all models.

Reference Training Configuration: GPUs: 16 × AMD MI325, Iterations: 4000, Training time: ~48 hours.

HummingbirdXTX Training

Step 1: ODE Initialization(Optional)

cd long_video
bash train_ode.sh

Or you can directly download our trained ODE initialization weights from our models' huggingface: amd/HummingbirdXT, for the second stage of training.

Step 2: DMD Training

bash train_dmd.sh

📊 Experimental Results

Table 1. Quantitative results for the text-to-video task on VBench.

ModelQuality Score ↑Semantic Score ↑Total Score ↑
Wan-2.2-5B-T2V w/o recap82.7568.3879.88
Wan-2.2-5B-T2V with recap83.9977.0482.60
Ours-T2V w/o recap84.0754.7578.20
Ours-T2V with recap85.7172.3383.03

Table 2. Quantitative results for the image-to-video task on VBench.

ModelVideo-Image Subject Consistency ↑Video-Image Background Consistency ↑Quality Score ↑
Wan-2.2-5B-I2V w/o recap97.8999.0481.43
Wan-2.2-5B-I2V with recap97.6398.9581.06
Ours-I2V w/o recap98.4698.9180.01
Ours-I2V with recap98.4298.9980.57

Table 3. Runtime for generating a 121-frame video at 704×1280 resolution on server-grade (AMD Instinct™ MI300X and AMD Instinct™ MI325X GPU) and client-grade (Strix Halo and Navi48).

ModelMI300XMI325XStrix Halo iGPUNavi48 dGPU
Wan-2.2-5B193.4s153.9s15000sOOM
Ours6.5s3.8s460s36.4s

Table 4. Performance and efficiency comparison of different VAE decoders on AMD Instinct™ MI300X GPU.

ModelLPIPS ↓PSNR ↑SSIM ↑RunTime ↓Memory ↓
Wan-2.2 VAE0.014135.9790.959831.34s11.37G
TAEW2.20.057529.5990.89530.14s1.35G
Ours VAE0.026034.6350.94832.29s2.71G

Table 5. Quantitative results for long video generation on three benchmarks.

ModelFPS ↑Flicker Metric ↓DOVER ↑VBench Quality ↑VBench Semantic ↑VBench Total ↑
Self-Forcing19.280.101084.3781.9980.0981.61
Causvid18.240.097282.7781.9677.0280.97
LongLive21.320.094784.0782.8681.6182.61
RollingForcing19.570.092885.1682.9480.6182.47
Ours26.380.094684.5583.4279.2282.58

🤗Additional Resources

Huggingface model cards: AMD-HummingbirdXT

Full training code: AMD-AIG-AIMA/HummingbirdXT

Related work on diffusion models by the AMD team:

Please refer to the following resources to get started with training on AMD ROCm™ software:


❤️ Acknowledgement

Our codebase builds on Wan 2.1, Wan 2.2, Self-Forcing, VideoX-Fun .Thanks the authors for sharing their awesome codebases!


📋 Citations

Feel free to cite our Hummingbird-XT models and give us a star⭐, if you find our work helpful. Thank you.

Contributors

AdvancedHe

24 commits

lxgsbqylbk

2 commits

williwan4

1 commits

AMD-AGI/HummingbirdXT

This repository presents an efficient acceleration pipeline for Diffusion Transformer (DiT) based video generation models, optimized for AMD client-grade GPUs, including Navi48 dGPUs and Strix Halo iGPUs.

17

stars

27

commits

Python

primary language

Jul 13, 2026

updated

diffusion
dit
long-video-generation
python
pytorch
video-generation
Browse cluster: Text-to-Video and Video Generation

README



Bridging the Last Mile: Deploying Hummingbird-XT for Efficient Video Generation on AMD Consumer-Grade Platforms

🔍 Overview

This repository presents an efficient acceleration pipeline for Diffusion Transformer (DiT) based video generation models, optimized for AMD client-grade GPUs, including Navi48 dGPUs and Strix Halo iGPUs.

Built upon this pipeline, we introduce Hummingbird-XT, a new family of DiT-based text-to-video models derived from Wan2.2-5B, achieving high-quality video generation with significantly reduced inference cost.Additionally, to further extend the length of generated videos, we introduce Hummingbird-XTX, an efficient autoregressive model for long-video generation based on Wan-2.1-1.3B, which is capable of generating long videos.

Hummingbird-XT Text-to-Video Showcases

CaptionVideo
Text Prompt (click to expand)
The young East Asian man with short black hair, fair skin, and monolid eyes looks ahead. A young East Asian woman with long black hair and fair skin turns to smile warmly at him. The background is blurred, focusing on their shared gaze. Realistic cinematic style.
Text Prompt (click to expand)
A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about.
Text Prompt (click to expand)
Animated scene features a close-up of a short fluffy monster kneeling beside a melting red candle. The art style is 3D and realistic, with a focus on lighting and texture. The mood of the painting is one of wonder and curiosity, as the monster gazes at the flame with wide eyes and open mouth. Its pose and expression convey a sense of innocence and playfulness, as if it is exploring the world around it for the first time. The use of warm colors and dramatic lighting further enhances the cozy atmosphere of the image.

Hummingbird-XT Image-to-Video Showcases

CaptionVideo
Text Prompt (click to expand)
A back-view close-up focusing on the runner’s feet striking the track. Only subtle movement occurs—his steps land firmly, kicking a small amount of dust or rubber granules. The camera stays low and straight-on behind him, following smoothly with minimal shake. The sunlight is bright, with long shadows stretching forward.
Text Prompt (click to expand)
A graceful woman stands under a majestic sandstone arch, forming a small heart shape with her fingers close to the camera while smiling warmly and radiating joy. Behind her, a smooth and elegant fountain rises gracefully, its water reflecting the warm, inviting courtyard walls in a mirror-like fashion.
Text Prompt (click to expand)
舞台上,一名男子弹奏着一把由闪电构成的电吉他。随着音乐渐强, 火花在他周围噼啪作响。突然,耀眼的光芒转为暗红色,他的双眼 发出幽光,黑色的翅膀从背后羽化而出。他的皮肤变得黝黑,闪电 缠绕着他的身体,他化身为一个恶魔,伫立在翻滚的烟雾和雷鸣之中。

Hummingbird-XTX 20s videos Showcases

CaptionVideo
Text Prompt (click to expand)
Several giant wooly mammoths approach treading through a snowy meadow, their long wooly fur lightly blows in the wind as they walk, snow covered trees and dramatic snow capped mountains in the distance, mid afternoon light with wispy clouds and a sun high in the distance creates a warm glow, the low camera view is stunning capturing the large furry mammal with beautiful photography, depth of field.
Text Prompt (click to expand)
A movie trailer featuring the adventures of the 30 year old space man wearing a red wool knitted motorcycle helmet, blue sky, salt desert, cinematic style, shot on 35mm film, vivid colors.
Text Prompt (click to expand)
A cinematic wide portrait of a man with his face lit by the glow of a TV.

📝 News

  • [2026.07.13]: 🔥🔥We present a ROCm-optimized implementation of video sparse attention (VSA) that delivers 1.37x and 1.33x speedups in the forward and backward passes, respectively, over the original FastVideo implementation on AMD Instinct MI325X GPUs.
  • [2026.02.10]: 🔥🔥Based on the Wan 2.2 5B model, we trained a 5B version of the Hummingbird-XTX long-video generation model, and have now open-sourced all the code and weights.
  • [2026.01.09]: 🔥🔥Release the full code and pre-trained weight of HummingbirdXT!
  • [2026.01.08]: 🔥🔥Release our Blog: Bridging the Last Mile: Deploying Hummingbird-XT for Efficient Video Generation on AMD Consumer-Grade Platforms !

🧬 Models

Hummingbird-XT

  • DiT-based text-to-video model built upon Wan2.2-5B
  • Optimized for few-step inference
  • Designed for efficient deployment on AMD GPUs
  • Maintains competitive visual quality compared to full-step baselines

Hummingbird-XTX (Long Video Extension)

  • Extends Hummingbird-XT to support efficient long video generation
  • Improves temporal consistency across extended sequences
  • Suitable for long-form generation scenarios

Lightweight VAE Decoder

  • Lightweight and efficient VAE decoder

  • Introduces 3D DW Conv to reduce redundancy in original 3D Conv

  • Achieves 14x speedup for decoding and reduce memory usage by 4x

  • Preserves competitive reconstruction and generation quality


⚙️ Installation

Clone this Repo:

git clone https://github.com/AMD-AGI/HummingbirdXT.git
cd HummingbirdXT

Option 1: Conda Environment

conda create -n hummingbirdxt python=3.10
conda activate hummingbirdxt
pip install -r requirements.txt

For rocm flash-attn, you can install it by this link.

git clone https://github.com/ROCm/flash-attention.git
cd flash-attention
python setup.py install

Option 2: Docker

You can download our pre-built Docker image for better reproducibility:

docker pull panisobe/dmd_flash_image_2:latest

You can use docker run to run the image. For example:

docker run -it \
  --shm-size=900g \
  --name hm \
  --network host \
  --ipc=host \
  --cap-add=SYS_PTRACE \
  --security-opt seccomp=unconfined \
  --device=/dev/kfd \
  --device=/dev/dri \
  --group-add video \
  -e HSA_OVERRIDE_GFX_VERSION=11.0.0 \
  -v /home:/home \
  panisobe/dmd_flash_image_2_release:latest

🚀 Getting Started for Video Generation

You can download the weights for all our models from our models' huggingface: amd/HummingbirdXT.

Rocm-VSA

cd ./HummingbirdXT_VSA/train 
bash running_scripts/train/dmd.sh 

HummingbirdXT Video Generation

cd infer
bash run_t2v.sh # for text-to-video  task
bash run_i2v.sh # for image-to-video task

If you use docker, you should make sure diffusers==0.35.0. To use Lightweight VAE decoder in generation, add the below parameters after running command in run_t2v.sh and run_i2v.sh:

--vae_model ${VAE_PATH_ROOT}/wan22_v1_tiling_16_12 --t_block_size 16 --t_stride 12  

HummingbirdXTX Long Video Generation

For 5B model, you can run below commands:

cd long_video
bash infer.sh

For 1.3B model, you can run this commamd:

cd long_video
bash infer_1_3b.sh

🧪 Training & Implementation

HummingbirdXT Training

First you need to enter the train folder:

cd train

Step 1: Download the Teacher Model We use Wan2.2-TI2V-5B as the teacher model for step distillation.

pip install "huggingface_hub[hf_transfer]"
HF_HUB_ENABLE_HF_TRANSFER=1 --local-dir wan_models/Wan2.2-TI2V-5B

Step 2: Prepare Training Datasets We train our models on a mixture of large-scale video datasets, including: MagicData,OpenVid,HumanVid

Please update the dataset root paths in the corresponding CSV files to match your local storage layout. You can download the csv file from our models' huggingface: amd/HummingbirdXT.

Step 3: Launch Training Start the step distillation training using the provided script:

bash running_scripts/train/dmd.sh

The training pipeline demonstrates stable loss convergence across all models.

Reference Training Configuration: GPUs: 16 × AMD MI325, Iterations: 4000, Training time: ~48 hours.

HummingbirdXTX Training

Step 1: ODE Initialization(Optional)

cd long_video
bash train_ode.sh

Or you can directly download our trained ODE initialization weights from our models' huggingface: amd/HummingbirdXT, for the second stage of training.

Step 2: DMD Training

bash train_dmd.sh

📊 Experimental Results

Table 1. Quantitative results for the text-to-video task on VBench.

ModelQuality Score ↑Semantic Score ↑Total Score ↑
Wan-2.2-5B-T2V w/o recap82.7568.3879.88
Wan-2.2-5B-T2V with recap83.9977.0482.60
Ours-T2V w/o recap84.0754.7578.20
Ours-T2V with recap85.7172.3383.03

Table 2. Quantitative results for the image-to-video task on VBench.

ModelVideo-Image Subject Consistency ↑Video-Image Background Consistency ↑Quality Score ↑
Wan-2.2-5B-I2V w/o recap97.8999.0481.43
Wan-2.2-5B-I2V with recap97.6398.9581.06
Ours-I2V w/o recap98.4698.9180.01
Ours-I2V with recap98.4298.9980.57

Table 3. Runtime for generating a 121-frame video at 704×1280 resolution on server-grade (AMD Instinct™ MI300X and AMD Instinct™ MI325X GPU) and client-grade (Strix Halo and Navi48).

ModelMI300XMI325XStrix Halo iGPUNavi48 dGPU
Wan-2.2-5B193.4s153.9s15000sOOM
Ours6.5s3.8s460s36.4s

Table 4. Performance and efficiency comparison of different VAE decoders on AMD Instinct™ MI300X GPU.

ModelLPIPS ↓PSNR ↑SSIM ↑RunTime ↓Memory ↓
Wan-2.2 VAE0.014135.9790.959831.34s11.37G
TAEW2.20.057529.5990.89530.14s1.35G
Ours VAE0.026034.6350.94832.29s2.71G

Table 5. Quantitative results for long video generation on three benchmarks.

ModelFPS ↑Flicker Metric ↓DOVER ↑VBench Quality ↑VBench Semantic ↑VBench Total ↑
Self-Forcing19.280.101084.3781.9980.0981.61
Causvid18.240.097282.7781.9677.0280.97
LongLive21.320.094784.0782.8681.6182.61
RollingForcing19.570.092885.1682.9480.6182.47
Ours26.380.094684.5583.4279.2282.58

🤗Additional Resources

Huggingface model cards: AMD-HummingbirdXT

Full training code: AMD-AIG-AIMA/HummingbirdXT

Related work on diffusion models by the AMD team:

Please refer to the following resources to get started with training on AMD ROCm™ software:


❤️ Acknowledgement

Our codebase builds on Wan 2.1, Wan 2.2, Self-Forcing, VideoX-Fun .Thanks the authors for sharing their awesome codebases!


📋 Citations

Feel free to cite our Hummingbird-XT models and give us a star⭐, if you find our work helpful. Thank you.

Contributors

AdvancedHe

24 commits

lxgsbqylbk

2 commits

williwan4

1 commits

Languages

Python

97.2%

Cuda

1.0%