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

Add a new operator mp_allreduce_sum #47715

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

LiYuRio
Copy link
Contributor

@LiYuRio LiYuRio commented Nov 7, 2022

PR types

Others

PR changes

OPs

Describe

通信操作本身不应该有反向操作,但在目前的算子体系中,c_allreduce_sum接收use_mp作为它的一个属性,用于在mp场景下,将c_allreduce_sum的后向变成c_identity。为了修改这个语义,新增一个mp_allreduce_sum的操作,专用于mp场景下,并让c_allreduce_sum退化成一个普通的通信op,在下一个pr会清理c_allreduce_sum的use_mp的属性。

@paddle-bot
Copy link

paddle-bot bot commented Nov 7, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@LiYuRio LiYuRio force-pushed the dev_allreduce_sum branch 3 times, most recently from 13b6ae1 to f56860f Compare November 7, 2022 11:57
Copy link
Member

@ForFishes ForFishes left a comment

Choose a reason for hiding this comment

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

LGTM

@sljlp sljlp merged commit 18d3334 into PaddlePaddle:develop Nov 9, 2022
@LiYuRio LiYuRio deleted the dev_allreduce_sum branch November 9, 2022 03:00
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.

4 participants