-
Notifications
You must be signed in to change notification settings - Fork 5.8k
【Auto-Parallel】support sharding overlap in PIR #69390
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提交成功,感谢你对开源项目的贡献! |
83dd5d8
to
95d774f
Compare
95d774f
to
4ded8d8
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, to be refined in the future.
tmp = paddle._C_ops.nop(opt_op.results()[0]) | ||
tmp.get_defining_op().set_execution_stream( | ||
AutoParallelStreamType.SHARDING_STREAM.value | ||
) | ||
|
||
allgather_value = paddle._C_ops.all_gather( | ||
shard_param, self._sharding_group.id, self._sharding_degree | ||
) | ||
allgather_value.get_defining_op().set_execution_stream( | ||
AutoParallelStreamType.SHARDING_STREAM.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.
shard_param and slice_param are share_var, the dependency should be constructed automatically.
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.
ok, we will discuss it offline.
PR Category
Performance Optimization
PR Types
Performance
Description
support sharding overlap in PIR.
llama7b, auto parallel static
PCard-86802
TODO:shard_param and slice_param are share_var, the dependency should be constructed automatically.