已关闭
feat(w4a16): 添加 Qwen3 整网训练、推理与评测示例 #199
chen_pengyu创建于 1 天前关闭于 23 小时前
feat(w4a16): 添加 Qwen3 整网训练、推理与评测示例 #199
已关闭
当前Pull Request已关闭, 关闭人@chen_pengyu
1 天前 创建了 pull request,commit 811489ef
1 天前 添加了label:stat/needs-squash
1 天前 添加了label:ascend-cla/yes
ascend-robot
1 天前 评论:
1 天前 评论:
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 |
|---|---|---|
| repo-Ascend/torchao-ascend | ❌ (0/2)(You can also ask: chujinjin, li_jing_hw, 褚博宁, lizhihai137, weixin_38374194) | ❌ (0/1)(You can also ask: 褚博宁, 楚浩田, chengpeng25, wanglijun55, li_jing_hw) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
chen_pengyu, thanks for your pull request. All authors of the commits have signed the CLA. 👍


1 天前 修改了pull request 的描述
此处折叠了62条消息 查看更多
23 小时前 预合并成功(commit_id: b6d9ee3ff72d3282a603748993aee490dbf47321)
ascend-robot
23 小时前 评论:
23 小时前 评论:
23 小时前 删除了label:ascend-cla/yes
23 小时前 添加了label:ascend-cla/yes
23 小时前 关闭了 pull request
【合入来源】
基于已合入的 PR #145,补齐 Qwen3 Dense 和 MoE 的整网训练、推理和评测示例。
【修改方案】
inference_w4a16.py,支持从本地 BF16 基模或已打包的 W4A16 checkpoint 加载 Qwen3,并在 Ascend NPU 上生成文本。Dense 前向通过已有 W4A16 Tensor 调用融合权重量化矩阵乘。lm_eval入口,复用示例模型加载逻辑。评测脚本支持加载已导出的 checkpoint,并汇总 BF16 与 W4A16 的对比结果。【资料变更】
更新 W4A16 推理使用说明和评测 README,补充训练、推理、评测命令及实测口径。完整模型的精度、时延和显存数据见 Qwen3 W4A16 测评文档。
【接口变更】
新增示例脚本和评测入口,沿用 PR #145 的库 API 和 checkpoint 格式。
【功能验证】
git diff --check和 Python 语法检查。【CheckList】