deepspeedai / deepspeedai/DeepSpeed

Support DualPipe training

Open
#7,100 3 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
43.1k
Forks
5k
Avg merge
4d 15h
Merged PRs (30d)
112

Description

I would like to propose adding support for DualPipe in DeepSpeed. Developed by DeepSeek AI, DualPipe is a bidirectional pipeline parallelism algorithm that enhances training efficiency by fully overlapping forward and backward computation-communication phases, reducing pipeline bubbles, and optimizing resource utilization. This approach allows simultaneous processing of micro-batches from both ends of the pipeline, minimizing idle times and improving throughput, especially beneficial for training large-scale models. Integrating DualPipe into DeepSpeed would provide users with an advanced option for pipeline parallelism, complementing existing features and potentially improving training efficiency for large models. Since DualPipe is implemented with PyTorch 2.0 and above, it should integrate smoothly into DeepSpeed's existing architecture.

https://github.com/deepseek-ai/DualPipe

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files, tests, or entry points; begin by reading DeepSpeed's existing pipeline-parallelism implementation alongside the linked DualPipe project. Define the integration scope and validation criteria for bidirectional micro-batch processing before assessing whether support is complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
distributed-systems, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.