paper-with-me

Papers

DistriFusion: Distributed Parallel Inference for High-Resolution Diffusion Models

2024-02-29 · CVPR 2024 1 · Muyang Li, Tianle Cai, Jiaxin Cao, Qinsheng Zhang, Han Cai, Junjie Bai, Yangqing Jia, Ming-Yu Liu, Kai Li, Song Han

Diffusion models have achieved great success in synthesizing high-quality images. However, generating high-resolution images with diffusion models is still challenging due to the enormous computational costs, resulting in a prohibitive latency for interactive applications. In this paper, we propose DistriFusion to tackle this problem by leveraging parallelism across multiple GPUs. Our method splits the model input into multiple patches and assigns each patch to a GPU. However, naively implementing such an algorithm breaks the interaction between patches and loses fidelity, while incorporating such an interaction will incur tremendous communication overhead. To overcome this dilemma, we observe the high similarity between the input from adjacent diffusion steps and propose displaced patch parallelism, which takes advantage of the sequential nature of the diffusion process by reusing the pre-computed feature maps from the previous timestep to provide context for the current step. Therefore, our method supports asynchronous communication, which can be pipelined by computation. Extensive experiments show that our method can be applied to recent Stable Diffusion XL with no quality degradation and achieve up to a 6.1$\times$ speedup on eight NVIDIA A100s compared to one. Our code is publicly available at https://github.com/mit-han-lab/distrifuser.

📄 PDF Abstract BibTeX arXiv:2402.19481

Code (2)

mit-han-lab/distrifuser 공식 구현 pytorch
pipefusion/pipefusion pytorch

Tasks

GPU

Methods 이 논문이 사용한 방법론

Diffusion Diffusion models generate samples by gradually removing noise from a signal, and their training objective can be expressed as a reweighted variational lower-bound…

Similar Papers 제목 키워드 기반

Partially Conditioned Patch Parallelism for Accelerated Diffusion Model Inference

2024-12-04 · XiuYu Zhang, Zening Luo, Michelle E. Lu

Diffusion models have exhibited exciting capabilities in generating images and are also very promising for video creation. However, the inference speed of diffusion models is limited by the slow sampling process, restric…

DenoisingImage Generation

PipeFusion: Patch-level Pipeline Parallelism for Diffusion Transformers Inference

2024-05-23 · Jiarui Fang, Jinzhe Pan, Jiannan Wang, Aoyu Li 외

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 ima…

Real-Time High-Resolution Pedestrian Detection in Crowded Scenes via Parallel Edge Offloading

2023-01-20 · Hao Wang, Hao Bao, Liekang Zeng, Ke Luo 외

To identify dense and small-size pedestrians in surveillance systems, high-resolution cameras are widely deployed, where high-resolution images are captured and delivered to off-the-shelf pedestrian detection models. How…

Pedestrian DetectionScheduling

LinFusion: 1 GPU, 1 Minute, 16K Image

2024-09-03 · Songhua Liu, Weihao Yu, Zhenxiong Tan, Xinchao Wang

Modern diffusion models, particularly those utilizing a Transformer-based UNet for denoising, rely heavily on self-attention operations to manage complex spatial relationships, thus achieving impressive generation perfor…

16kCausal InferenceDenoisingGPU

Massively Parallel Causal Inference of Whole Brain Dynamics at Single Neuron Resolution

2020-12-02 · Wassapon Watanakeesuntorn, Keichi Takahashi, Kohei Ichikawa, Joseph Park 외

Empirical Dynamic Modeling (EDM) is a nonlinear time series causal inference framework. The latest implementation of EDM, cppEDM, has only been used for small datasets due to computational cost. With the growth of data c…

Causal InferenceGPUTime SeriesTime Series Analysis