#137 · Primary category: Deep Learning Frameworks
DualPipe
A bidirectional pipeline parallelism algorithm for computation-communication overlap in DeepSeek V3/R1 training.
Project last updated:01/14/26
GitHub Stars
3.0K
Forks
332
Contributors
7
License
MIT
Why we included this project
DualPipe is the bidirectional pipeline parallelism algorithm DeepSeek used to train V3 and R1. It overlaps forward and backward computation with communication so GPUs stay busy instead of idling in pipeline bubbles between micro-batches. The repo includes runnable Python examples for both the original DualPipe schedule and the simpler DualPipeV variant, plus a comparison table that lays out the bubble and memory trade-offs against the standard 1F1B and ZB1P approaches. Teams training very large language models across many GPUs will find it a useful reference for getting more throughput out of pipeline-parallel setups. Treat it as a scheduling blueprint to adapt into your own stack rather than a turnkey framework: real deployments require wiring in a custom overlapped forward-backward method.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
tensorflow
An Open Source Machine Learning Framework for Everyone
pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration
keras
Deep Learning for humans
nanoGPT
The simplest, fastest repository for training/finetuning medium-sized GPTs.
ray
Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.