[Reshard] Support reshard on nd mesh with same placement #57432
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR types
New features
PR changes
Others
Description
Pcard-73145
本PR主要支持了高维但相同mesh下不同状态间的转换,用于支持DP+MP混合并行场景。单测只为覆盖率,因为两卡不能测试全高维mesh,本地测过8卡。工作原理:
TODO:
顺便,修复高版本python下(3.9),launch的log重复打印两次的问题。