-
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
[Auto Parallel] Adapt Partitioner & DistOp for ERNIE3.0 Inference and cache #39895
[Auto Parallel] Adapt Partitioner & DistOp for ERNIE3.0 Inference and cache #39895
Conversation
Thanks for your contribution! |
|
||
# modify shape attr according to how output are partitioned | ||
out_name = op.output('Out')[0] | ||
dim_mapping = op_dist_attr.get_output_dims_mapping(out_name) |
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.
Please rename dim_mapping
to dims_mapping
.
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.
fixed
|
||
return True | ||
|
||
def is_auto_compatible(self, dist_op): |
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.
The compatible restrictions may be a little loose.
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.
fixed
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
Function optimization
PR changes
Others
Describe
自动并行适配 ERNIE 预测中的 while 和cache 机制