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

Move collective communication all_gather from collective.py #48339

Merged
merged 2 commits into from
Nov 25, 2022

Conversation

HermitSun
Copy link
Contributor

PR types

Others

PR changes

APIs

Describe

Move all communicated operations from collective.py to communication. Make the communication API under distributed reuse the new implementation under stream module.

Followed by #47255.

@paddle-bot
Copy link

paddle-bot bot commented Nov 24, 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.

Copy link
Contributor

@LiYuRio LiYuRio left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jzhang533 jzhang533 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -24,6 +25,8 @@

__all__ = [
"ReduceOp",
"all_gather",
"all_gather_object",
Copy link
Contributor

Choose a reason for hiding this comment

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

这个是官方公开的对外调用的接口形式不?
paddle.distributed.communication.all_gather()

Copy link
Contributor

Choose a reason for hiding this comment

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

这里务必再提PR改一下,__all__只用来存放对外公开的API

Copy link
Contributor Author

@HermitSun HermitSun Nov 25, 2022

Choose a reason for hiding this comment

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

因为外层的__init__里使用了import *,暂时使用这种写法以避免引入额外的依赖。
后续pr中将会进行清理。

@@ -24,6 +25,8 @@

__all__ = [
"ReduceOp",
"all_gather",
"all_gather_object",
Copy link
Contributor

Choose a reason for hiding this comment

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

这里务必再提PR改一下,__all__只用来存放对外公开的API

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