Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Distributed] Support pp non batch comm #8097

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

SylarTiaNII
Copy link
Contributor

PR types

New features

PR changes

Others

Description

[Pcard-79653]
Support using non-batched communication in pipeline schedule.
To enable this function, add following param when launching scripts of PaddleNLP:

--pipeline_parallel_config "disable_batch_p2p_comm"

Copy link

paddle-bot bot commented Mar 11, 2024

Thanks for your contribution!

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.25%. Comparing base (69ba53f) to head (9b13993).

Additional details and impacted files
@@             Coverage Diff              @@
##           release/2.7    #8097   +/-   ##
============================================
  Coverage        57.25%   57.25%           
============================================
  Files              584      584           
  Lines            87861    87861           
============================================
  Hits             50306    50306           
  Misses           37555    37555           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -971,6 +974,7 @@ def __post_init__(self):
and self.sharding_parallel_degree > 1,
"enable_timer": "enable_timer" in pipeline_parallel_config,
"release_gradients": "enable_release_grads" in pipeline_parallel_config,
"use_batch_p2p_comm": "disable_batch_p2p_comm" not in pipeline_parallel_config,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我再确定一下,这一多加一个参数,不会导致2.6.0 paddle跑 pipeline 的时候报错吧?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不会,这个参数没有修改默认逻辑。

@ZHUI ZHUI merged commit d7b5939 into PaddlePaddle:release/2.7 Mar 14, 2024
6 of 7 checks passed
SylarTiaNII added a commit to SylarTiaNII/PaddleNLP that referenced this pull request Mar 14, 2024
* add disable_non_batch_p2p_comm to pipeline_parallel_config
ZHUI pushed a commit that referenced this pull request Apr 2, 2024
* add disable_non_batch_p2p_comm to pipeline_parallel_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants