[Auto-Parallel] Fix test_semi_auto_parallel_for_llama_subnet #76119
+40
−38
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 Category
Auto Parallel
PR Types
Bug fixes
Description
问题:
单测test_semi_auto_parallel_for_llama_subnet,从V卡迁移到H卡,报错输出tensor没有dist_attr属性。
分析:
由于单测中device_prop_main >= 8的存在,一些样例只会在A卡以上执行,V卡上会直接跳过,之前其实一直没验到。
由于现在的dist_tensor没有dist_attr和dim_mapping属性,可以使用类似属性placements作为替代,验证切分正确性。
修复:
将测试中检查dim_mapping的部分,等效修改为检查placements。
card-92763