Closed
[refactor] 退役 DeepSeek-V4 重复配置 registry #1286
hanboyouAdd on 20 days agoClosed at 19 days ago
[refactor] 退役 DeepSeek-V4 重复配置 registry #1286
Closed
hanboyouAdd on 20 days agoClosed at 19 days ago
hanboyou
hanboyouCollaborators
20 days ago

描述

删除旧的 DeepSeek-V4 重复训练工厂,使用现有正式 recipe;optimizer 用例显式保留 loss、fused_binary_activation、fp32_to_bf16_split 三个本地编译区域,保持原有计算边界。相关文档和使用方同步迁移。

类型

Checklist:

如何测试

目标基线:6e3c9320453c0e36875a1fb7f9af59abb57ed3b8;当前提交:7f150a80442f436d885ce52f94dca36ce8fcf26c。

  • 本地完整 pre-commit --all-files:全部 15 个 hooks 通过;Torch 2.14/TorchTitan 0.4.0 类型环境,仅使用外部依赖查找路径,未增加忽略项。另对变更文件完成真实 OAT 扫描。
  • 通过真实配置加载链比较四个实际 AdamW 用例:指定相同资产和 override 策略后,生效配置差异为 0;三个本地编译区域逐项相同。
  • 完整原始配置仍有 18 项差异,主要是未启用的备选 Muon 配置、路径、等价 callable 命名和默认 override;这些差异保留在报告中,未按全字段相同处理。
  • 当前提交 CI #2723 已通过:1241 passed / 82 skipped / 1 xfailed,耗时 311.45 秒。实际检出的合并提交 87de6c9105a6f4983ff02a63aed480ca3dc70641,父节点已核对为上述基线 6e3c9320 与当前提交 7f150a80;workflow head 单独核对。共 18 个 jobs 完成;两个 A3 NPU smoke jobs 因仅匹配 master 而跳过,不能计入本分支 NPU ST。
  • 历史 CPU 专项记录(初版 f24f8a45):recipe/examples、DSV4 config 和 Muon 三组测试共 29 项通过;历史 CPU 日志及旧 CI #2695 不作为当前提交的验证结果。NPU 数值结果仍待补充。

精度和性能验证结果

实际 optimizer 使用方的两卡 100 步 NPU 对比正在准备,使用相同 checkpoint、输入和随机状态,并保留三个本地编译区域。尚未声明本分支数值通过;性能未测量。

其他信息

旧 torchtitan_npu.models.deepseek_v4.config_registry 导入路径有意退役,维护入口为 torchtitan_npu_recipes.models.deepseek_v4。裸工厂默认资产路径、默认 override 与备选 Muon 配置采用正式 recipe;实际维护的 AdamW 用例明确配置对应策略。

likedislike
The current Pull Request has been closed by hanboyou.
hanboyouhanboyouCollaborators
20 days ago Created pull request, commit 170ac7a0
CANN-robotCANN-robotCollaborators
20 days ago Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
20 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

⚠️ 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/torchtitan-npu ❌ (0/2)(You can also ask: 张德鹏, lrwei0709, xuyujun, wanghui0, zhanghz1) ❌ (0/1)(You can also ask: lrwei0709, wanghui0, 张德鹏, zhaowei1936, zzyyjj012)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
20 days ago Set hwcaifubi,lrwei0709,zhaowei1936,zhong_lin,zhanghz1,depeng1994,shengnan666,XDaoHong,xuyujun,zhuofanshen,wanghui0,panchao-gitcode,zzyyjj012 as approver
CANN-robotCANN-robotCollaborators
20 days ago Set hwcaifubi,lrwei0709,zhaowei1936,zhong_lin,zhanghz1,depeng1994,shengnan666,XDaoHong,xuyujun,zhuofanshen,wanghui0,panchao-gitcode,zzyyjj012 as approver
hanboyouhanboyouCollaborators
20 days ago Modify description of pull request
hanboyou
hanboyouCollaborators
20 days ago Comments:

compile

likedislike
hanboyouhanboyouCollaborators
20 days ago Pre merge succeeded (commit_id: 2194bca40d2061580a988865f2c84234f299aaff)
CANN-robot
CANN-robotCollaborators
20 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
20 days ago Added label: ci-pipeline-running
9 event messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
19 days ago Removed label: ci-pipeline-passed
CANN-robot
CANN-robotCollaborators
19 days ago Comments:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): ci-pipeline-passed.

likedislike
hanboyouhanboyouCollaborators
19 days ago Modify description of pull request
hanboyou
hanboyouCollaborators
19 days ago Comments:

compile

likedislike
hanboyouhanboyouCollaborators
19 days ago Pre merge succeeded (commit_id: 87de6c9105a6f4983ff02a63aed480ca3dc70641)
CANN-robot
CANN-robotCollaborators
19 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
19 days ago Added label: ci-pipeline-running
5 event messages are collapsed here。 See more
hanboyouhanboyouCollaborators
19 days ago Close pull request