fix: 更新 MindSpeed import 路径 (lite.ops.triton → ops.triton,适配 core_r0.16.0)#9415
Open
Weizhena wants to merge 1 commit into
Open
fix: 更新 MindSpeed import 路径 (lite.ops.triton → ops.triton,适配 core_r0.16.0)#9415Weizhena wants to merge 1 commit into
Weizhena wants to merge 1 commit into
Conversation
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Collaborator
|
可以做下兼容,老版本的路径还是旧的,0.16版本的暂时还没整个适配上来,还没有对各方面功能做验证 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
背景
MindSpeed core_r0.16.0 通过 MR !3432 将 Triton 算子路径从
mindspeed.lite.ops.triton.*统一到mindspeed.ops.triton.*(路径规范化),旧路径mindspeed.lite.ops.triton已不存在。当前 ms-swift 的
swift/model/chunk_gated_delta_rule.py仍使用旧路径,在搭配 MindSpeed core_r0.16.0 训练 Qwen3.5/3.6 GDN 模型时直接 ImportError。用户目前需要手动创建桥接文件(
mkdir -p mindspeed/lite/ops/triton+ 重导出文件)才能运行,体验不佳。修复
将
chunk_gated_delta_rule.py中 7 处 import 路径从mindspeed.lite.ops.triton更新为mindspeed.ops.triton。实测验证
在昇腾 910B3 + MindSpeed core_r0.16.0 + mcore-bridge release/1.4 上验证:
兼容性