-
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
【AutoParallel】Promote fuselinear pass in auto-parallel #59188
【AutoParallel】Promote fuselinear pass in auto-parallel #59188
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.
Add an unittest
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
PR types
Performance optimization
PR changes
Others
Description
Pcard-76459
Add a pass before the
fused_linear
pass to promote the performance. This pass mainly solve the following scenario when enabling the MP or TP parallelism:linear
operator as follows:MP
orTP
, somelinear
operators may become as follows:The communication operator prohibits the
matmul
andadd
from being fused.experiment
Take the experiment on the GPT-3 with 6.7B parameters using the single host with 8 V100 GPUs: