Merged
040 的 Qwen 和 SFT #1205
Can Learn BotAdd on 28 days ago
040 的 Qwen 和 SFT #1205
Merged
Pull Request has been successfully merged by CANN-robot.
(Thank you for Can Learn Bot's contribution.)28 days ago Created pull request, commit baf63d16
28 days ago Added label: cann-cla/no
CANN-robot
28 days ago Comments:
28 days 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.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/torchtitan-npu | ✅ zhaowei1936, xuyujun (2/2) | ✅ zhaowei1936 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
botcanlearn, thanks for your pull request. All authors of the commits have signed the CLA. 👍


28 days ago Set hwcaifubi,lrwei0709,zhaowei1936,zhong_lin,zhanghz1,depeng1994,shengnan666,XDaoHong,xuyujun,zhuofanshen,wanghui0,panchao-gitcode,zzyyjj012 as approver
28 days ago Set hwcaifubi,lrwei0709,zhaowei1936,zhong_lin,zhanghz1,depeng1994,shengnan666,XDaoHong,xuyujun,zhuofanshen,wanghui0,panchao-gitcode,zzyyjj012 as approver
28 days ago Set hwcaifubi,lrwei0709,zhaowei1936,zhong_lin,zhanghz1,depeng1994,shengnan666,XDaoHong,xuyujun,zhuofanshen,wanghui0,panchao-gitcode,zzyyjj012 as approver
28 days ago Set hwcaifubi,lrwei0709,zhaowei1936,zhong_lin,zhanghz1,depeng1994,shengnan666,XDaoHong,xuyujun,zhuofanshen,wanghui0,panchao-gitcode,zzyyjj012 as approver
350 messages are collapsed here。 See more
16 days ago Merged pull request
CANN-robot
16 days ago Comments:
16 days ago Comments:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


15 days ago Modify description of pull request
CANN-robot
15 days ago Comments:
15 days ago Comments:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


CANN-robot
15 days ago Comments:
15 days ago Comments:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


描述
Qwen3.5 系列 SFT 适配 TorchTitan 0.4.0
本 PR 在
dev_0.4.0接入 Qwen3.5 系列文本 SFT。统一所有标识符为 Qwen 3.5, 实际涵盖 Qwen3.5, Qwen3.6, Qwen3.8, 对于 Qwen 3.8 等存在较大差异的模型已做重点验证类型
Checklist:
如何测试
训练验证
使用 Qwen3.6-27B,序列长度为 32K。固定初始权重、训练输入和运行环境,对比 master
d2eb7d2c与验收提交bca9b327。两边均使用lr=1e-5、weight_decay=0.1,完成 16 个优化步。精度和性能验证结果
Qwen 模型适配
三个 27B 模型均通过官方权重索引和参数名映射检查。监督校验使用同一组 31 条对话,覆盖普通答复、带推理答复、多轮工具调用和仅监督推理正文的自定义模板。
preserve_thinking保留历史推理preserve_thinking保留历史推理,按该版本的 tokenizer 和模板生成标签其他信息
与 Qwen 原厂框架 ms-swift 的监督策略对照
--loss_scale--loss-maskdefault选中各轮 assistant 回复default选择相同的轮次范围,标签按 Qwen 模板的输出生成last_round从最后一条 user 消息之后选取 assistant 回复last_round同样包含末轮内经工具往返后的 assistant 回复ignore_empty_think,混合推理模型默认追加ignore_empty_think,省略参数时等价于default+ignore_empty_thinkignore_think_prefix屏蔽起始标记,保留正文和结束标记表格依据 ms-swift 的策略定义和数据说明。上面的逐 token 结果使用各模型模板及独立参考标签进行核对。