xDiT
Multi-GPU inference engine for diffusion transformers using hybrid parallelism techniques.
About
Serving diffusion transformers across many GPUs is the niche xDiT fills. The engine parallelizes DiT inference through several composable techniques: Unified Sequence Parallelism, PipeFusion's patch-level pipeline parallelism that exploits redundancy between adjacent diffusion steps, CFG parallel for classifier-free guidance, and conventional data and tensor parallelism, with cache-based accelerations such as TeaCache and First-Block-Cache stackable on top. More than 30 models are supported, including FLUX, HunyuanVideo, CogVideoX, SANA, PixArt, and Stable Diffusion 3, running on NVIDIA GPUs as well as AMD MI300X class accelerators, with attention backends covering Flash Attention, cuDNN, and AITER. Installation is pip install xfuser, from source, or via Docker images, and the repository documents both the framework design and the process for adding new models. The methods are described in arXiv paper 2411.01738. Apache-2.0 licensed with roughly 2,700 stars and 767 commits, it is aimed at deployments where single-GPU latency for large image and video models is unacceptable.
Should you use xDiT?
Pick it when
Pick xDiT when you serve FLUX, HunyuanVideo, or CogVideoX on a multi-GPU server, NVIDIA or AMD MI300X class, and single-GPU latency is too high for your product, combining sequence, pipeline, and CFG parallelism with caching.
Look elsewhere when
Skip it on a single consumer GPU, where there is little to parallelize: Nunchaku cuts memory and time on one card, and TeaCache alone gives training-free speedups. It is an inference engine with no UI and a demanding setup.
Alternatives to xDiT
- TeaCache
Training-free caching on one GPU with per-model scripts, much simpler to adopt, though xDiT can already stack it with multi-GPU parallelism.
- Nunchaku
4-bit inference that speeds up FLUX and Qwen-Image on one NVIDIA card, down to 3 GiB with offload, a single-card answer rather than a multi-GPU one.
- Ray Serve
General serving layer for autoscaling replicas and composing models across a cluster, but it does not split one diffusion generation across GPUs.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- Diffusion Model Tools & UIs
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Advanced (4/5)
- License
- Apache-2.0
- Added
- Jul 29, 2026