-
Notifications
You must be signed in to change notification settings - Fork 5.8k
refine pir dist to_static to support master weight #65089
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
0f88dff
to
5cc030f
Compare
f7abc73
to
7cb803d
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.
@@ -2867,4 +2867,37 @@ void BindEagerUtils(PyObject* module) { | |||
} | |||
} | |||
|
|||
std::tuple<std::vector<int64_t>, | |||
paddle::flat_hash_map<int64_t, phi::ReduceType>> | |||
CvtPlacements(Placements placements, int ndim) { |
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.
CvtToPlacements会不会更好点?
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.
Fix it in the next 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.
LGTM
): | ||
is_dist = True | ||
|
||
def to_dist(value): |
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.
这个名字感觉会有点歧义,感觉有两种理解:
to_dist_from_global()
to_dist_from_local()
是否需要加以区分?
* refine pir dist to_static * fix bug * fix partial
PR Category
Auto Parallel
PR Types
Bug fixes
Description
ATT
convert placements to dim_map and partial_status
distMetaTensor.initialzed()
to support calling spmd from static graphPcard-76459