-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this 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", |
There was a problem hiding this comment.
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()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里务必再提PR改一下,__all__只用来存放对外公开的API
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里务必再提PR改一下,__all__只用来存放对外公开的API
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.