已开启
fix(deepseek_v2_lite_chat): make package importable without unreleased kernels #591
fix(deepseek_v2_lite_chat): make package importable without unreleased kernels #591
已开启
不喜欢雨天ༀ创建于 2 天前
不喜欢雨天ༀ
2 天前

变更说明

修复 #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
合并受阻
不喜欢雨天ༀ不喜欢雨天ༀ
2 天前 创建了 pull request,commit 229ba3b0
不喜欢雨天ༀ不喜欢雨天ༀ
2 天前 关联了issue:[Bug] deepseek_v2_lite_chat 算子包无法导入:__init__.py 引用从未提交的 rms_norm / rope 子模块
CANN-robotCANN-robot成员
2 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
2 天前 评论:

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成员
2 天前 评论:

CLA Signature Pass

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

likedislike