AMD introduces xDiT open-source inference engine for ComfyUI on ROCm
xDiT enables distributed diffusion transformer inference by sharding large models across multiple AMD GPUs within the ComfyUI workflow.
Summary
AMD has announced xDiT, an open-source inference engine specifically designed for diffusion transformers. The engine allows users to split single image or video generation tasks across multiple GPUs, sharding large models to fit within the combined VRAM of a multi-GPU setup. This release is integrated into ComfyUI via a set of custom nodes that manage model loading and distributed execution through a visual interface.
The project is built upon AMD's Diffusion Model Inference infrastructure, which provides optimized container images and benchmark configurations. Users can deploy the stack using a ready-to-run Docker container tailored for specific hardware profiles, such as AMD Instinct (MI300/MI350 series) or RDNA 4 (gfx1201) architectures, or by installing the custom nodes directly into an existing ComfyUI environment.
Technical architecture and deployment of xDiT
- Distributed Inference: The engine implements model sharding and task splitting to enable large-scale diffusion transformer workloads across multiple GPUs.
- Hardware Profiles: The deployment system includes specialized profiles for different AMD architectures, including 'instinct' for MI300/MI350 series (gfx942/gfx950) and 'rdna4' for gfx1201 systems.
- ComfyUI Integration: Custom nodes provide a high-level abstraction for complex runtime options, allowing users to select tested presets based on GPU count and model type rather than manual configuration.
- Containerized Stack: The solution utilizes Docker-based deployment that bundles a validated ROCm software stack, pinned benchmark configurations, and optimized xDiT images to ensure environment consistency.
Why it matters
By providing a scalable way to run massive generative models on ROCm, AMD is lowering the barrier for local AI development on consumer and enterprise AMD hardware. This development helps bridge the gap in distributed inference capabilities for the open-source ComfyUI ecosystem, specifically targeting users with multi-GPU RDNA 4 or Instinct setups.
What to do
- Ensure you have a Linux system with a supported ROCm environment and ComfyUI 0.28.0 or newer.
- To use the containerized stack, clone the xdit-comfyui repository and run the scripts/docker/run_dev.sh script using either the 'instinct' or 'rdna4' profile depending on your hardware.
- To install custom nodes into an existing environment, clone the repository into ComfyUI/custom_nodes and run 'python -m pip install -r xdit-comfyui/requirements.txt' using your ComfyUI Python interpreter.
Original reference: rocm.blogs.amd.com →