Skip to content

feat(fsdp-turbo): add fsdp-turbo backend - #758

Merged
NINGBENZHE merged 35 commits into
redai-studio:mainfrom
Li-Yongwen:official-fork-1121
Nov 26, 2026
Merged

NINGBENZHE merged 35 commits into
redai-studio:mainfrom
Li-Yongwen:official-fork-1121

Conversation

@Li-Yongwen

@Li-Yongwen Li-Yongwen commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

What

add fsdp-turbo backend
refactor #506

Why

How

Testing

  • no-mtp:
relax-turbo-pr-no-mtp-loss
  • pre-commit run --all-files passes
  • Tests pass (pytest tests/)
  • New tests added (if applicable)
  • Documentation updated (if applicable)

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • CI/CD or build changes

Screenshots / Logs

Squash the main-official changes after c045eb4 onto the current
official-fork-1121 baseline, preserving its newer official updates.

Include the FSDPTurbo backend, versioned dependency patches, CANN 9.2
container recipe, checkpoint scheduler restoration, CP chunk loss, and
RL weight synchronization fixes. Keep only the full-layer Qwen3.8 SFT
configuration and 128-NPU launch script; omit reduced-layer experiments
and their documentation references.

Validation: all repository pre-commit hooks pass. Source-side reduced-layer
NPU SFT, RL, CP chunk-loss comparison, and distributed checkpoint resume
passed before transfer; full-layer training was not rerun on this branch.
@rai-studio-bot

rai-studio-bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for contributing to Relax, @Li-Yongwen! 感谢你为 Relax 做出贡献!

📚 Contribution guide / 贡献指南

Describe the problem, your changes, and how you validated them. Keep each PR focused and run pre-commit run --all-files before submitting.

请说明问题、改动和验证方式,保持 PR 聚焦,并在提交前运行 pre-commit run --all-files。

English contribution guide · 中文贡献指南

🛠️ CI commands / CI 指令
Command / 指令 Usage / 用途
/rerun Retry failed CI / 重跑失败的 CI
/rerun <target> Rerun a workflow or check / 重跑指定 workflow 或检查
/cancel <workflow> Cancel an entire workflow / 取消整个 workflow
/help Show commands and targets / 查看指令和 target
/review Request a code review / 请求代码 review

Put one command on the first line of a new PR comment. Rerun/cancel require PR authorship or repository write access.

在新 PR 评论的首行写一条指令。PR 作者或有仓库写权限的贡献者可以重跑、取消 CI。

CI usage and targets · CI 用法与 target

🔎 Merge requirements / 合入条件

GitHub:⏳ 合入条件未满足

Requirement / 条件 Status / 状态
审批人数 ❌ 1/1 · 至少 1 位有仓库 write 或更高权限的人 Approve · 已审批:NINGBENZHE · 处理修改意见后请重新审批:Michael-Salon
团队审批(relax-block-reviewers) ✅ 1/1 · 已审批:NINGBENZHE
CI ✅ 已通过

@Li-Yongwen

Copy link
Copy Markdown
Contributor Author

please review this again @Aurelius84 @NINGBENZHE

@rai-studio-bot

rai-studio-bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Nyanpasu 审查看板

审查状态: ✅ 已通过

审查版本: a3f12cf

目标分支: main

F70、F71 已解决。 https://github.com/redai-studio/Relax/pull/758#discussion_r4705719995

审查阶段进度范围与结果
常规审查 ✅ 已完成 CLI 复查通过
深度审查 ✅ 已完成 拆分见评审

审查发现

待处理
编号 严重性 问题状态规则来源
暂无待处理的记录。
已解决或已取代
编号 严重性 问题状态规则来源
F1 High severity 保留旧版 SGLang 的权重更新兼容 ✅ 已解决 —
F2 Medium severity 在跳过 FLOPs 估算时保留 token 吞吐 ✅ 已解决 —
F3 Medium severity 把 Turbo 的无 Megatron 状态分支放在调用入口 ✅ 已解决 —
F4 Medium severity 让 128 NPU 配方按 8 节点启动 ✅ 已解决 —
F5 Medium severity 把选择的网卡传给已有 Ray 集群上的训练进程 ✅ 已解决 —
F6 High severity 按已完成步数匹配 SFT 评测分区 ✅ 已解决 离线评测间隔以已完成步数计
F7 Medium severity 用全局样本数校验单步 GRPO 批次 ✅ 已解决 —
F8 Medium severity 保留配置中的显式 warmup 步数 ✅ 已解决 Turbo 优化器与 warmup 配置
F9 Medium severity 让 Turbo 自行校验显式续训路径 ✅ 已解决 —
F10 Medium severity 在下一次集合通信前传播 checkpoint 写入失败 ✅ 已解决 —
F11 Medium severity 给默认 NPU 和 CANN 9.2 Turbo 构建分配独立标签 ✅ 已解决 —
F12 Medium severity 保留 CANN 9.2 基础镜像的运行时初始化 ✅ 已解决 —
F13 Medium severity 对齐 CANN 9.0 镜像的 Triton 依赖 ➖ 已被后续变更取代 —
F14 Medium severity 把补丁复制延后到各自的构建步骤 ✅ 已解决 镜像缓存边界
F15 Low severity 将 HyperMultiCore 源码改动移到受检补丁 ✅ 已解决 依赖源码补丁
F16 Medium severity HF 权重导出只汇集模型状态
精简建议(非阻塞)
✅ 已解决 —
F17 Low severity 删除上游已有的 SM100 判断
精简建议(非阻塞)
✅ 已解决 —
F18 High severity 让 GRPO 的 per-token 损失使用全局 token 分母 ✅ 已解决 —
F19 Medium severity 在入队前拒绝自定义转换器输出的多模态训练行 ✅ 已解决 —
F20 High severity 避免解冻视觉塔后混合批次进入不同的 FSDP 集合通信 ✅ 已解决 —
F21 High severity 按接收端实际 PLE 分区同步权重 ✅ 已解决 —
F22 Medium severity 在全部权重桶提交后发布版本号 ✅ 已解决 —
F23 High severity 恢复 DCP 时按需初始化 AdamW 状态 ✅ 已解决 —
F24 High severity 按分片放置恢复 legacy checkpoint 的 Adam moments ✅ 已解决 —
F25 High severity 在实际 placement 和设备上恢复 legacy 权重 ✅ 已解决 —
F26 Medium severity 导出实际训练模型的架构配置 ✅ 已解决 —
F27 Medium severity 兼容 CANN 9.0 固定的 PyTorch 2.9 分片 API ➖ 已被后续变更取代 —
F28 Medium severity 删除固定依赖下不可达的 EP=1 dispatcher
精简建议(非阻塞)
✅ 已解决 —
F29 Medium severity 全局没有有效响应 token 时跳过 GRPO 更新 ✅ 已解决 —
F30 Medium severity 启动前拒绝当前权重同步不支持的 rollout DP ✅ 已解决 —
F31 Medium severity 保留自动探测设备的同节点 CUDA IPC ✅ 已解决 —
F32 High severity 恢复采用能跨节点互斥的检查点发布锁 ✅ 已解决 —
F33 Medium severity 让 Qwen PLE 导出能被 HF 初始化读取 ✅ 已解决 —
F34 Medium severity 在 Turbo 启动时拒绝未实现的 loss 类型 ✅ 已解决 —
F35 Medium severity [experimental · TST010] 隔离转换器测试的 TensorDict 替身 ✅ 已解决 —
F36 High severity 恢复 FSDPTurbo 启动所需的模块 ✅ 已解决 —
F37 Low severity [experimental · REF007] 直接使用已解析的性能配置
精简建议(非阻塞)
✅ 已解决 —
F38 Medium severity 只在启用 Turbo 模型保存时打开发布锁 ✅ 已解决 —
F39 Low severity [experimental · REF004] 只使用启动时获取的发布代次
精简建议(非阻塞)
✅ 已解决 —
F40 High severity 持锁进程退出后仍应能自动恢复 ✅ 已解决 健康检查触发自动重启
F41 Medium severity 为现有 CPU 恢复测试加载保存开关 ✅ 已解决 —
F42 Medium severity 确保 driver 和训练 rank 都能写打开发布锁 ✅ 已解决 —
F43 Medium severity 按实际生效的挂载校验发布锁选项 ✅ 已解决 —
F44 Low severity 移除对 Turbo 组批无效的微批参数
精简建议(非阻塞)
✅ 已解决 —
F45 Low severity 让上下文并行注释与 QSA 补丁目标一致 ✅ 已解决 —
F46 Medium severity 为关闭 MTP 的配方注明 legacy 续训限制 ✅ 已解决 —
F47 High severity 提交指南引用的 128 NPU 启动脚本 ✅ 已解决 —
F48 High severity 保留显式 Ray 入口的唯一提交者 ✅ 已解决 —
F49 High severity 切分前校验每个专家投影的形状 ✅ 已解决 —
F50 Low severity [experimental · REF007] 直接读取解析后的 task_type ✅ 已解决 —
F51 Low severity [experimental · REF007] 直接读取解析后的 lora_rank ✅ 已解决 —
F52 Medium severity 补齐 Ray 启动测试的后端配置 ✅ 已解决 —
F53 Low severity [experimental · REF006] 移除 PLE 迭代器未使用的 device 参数
精简建议(非阻塞)
✅ 已解决 —
F54 Medium severity 保持自定义 rollout 引擎的构造接口 ✅ 已解决 —
F55 Medium severity 连接外部 SGLang 时避免读取服务端本地模型路径 ✅ 已解决 —
F56 Low severity 恢复独立的重启阶段注释 ✅ 已解决 —
F57 High severity 重启时按所选检查点恢复优化器 ✅ 已解决 —
Powered by Nyanpasu with gpt-6.2-sol high, please check the suggestions carefully.

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要修改

在 69566085 上核对了现有 Megatron 权重同步与固定 SGLang 版本的接口。普通 colocate 训练会在首次同步时调用旧版镜像缺失的会话接口,导致训练无法继续。CPU CI 也已复现共享指标和 CP 路径的回归。训练、检查点与 NPU 镜像的专项审查仍在进行。

审查看板

Powered by Nyanpasu with gpt-6.2-sol xhigh, please check the suggestions carefully.

Comment thread relax/backends/sglang/sglang_engine.py Resolved
Comment thread relax/backends/megatron/cp_utils.py Resolved

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要修改

已确认 FSDP Turbo 离线 SFT 的生产端和训练端使用不同的评测步数,启用周期评测会在正常训练中卡住。此轮也核对了续训入口与两种 CANN 镜像的构建边界。

审查看板

Powered by Nyanpasu with gpt-6.2-sol xhigh, please check the suggestions carefully.

Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/utils/arguments.py Resolved
Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved
Comment thread docker/Dockerfile.npu_turbo Resolved
Comment thread docker/Dockerfile.npu_turbo_cann92 Resolved
Comment thread docker/Dockerfile.npu_turbo_cann92 Resolved
Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要修改

GRPO 的全局 token 归一化、图像条件和 PLE 权重同步仍有正确性问题。四 rank CPU/Gloo 复现还确认了 legacy 续训丢失 Adam moments,以及同拓扑的 TP+FSDP 分片恢复失败。两套 Turbo 镜像与 NPU 端到端训练尚未验证。

审查看板

Powered by Nyanpasu with gpt-6.2-sol xhigh, please check the suggestions carefully.

Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved
Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Preserve Megatron CP and older SGLang weight-update compatibility. Fix
global GRPO normalization, zero-token updates, SFT evaluation steps,
warmup configuration, PLE shard routing and weight version publication.

Restore checkpoint model and Adam state with placement-aware APIs,
propagate write failures across ranks and export the trained model config.
Update the CANN9.2 build and multinode recipe, replace HyperMultiCore sed
edits with a checked patch and remove the obsolete CANN9.0 Turbo Dockerfile.

Validated with 166 CPU regressions, four-rank checkpoint roundtrips,
two-rank zero-token checks and fixed-base patch application checks.
NPU validation remains pending.
Comment thread relax/backends/sglang/sglang_engine.py Resolved

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要修改

83389d79 已修复旧版 SGLang 会话兼容和多处训练逻辑。周期评测仍可能卡住,checkpoint 续训还存在错误的优化器步数、旧版本被覆盖等问题。定向 CPU/Gloo 验证了 Adam 步数偏差,NPU 端到端路径仍待验证。

审查看板

Powered by Nyanpasu with gpt-6.2-sol xhigh, please check the suggestions carefully.

Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved
Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved
Adopt direct access to declared metric arguments while preserving FLOPS estimation error handling and independent throughput reporting.

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议修改后合入

在 cefa2432 上,FSDPTurbo 的 SFT 和同步 GRPO 入口缺少仍在使用的模块,actor 导入失败。自动恢复也仍可能重放已保存的训练步并漏读数据游标。导入阻塞已通过定向 CPU 检查复现,实际 NPU 训练未运行。

评审看板

Powered by Nyanpasu with gpt-6.2-sol xhigh, please check the suggestions carefully.

Comment thread relax/utils/utils.py Resolved
Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

补充一条非阻塞建议

6b4aab60 已恢复两个 Turbo 模块。已有的自动恢复问题仍待修复。本轮补充一条性能配置的简化建议。

评审看板

Powered by Nyanpasu with gpt-6.2-sol xhigh, please check the suggestions carefully.

@Michael-Salon Michael-Salon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复核了 9f3b637。建议在合入前修复以下正确性问题,重点是静态 GRPO 的微批大小、策略损失选项和 SFT 评估超时。微批切分以及 S3 URI 传入 AutoConfig 的行为已在 CPU 上单独复核。分布式等待与 checkpoint 行为依据生产端和消费端的调用链核对,尚未在 128 卡 NPU 上复跑。

Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复核通过

重启阶段标题和状态说明已恢复为独立注释。与上一版相比,Controller 的 Python 语法树一致。本轮没有未解决的评审意见。当前提交的 pre-commit 已通过,CPU CI 尚未结束。128 NPU 训练与恢复尚未实测。 审查看板

Powered by Nyanpasu with gpt-6.2-sol high, please check the suggestions carefully.

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要修改

从仅含权重的检查点启动训练后,如果在首次完整保存前重启,恢复流程可能改用加载优化器的策略,导致同一个检查点无法启动。已复核模型加载、组批和评估增量。本轮未运行 128 NPU 训练或恢复。

评审看板

Powered by Nyanpasu with gpt-6.2-sol high, please check the suggestions carefully.

Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved
Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved
Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved
Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要修改

F57 原有的优化器加载策略在同一挂载路径下已修复。新的路径处理会让通过数字软链接恢复的旧版检查点得到错误的训练步数。已对照两个版本的步数选择逻辑。完整训练恢复尚未实测。

评审看板

Powered by Nyanpasu with gpt-6.2-sol high, please check the suggestions carefully.

Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复查结果

已验证重启保留优化器加载策略,数字软链接也恢复到正确步数。对照还发现一种旧版检查点的软链接续训问题。本轮验证止于读取权重前。

评审看板

Powered by Nyanpasu with gpt-6.2-sol high, please check the suggestions carefully.

Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved
@Li-Yongwen

Copy link
Copy Markdown
Contributor Author

/rerun integration/gpu-async

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Head: 3d0ecc9e09633e5ff59dde0f6f5c1c900a6a8ef3

Workflow run

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复查通过

F64 已修复。两种旧版检查点软链接均续到第 43 步,读取仍使用原路径。当前 CI 快照无失败项,未实测多节点 NPU 续训。

评审看板

Powered by Nyanpasu with gpt-6.2-sol high, please check the suggestions carefully.

@Michael-Salon Michael-Salon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复审 8355816。上轮指出的静态微批、未支持的 GRPO loss 选项、检查点轮转和 --no-save-optim 已修复。合并前请优先处理 3 个 P1:DeepSeek-V4 缺失权重仍能启动、S3 流式 rollout 启动失败,以及 GRPO 样本不足时一直等数据。

与上次评审的 9f3b637 对照,首个 SFT 评估分区可能过早超时是这轮修复引入的;其余问题在旧提交中已经存在。故障恢复和重连建组分别标在对应代码行。本轮做了 CPU 定向验证,未运行多卡 NPU 端到端训练。

Comment thread relax/backends/sglang/sglang_engine.py Resolved
Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/backends/fsdp_turbo/actor.py Resolved

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复查结果

已复核 SFT 评估等待、rollout 恢复、DeepSeek 权重校验和 S3 配置读取。留下四条非阻塞意见,主要涉及超时诊断与复用现有逻辑。当前 CI 快照无失败项。本轮未实测 Ray/SGLang 恢复或多节点 NPU 训练。

评审看板

Powered by Nyanpasu with gpt-6.2-sol high, please check the suggestions carefully.

Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/backends/fsdp_turbo/actor.py Resolved
Comment thread relax/backends/sglang/sglang_engine.py Resolved

@NINGBENZHE NINGBENZHE left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复核了 c9a2cd2b 的后端接口与恢复路径,留下四条行级意见。本地验证覆盖 CPU/Gloo 数据拓扑、固定版本 TransferQueue sampler、取数异常注入和 DCP 恢复。外部 rollout 使用替身验证了参数和连接逻辑,并对照了镜像固定的 SGLang 源码。多节点 NPU 与实际 SGLang IPC 尚未实跑。

Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved

@NINGBENZHE NINGBENZHE left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

补充两条可以在本 PR 小范围完成的结构建议。两条都可以保持现有训练和恢复行为,建议作为非阻塞改进。

Comment thread relax/core/controller.py Resolved

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复查结果

上一轮的修复已复查。定向对照确认评估预算到期时的提示已修正,同时发现 TransferQueue 自身提前超时会被误报为评估预算到期。已留一条非阻塞意见。本轮未运行真实 TransferQueue 或多节点训练。

评审看板

Powered by Nyanpasu with gpt-6.2-sol high, please check the suggestions carefully.

Comment thread relax/backends/fsdp_turbo/actor.py Resolved

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要修改

目标提交缺少 FSDPTurbo 启动和恢复所需的检查点元数据模块。已核对该提交的 Git 树和导入调用链。其余改动仍在复查。

评审看板

Powered by Nyanpasu with gpt-6.2-sol high, please check the suggestions carefully.

Comment thread relax/backends/fsdp_turbo/checkpoint.py Resolved

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

增量复查完成

缺失的检查点元数据模块已补齐。模块导入通过,临时目录中的恢复检查确认初始检查点保留原加载策略,新检查点按保存策略恢复。当前 CI 快照无失败项。未运行 NPU 训练。

评审看板

Powered by Nyanpasu with gpt-6.2-sol high, please check the suggestions carefully.

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

增量复查通过

本轮唯一改动直接读取 CLI 始终提供的 rollout_external。F71 已解决,外部 rollout 的校验和默认值保持原行为。当前 CI 快照无失败项。128-NPU 训练与续训未实跑。

建议分两层提交:先交付 CANN 9.2 镜像与共享 FSDPTurbo 后端,再提交依赖该后端的 Qwen3.8 128-NPU 配方及双语指南中的专属段落。

评审看板

Powered by Nyanpasu with gpt-6.2-sol high, please check the suggestions carefully.

@NINGBENZHE NINGBENZHE left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复核 a3f12cfd 后同意合入。此前的 KDA P2P 拓扑、外部 rollout IPC、取数异常以及两条模块职责意见均已处理,RNG 续训语义已补到双语指南。剩余的 TransferQueue 消费状态查询异常标为 P2 非阻塞,可后续修复。

本轮核对了 CPU CI,并用两 rank CPU/Gloo 做了错误注入验证。128 NPU Turbo 训练与续训尚未实跑。

"""Unanimous drain check over the ranks sharing this DP slot."""
if partition_id is None:
partition_id = sft_partition_id(self.args, rollout_id)
status = run(self.data_system_client.async_check_consumption_status(task_name, partition_id))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 · 非阻塞 · 消费状态查询也应同步传播异常

取数路径的错误汇合已验证。这里如果一个 rank 的 async_check_consumption_status() 抛出异常,其他 rank 仍可能进入 all_reduce。两 rank CPU/Gloo 注入复现了 peer 等待通信超时。训练服务的 ray.get() 会先收到失败 rank 的异常并上报,因此建议作为后续可靠性改进。可复用取数路径的错误汇合,让参与查询的 rank 一致退出。

@NINGBENZHE
NINGBENZHE enabled auto-merge (squash) November 26, 2026 09:15

@Michael-Salon Michael-Salon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复核 a3f12cfd,上轮 6 条意见均已在代码中处理。DeepSeek-V4 加载会检查缺失的必需非专家权重,S3 流式 rollout 使用本地元数据读取配置,GRPO 在启动时校验每轮样本数等于全局 batch。SFT 验证已区分首块发布与分块消费期限。权重同步前会恢复失效引擎,占位 rank 在同布局重连时也会复用已初始化的通信组。同意合入。

本轮核对了最新提交的源码,未重跑多卡 NPU 端到端训练。

@NINGBENZHE
NINGBENZHE merged commit 582889f into redai-studio:main Nov 26, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants