-
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] add softmax backward spmd rule #59039
Conversation
ef46bfa
to
cc8c2f6
Compare
axis = axis < 0 ? out.dims().size() + axis : axis; | ||
|
||
// TODO(cxxly): Simplifies the code logic of sharding propagation using | ||
// primitive operators. |
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.
目前是想尝试用一种通用策略去推导,比如一些复杂运算逻辑,直观上不太好推导,但是拆成一些小的表达式,数学上一定是能够推导正确。
import paddle.distributed as dist | ||
|
||
|
||
class TestSoftmaxApiForSemiAutoParallel: |
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.
可以多加一些单测?比如输入三个维度,batch维和softmax维同时切
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.
DONE
LGTM |
6b15be9
to
d236503
Compare
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
60cfa7c
to
cd3dab1
Compare
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
New features
PR changes
Others
Description
Pcard-73145
dd softmax backward spmd rule.