-
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
Sequence Parallel Support Overlap #62284
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
ctx.model_parallel_group = model_parallel_group | ||
|
||
world_size = model_parallel_group.nranks | ||
is_mp = world_size > 1 |
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.
这个是不是直接assert is_mp就行了?
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.
请完善下PR Tile和PR描述,PR描述中应说清楚本PR的工作内容,并且最好贴出修改前后的Timeline。
input_parallel = x | ||
output = self.linear( | ||
input_parallel, self.weight, self.bias, name=self._name | ||
# sequence parallelism is same as model parallelis, if sequence parallel is true, input shape is [s, b, h],else input shape is [b, s, h] |
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.
mp_async_allreduce
也会有单独开启的情况,即mp_async_allreduce=True
、mp_fused_linear_param_grad_add=False
?可以在下个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.
ok
PR types
Performance optimization
PR changes
OPs
Description
1、本PR主要支持SP支持计算通信重叠功能
2、逐位对齐实验结果,在llama2 13B上开main_grad逐位对齐结果如下,bf16 main_grad, fp16 main_grad,bf16 no main_grad, fp16 no main_grad均能逐位对齐
3、更新前后的timeline结果对比
Pcard-73145