已合并
修复 qwen25vl_7B mbridge 特性报错的问题 #2906
修复 qwen25vl_7B mbridge 特性报错的问题 #2906
已合并
bonjour_rzq1998创建于 20 天前
bonjour_rzq1998
bonjour_rzq1998成员
20 天前
What this PR does / why we need it? 1、修改bridge/models/qwen_vl/__init__.py中对于异常情况的容忍范围。 Does this PR introduce any user-facing change? 不涉及 How was this patch tested? 不涉及
likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 bonjour_rzq1998 的贡献)
bonjour_rzq1998bonjour_rzq1998成员
20 天前 创建了 pull request,commit 4eae3a6c
atomgit-bot
atomgit-bot
20 天前 评论:

变更摘要

本 PR 修复了 qwen25vl_7B 模型在使用 mbridge 特性时因 fla_npu 依赖缺失导致的错误。通过在 bridge/models/qwen_vl/__init__.py 中将硬编码的单一可选依赖前缀 "mindspeed.te" 扩展为一个可配置的元组 known_optional_deps,并同时纳入 "fla_npu",使得缺少这些可选依赖时不再抛出异常,而是被正确识别为可容忍的导入故障。

主要改动

  • 新增可选依赖名常量元组: 在 bridge/models/qwen_vl/__init__.py 中定义 known_optional_deps = ("mindspeed.te", "fla_npu"),将原先硬编码的单个依赖前缀抽离为可扩展的元组,便于后续维护。
  • 扩展 startswith 匹配范围: 将 exc_name.startswith("mindspeed.te") 改为 exc_name.startswith(known_optional_deps),使得 exc_name"mindspeed.te""fla_npu" 开头时均被识别为可选依赖缺失,从而避免因缺少 fla_npu 而导致的误报错误。
likedislike
atomgit-bot
atomgit-bot
20 天前 评论:

代码审查

✅ 未发现问题

likedislike
ascend-robotascend-robot成员
20 天前 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
20 天前 评论:

CLA Signature Pass

bonjour_rzq1998, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
ascend-robot
ascend-robot成员
20 天前 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here
You can get sig-info at here


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-Ascend/MindSpeed-MM 王海涛, gaojie_, young256, ye_qm (4/2) 王海涛 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
ascend-robot
ascend-robot成员
20 天前 评论:

ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
20 天前 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
20 天前 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
20 天前 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
20 天前 添加了label:docs-ci-pipeline-success
yeqm成员
20 天前 评论:

compile

likedislike
ascend-robot
ascend-robot成员
20 天前 评论:

ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
20 天前 删除了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
20 天前 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
20 天前 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
20 天前 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
20 天前 添加了label:docs-ci-pipeline-success
bonjour_rzq1998bonjour_rzq1998成员
20 天前 修改了pull request 的描述
yeqm成员
20 天前 评论:

/compile

likedislike
bonjour_rzq1998
bonjour_rzq1998成员
20 天前 评论:

compile

likedislike
ascend-robotascend-robot成员
20 天前 添加了label:ci-pipeline-running
ascend-robot
ascend-robot成员
20 天前 评论:

ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
20 天前 删除了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
20 天前 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
20 天前 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
20 天前 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
20 天前 添加了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
20 天前 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
20 天前 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
20 天前 评论:
流水线 PR-pipeline_MindSpeed-MM#4338 [ commitID:bd3821dc ] 已完成
>>>代码风格自动修复执行成功(无修复内容)
阶段 任务名 状态 详情
编译构建 Build >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 Only_doc_commit >>>
codeCheck_pre-commit >>>
pre-commit >>>
Compatibility_Interface >>>
开源片段检查 SCA >>>
开发者测试 UT 🛑 >>>
ST 🛑 >>>
UT-pool >>>
ST_pool >>>
流水线 PR-pipeline_MindSpeed-MM >>>
此流水线已支持下列评论快捷指令,仅PR创建者和白名单成员[wujinyuan1, htwang, hhhzhuyizhi, cxiaolong, bigdog1206, ghoshaw, yaoyaoxu]评论有效
  • compile : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
yeqm成员
20 天前 评论:

/lgtm

likedislike
gaojie
gaojie
20 天前 评论:

验证无问题

likedislike
gaojie
gaojie
20 天前 评论:

/lgtm

likedislike
ascend-robotascend-robot成员
20 天前 添加了label:lgtm
young256
young256成员
20 天前 评论:

/lgtm

likedislike
Yyeqm成员
20 天前 关联了issue:[Bug]: bridge模块,qwenvl在初始化时,未做好qwen3.5和qwen2.5vl之间的隔离
bonjour_rzq1998bonjour_rzq1998成员
20 天前 修改了pull request 的描述
bonjour_rzq1998bonjour_rzq1998成员
20 天前 修改了pull request 的描述
Hhtwang成员
20 天前 修改了pull request 的描述
htwang成员
20 天前 评论:

同意合入

likedislike
htwang成员
20 天前 评论:

/approve

likedislike
ascend-robotascend-robot成员
20 天前 添加了label:approved
ascend-robotascend-robot成员
20 天前 合入了pull request