已关闭
fix(deepseek_v2_lite_chat): make package importable without unreleased kernels #591
不喜欢雨天ༀ创建于 21 天前关闭于 14 天前
fix(deepseek_v2_lite_chat): make package importable without unreleased kernels #591
已关闭
不喜欢雨天ༀ创建于 21 天前关闭于 14 天前
不喜欢雨天ༀ
21 天前

变更说明

修复 #85:deepseek_v2_lite_chat 子包顶层直接导入 rms_norm/rms_norm_impl 与 rope/rope_impl,
但两个目录未随仓库发布,导致包导入即 ModuleNotFoundError。

  • 两个导入加 try/except 守卫:内核缺失时置 None 并回退到各接口内已有的纯 torch 实现;
  • 顺带清理 mla_prolog_wrapper 的重复导入项与 all 中从未定义的 mla_prolog_pypto;
  • 已过 python -m py_compile 校验。

若后续 rms_norm / rope 内核计划开源,恢复直接导入即可。

Fixes #85

likedislike
当前Pull Request已关闭, 关闭人@不喜欢雨天ༀ
不喜欢雨天ༀ不喜欢雨天ༀ
21 天前 创建了 pull request,commit 229ba3b0
不喜欢雨天ༀ不喜欢雨天ༀ
21 天前 关联了issue:[Bug] deepseek_v2_lite_chat 算子包无法导入:__init__.py 引用从未提交的 rms_norm / rope 子模块
CANN-robotCANN-robot成员
21 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
21 天前 评论:

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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)

Module Approval Details

module lgtm status approve status
repo-cann/pypto-gym ❌ (0/2)(You can also ask: li-shengxian3, wangbing110, 周若愚, gaoxiang618, wangzheng97) ❌ (0/1)(You can also ask: 周若愚, codehjp423, 林嘉树, foundea, li-shengxian3)

💡 Tip:

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

CLA Signature Pass

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

likedislike
不喜欢雨天ༀ
不喜欢雨天ༀ
19 天前 评论:

/compile

likedislike
CANN-robotCANN-robot成员
19 天前 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
19 天前 评论:

流水线任务触发成功
任务链接 [0347e83da1ce44b2948904720054009f][流水线指导]

任务名称状态日志下载链接
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
precommit ✅ SUCCESS >>>>>
codecheck_style ✅ SUCCESS >>>>>
codecheck ✅ SUCCESS >>>>>
Smoke_A900 ❌ FAILED >>>>> >>>>>
Resource ✅ SUCCESS
likedislike
CANN-robotCANN-robot成员
19 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
19 天前 添加了label:ci-pipeline-failed
不喜欢雨天ༀ
不喜欢雨天ༀ
14 天前 评论:

与 !603 为同主题重复提交,收敛到 !603 统一处理(其 CI 通过且内容更聚焦),关闭本 PR 减少评审队列负担。对应 issue 不受影响。

likedislike
不喜欢雨天ༀ不喜欢雨天ༀ
14 天前 关闭了 pull request