-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[HybridParallel]Add scatter-gather for pipeline #34130
Conversation
Thanks for your contribution! |
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
mp_degree=self.mp_degree, | ||
mp_rank=self.mp_rank) | ||
else: | ||
p2p.send(output.detach(), self.next_stage_id) |
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.
detach是防止output后面被改写吗,send_partial为啥没加呢
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.
应该需要添加。主要目的反正梯度回传。
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 for op_function_generator.cc
PR types
Performance optimization
PR changes
Others
Describe
[HybridParallel]Add scatter-gather for pipeline
相对于静态图的scatter-gather优化,这个是动态图的版本.
#34110