Pipeline parallel inference for video diffusion models by splitting diffusion steps (temporal axis) across multiple GPUs.
This repository explores how A5000 × 7 GPUs can be used to accelerate video generation not by model or frame parallelism, but by diffusion step pipeline parallelism.
Video diffusion models are slow because diffusion steps must be executed sequentially.
Increasing GPU count alone does not reduce latency unless we restructure computation. This project addresses the bottleneck by pipelining diffusion steps across GPUs, enabling higher throughput in multi-sample generation scenarios.
Noise ↓ GPU0 (step 0–4) ↓ GPU1 (step 5–9) ↓ GPU2 (step 10–14) ↓ GPU3 (step 15–19) ↓ GPU4 (step 20–24) ↓ GPU5 (step 25–29) ↓ GPU6 (step 30–34) → Video
| Configuration | Time per video |
|---|---|
| Single GPU | 40–60 sec |
| 7 GPU (first sample) | ~35 sec |
| 7 GPU (steady state) | 8–12 sec |
Throughput improves significantly when generating multiple videos sequentially.
This project focuses on system design and inference structure. It is not intended to compete with end-to-end optimized production systems.
MIT
24 commits
1 commits
Python
93.8%
Shell
6.2%
Pipeline parallel inference for video diffusion models by splitting diffusion steps (temporal axis) across multiple GPUs.
This repository explores how A5000 × 7 GPUs can be used to accelerate video generation not by model or frame parallelism, but by diffusion step pipeline parallelism.
Video diffusion models are slow because diffusion steps must be executed sequentially.
Increasing GPU count alone does not reduce latency unless we restructure computation. This project addresses the bottleneck by pipelining diffusion steps across GPUs, enabling higher throughput in multi-sample generation scenarios.
Noise ↓ GPU0 (step 0–4) ↓ GPU1 (step 5–9) ↓ GPU2 (step 10–14) ↓ GPU3 (step 15–19) ↓ GPU4 (step 20–24) ↓ GPU5 (step 25–29) ↓ GPU6 (step 30–34) → Video
| Configuration | Time per video |
|---|---|
| Single GPU | 40–60 sec |
| 7 GPU (first sample) | ~35 sec |
| 7 GPU (steady state) | 8–12 sec |
Throughput improves significantly when generating multiple videos sequentially.
This project focuses on system design and inference structure. It is not intended to compete with end-to-end optimized production systems.
MIT
24 commits
1 commits
Python
93.8%
Shell
6.2%