CVAIPFMay 23, 2024

PipeFusion: Patch-level Pipeline Parallelism for Diffusion Transformers Inference

arXiv:2405.14430v325 citationsh-index: 4Has Code
Originality Incremental advance
AI Analysis

This addresses latency issues for users of high-resolution diffusion transformer models, representing an incremental improvement in inference parallelism.

The paper tackles high latency in generating high-resolution images with diffusion transformers by introducing PipeFusion, a patch-level pipeline parallelism method that partitions images and model layers across GPUs and reuses stale feature maps to reduce communication costs. It achieves state-of-the-art performance on 8xL40 PCIe GPUs for models like Pixart, Stable-Diffusion 3, and Flux.1.

This paper presents PipeFusion, an innovative parallel methodology to tackle the high latency issues associated with generating high-resolution images using diffusion transformers (DiTs) models. PipeFusion partitions images into patches and the model layers across multiple GPUs. It employs a patch-level pipeline parallel strategy to orchestrate communication and computation efficiently. By capitalizing on the high similarity between inputs from successive diffusion steps, PipeFusion reuses one-step stale feature maps to provide context for the current pipeline step. This approach notably reduces communication costs compared to existing DiTs inference parallelism, including tensor parallel, sequence parallel and DistriFusion. PipeFusion also exhibits superior memory efficiency, because it can distribute model parameters across multiple devices, making it more suitable for DiTs with large parameter sizes, such as Flux.1. Experimental results demonstrate that PipeFusion achieves state-of-the-art performance on 8xL40 PCIe GPUs for Pixart, Stable-Diffusion 3 and Flux.1 models.Our Source code is available at https://github.com/xdit-project/xDiT.

Code Implementations2 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes