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

[HybridParallel]Add scatter-gather for pipeline #34130

Merged
merged 5 commits into from
Jul 14, 2021

Conversation

ForFishes
Copy link
Member

@ForFishes ForFishes commented Jul 13, 2021

PR types

Performance optimization

PR changes

Others

Describe

[HybridParallel]Add scatter-gather for pipeline
相对于静态图的scatter-gather优化,这个是动态图的版本.
#34110
image

image

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

wangxicoding
wangxicoding previously approved these changes Jul 13, 2021
Copy link
Contributor

@wangxicoding wangxicoding left a comment

Choose a reason for hiding this comment

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

LGTM

mp_degree=self.mp_degree,
mp_rank=self.mp_rank)
else:
p2p.send(output.detach(), self.next_stage_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

detach是防止output后面被改写吗,send_partial为啥没加呢

Copy link
Member Author

Choose a reason for hiding this comment

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

应该需要添加。主要目的反正梯度回传。

Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM for op_function_generator.cc

@ForFishes ForFishes merged commit 46879ff into PaddlePaddle:develop Jul 14, 2021
@ForFishes ForFishes deleted the mp_pp_scatter_gather branch July 14, 2021 13:37
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.

3 participants