Merged
[fix] Restore DeepSeek LoRA startup #1243
[fix] Restore DeepSeek LoRA startup #1243
Merged
leedongkun30-archAdd on 24 days ago
leedongkun30-arch
24 days ago

描述

Fix four issues in DeepSeek V4/V4.1 LoRA:

  1. Requested NPU RoPE overrides were skipped after LoRA freezing; preserve the buffer-only base config type for exact matching.
  2. Automatic cold start rejected the configured base-only step-0; allow it when no newer valid LoRA resume checkpoint exists.
  3. Retention could delete the base seed needed by adapter-only checkpoints; protect the configured initial base.
  4. Switching to full-model saves could delete a seed still needed by older adapter checkpoints; preserve it across save modes.

类型

Checklist:

如何测试

  • Seed loading and retention: 12 regression tests passed. Related CPU suites: 110 passed, 1 optional skip. Commands and complete logs.

精度和性能验证结果

NPU validation of the unchanged RoPE implementation: V4/V4.1 debug models, 2 logical Ascend A3 devices, EP2/FSDP2, eager training, 100 updates per model. Loss and gradient norm matched the control bit for bit on both ranks; frozen weights stayed unchanged and LoRA adapters updated.

V4/V4.1 LoRA training loss and gradient norm

Anonymized NPU results and reproduction commands.

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for leedongkun30-arch's contribution.)
leedongkun30-archleedongkun30-arch
24 days ago Created pull request, commit 23302368
leedongkun30-arch
leedongkun30-arch
24 days ago Comments:

/compile

likedislike
leedongkun30-archleedongkun30-arch
24 days ago Modify description of pull request
leedongkun30-archleedongkun30-arch
24 days ago Draft state has been cancelled
leedongkun30-arch
leedongkun30-arch
24 days ago Comments:

compile

likedislike
79 messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
24 days ago Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
24 days ago Merged pull request
CANN-robot
CANN-robotCollaborators
24 days ago Comments:

Pull Request 已合并或已关闭。

If you want to solve this problem, you can click here to do it in the FAQs.

likedislike
1Fire41Fire4Collaborators
23 days ago Associated issue: [RFC] TorchTitan v0.4.0 分阶段升级规划与进度跟踪
CANN-robot
CANN-robotCollaborators
23 days ago Comments:

Pull Request 已合并或已关闭。

If you want to solve this problem, you can click here to do it in the FAQs.

likedislike