-
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
add cross mesh r_to_s reshard func for auto parrallel. #63962
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
new_ops = [op.name() for op in dist_program.global_block().ops] | ||
|
||
assert 'pd_op.slice' in new_ops | ||
assert 'dist_op.reshard' not in new_ops |
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.
需要更细粒度的check每个 op 的 dist attr
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, thanks!
elif self._backend == "gpu": | ||
place = paddle.CUDAPlace(dist.get_rank()) | ||
|
||
BATCH_SIZE = 2 |
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.
不需要,非network 组网
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, thanks!
455c757
to
ec74702
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
…63962) * add cross mesh r_to_s reshard func for auto parrallel. * fix ci
…63962) * add cross mesh r_to_s reshard func for auto parrallel. * fix ci
PR Category
Auto Parallel
PR Types
New features
Description
self为reshard对象自身
src_dist_attr, dst_dist_attr表示要示reshard行为的源分布式属性和目标分布式属性
src_value表示要被reshard的变量。
该函数会在当前插入点插入相应的算子,根据src_value得到一个dst_value并返回。 对于一些仅插入sendOp的场景,返回值为None。
该函数仅负责插入,不负责删除。删除任务交给调用方去处理。
Other
Pcard-67164