xDiT diffusion inference#

The rocm/pytorch-xdit Docker image offers a prebuilt, optimized environment based on xDiT for benchmarking diffusion model video and image generation on gfx942 and gfx950 series (AMD Instinct™ MI300X, MI325X, MI350X, and MI355X) GPUs. The image runs ROCm 7.14.0 release through TheRock and includes the following components:

Software components - xdit:v26.7

Software component

Version

TheRock

9100ec6

rocm-libraries

9d056e8

rocm-systems

1b2a555

torch

ff65f5b

torchaudio

e3c6ee2

torchvision

b919bd0

triton

a272dfa

aiter

3a526149

diffusers

447e571a

distvae

6d8025c9

xfuser

c302663

yunchang

631bdfd

Follow this guide to pull the required image, spin up a container, download the model, and run a benchmark. For preview and development releases, see amdsiloai/pytorch-xdit.

What’s new#

  • ROCm 7.14.0 bump

  • LTX2.3 support

  • Sparge head balancing

Supported models#

The following models are supported for inference performance benchmarking. Some instructions, commands, and recommendations in this documentation might vary by model – select one to get started.

Model
Variant
Variant
Variant
Variant
Variant
Variant
Variant

System validation#

Before running AI workloads, it’s important to validate that your AMD hardware is configured correctly and performing optimally.

If you have already validated your system settings, including aspects like NUMA auto-balancing, you can skip this step. Otherwise, complete the procedures in the System validation and optimization guide to properly configure your system settings before starting.

To test for optimal performance, consult the recommended System health benchmarks. This suite of tests will help you verify and fine-tune your system’s configuration.

Pull the Docker image#

For this tutorial, it’s recommended to use the latest rocm/pytorch-xdit:v26.7 Docker image. Pull the image using the following command:

docker pull rocm/pytorch-xdit:v26.7

Validate and benchmark#

Once the image has been downloaded you can follow these steps to run benchmarks and generate outputs.

Choose your setup method#

You can either use an existing Hugging Face cache or download the model fresh inside the container.

Run inference#

Previous versions#

See xDiT diffusion inference version history.