Open
【11月贡献大赛-缺陷修复】fix(awesome-llm-model): [Bug] strip org namespace in extract_base_name for dedup and handle None metrics in processor.py #7333
【11月贡献大赛-缺陷修复】fix(awesome-llm-model): [Bug] strip org namespace in extract_base_name for dedup and handle None metrics in processor.py #7333
Open
liuhongweiAdd on 3 hours ago
liuhongwei
liuhongwei
3 hours ago

关联 Issue

  • 无(社区自测发现的脚本缺陷修复)

改动说明

  • 修复 skills/quantization/awesome-llm-model/scripts/processor.py 中 extract_base_name() 未剥离组织命名空间前缀(如 Qwen/、meta-llama/)导致跨平台同模型无法去重的问题(脚本自带 __main__ 自测由 4 -> 4 修复为 4 -> 2)。
  • 新增 _to_non_negative_int() 与 _record_popularity_score() 统一安全处理 downloads/likes/stars 为 None、布尔值或负数时的异常。
  • 修复 process_and_rank_models() 的返回类型注解并校验 top >= 0。
  • 新增回归单元测试 skills/quantization/awesome-llm-model/tests/test_processor.py。

改动类型

自检清单

测试结果

python -m pytest -q skills/quantization/awesome-llm-model/tests/test_processor.py
# 3 passed in 0.03s
likedislike
Merge blocked
ascend-robotascend-robotCollaborators
3 hours ago Added label: ascend-cla/yes
ascend-robot
ascend-robotCollaborators
3 hours ago Comments:

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.


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
sig-model-agent ❌ (0/2)(You can also ask: 张玉橙, 胡晓曼, 刘磊, 花新宇, 顾梦沁) ❌ (0/1)(You can also ask: 张玉橙, 焦泽昱, 顾梦沁, 林泽毅, 陈少宏)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

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

likedislike