Repository navigation
Conversation
Nyanpasu 审查看板审查状态: ✅ 已通过 审查版本: aa2ffb6 目标分支: main 已完成复审,未发现新增问题。作者 merge 最新 main(b2b0bb0b,#442)后 PR 补丁与已审版本(70cda03a)逐行一致,main 侧未改动 relax/ 源码,两个变更文件在合并树上与已审版本完全相同;合并树上回归测试重新运行通过,CI 无失败。既有核对结论(槽位分配、rank/端口与共享初始化地址、仅 node-rank 0 的注册链、回滚/恢复/缩容调用链)原样适用。多节点 GPU/NCCL 集成未运行(环境不具备)。
没有未解决的审查问题。 提交范围 · 接收 2 · 建议移出 0 · 待确认 0接收 2 个文件 · 建议移出 0 个文件 · 待确认 0 个文件。移出与待确认部分暂停深审,不代表审查通过。
精简审查与验证依据
生产代码的必要性与替代方案
测试的必要性与替代方案
Powered by Nyanpasu with glm-5.3-flash max, please check the suggestions carefully.
|
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查通过。已核对多节点 actor 数量、rank/bundle 分配、共享初始化地址及注册/回滚调用链,未发现本次变更新增的问题。
隔离执行真实扩容方法的四种 GPU 布局验证通过,恢复旧实现后多节点用例失败。仓库回归文件因缺少依赖跳过 9 项测试;当前无 CI 结果,未运行需要实际集群的多节点 GPU/NCCL 集成测试。
# 🐛 Bug Fix ## Create all actors for multinode replicas - Allocate one EngineGroup slot per physical actor during ray-native scale-out. - Prevent SGLang from waiting for uncreated follower ranks. - Fixes redai-studio#360. --- # ✅ Tests ## Cover multinode actor slot allocation - Add an 8-GPU-per-node and 16-GPU-per-replica regression test.
3cdbad1 to
70cda03
Compare
|
Thanks for contributing to Relax, @ldemon2333! 感谢你为 Relax 做出贡献! 📚 Contribution guide / 贡献指南Describe the problem, your changes, and how you validated them. Keep each PR focused and run 请说明问题、改动和验证方式,保持 PR 聚焦,并在提交前运行 🛠️ CI commands / CI 指令
Put one command on the first line of a new PR comment. Rerun/cancel require PR authorship or repository write access. 在新 PR 评论的首行写一条指令。PR 作者或有仓库写权限的贡献者可以重跑、取消 CI。 🔎 Merge requirements / 合入条件GitHub:✅ 满足合入条件
|
已解决 |
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:通过
本轮针对 rebase 后的新 head(70cda03a)重新审查了完整范围(此前 3cdbad1 的通过仅覆盖旧基线)。修复使 _bring_up_single_replica 按 max(1, gpus_per_engine // num_gpus_per_node) 为多节点副本分配 all_engines 槽位,与初始 group 路径的槽数、_scale_out_ray_native 的 rank 预留及引擎侧 node_rank = rank % nnodes 语义一致;已核对槽位/rank/端口与共享 dist_init_addr 分配、DCS 与路由注册(仅 node-rank 0,与引擎侧 follower no-op 一致)、回滚、故障恢复、健康监控与缩容调用链。回归测试在当前 head 通过,且回退旧实现后该测试失败(已验证回归能力);补丁内容与已通过版本逐行一致,rebase 差异仅为新 main 已包含的 conftest 导入行。CI 无失败;多节点 GPU/NCCL 集成未运行(环境不具备,作者已说明)。
|
只需要关注 required check 就好,这个不是 check |
哦哦,那应该没什么问题了,可以合入了 @SigureMo |
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:通过
本轮针对 merge 最新 main 后的新 head(aa2ffb64)复审:PR 补丁与此前已审版本(70cda03a)逐行一致,main 侧(#442 CPU HiCache)未改动任何 relax/ 源码,两个变更文件在合并树上与已审版本完全相同,既有核对结论(槽位分配、rank/端口与共享初始化地址、仅 node-rank 0 的注册链、回滚/恢复/缩容调用链)原样适用。合并树上回归测试重新运行通过(1 passed);CI 无失败。多节点 GPU/NCCL 集成仍未运行(环境不具备,作者已说明)。
…rence Resolve conflicts with upstream redai-studio#433 (managed PD), redai-studio#437 (native image OPD), redai-studio#439 (rollout utility extraction), redai-studio#361 (multinode scale-out) and the placement factory relocation, porting their intent onto InferenceManager. - Managed static PD: start_servers defers the Router until P/D engines are ready and seeds it with them; replacements still join after weight sync. - Recovery broadcasts rank-0 failures before weight sync; pool monitors stop within one shared 5s budget; Controller bounds shutdown_all to 35s. - Teacher engines get SGLANG_MM_AVOID_RETOKENIZE in config_adapters; the removed RELAX_OPD_PREEXPANDED_PATCH reference is dropped. - Drop RolloutManager/TeacherManager-only code and tests; adapt new upstream tests to EngineGroupSpec/InferenceModelSpec and the inference manager.
…rence Resolve conflicts with upstream redai-studio#433 (managed PD), redai-studio#437 (native image OPD), redai-studio#439 (rollout utility extraction), redai-studio#361 (multinode scale-out) and the placement factory relocation, porting their intent onto InferenceManager. - Managed static PD: start_servers defers the Router until P/D engines are ready and seeds it with them; replacements still join after weight sync. - Recovery broadcasts rank-0 failures before weight sync; pool monitors stop within one shared 5s budget; Controller bounds shutdown_all to 35s. - Teacher engines get SGLANG_MM_AVOID_RETOKENIZE in config_adapters; the removed RELAX_OPD_PREEXPANDED_PATCH reference is dropped. - Drop RolloutManager/TeacherManager-only code and tests; adapt new upstream tests to EngineGroupSpec/InferenceModelSpec and the inference manager.
What
Fix ray-native scale-out for replicas spanning multiple nodes. Add a regression test for 16 GPUs per replica across 8-GPU nodes.
Why
The scale-out path reserves multiple actor ranks but initializes
EngineGroup.all_engineswith only one slot. Only the node-rank 0 actor is created, leaving SGLang waiting for the missing follower rank.Fixes #360.
How
Allocate
max(1, gpus_per_engine // num_gpus_per_node)engine slots per replica. Preserve the current main branch's model/config override inheritance during scale-out.Testing
.venv/bin/python -m pytest tests/distributed/ray/test_scale_out_registration_order.py -q: 10 passed.uvx --offline --from pre-commit==3.8.0 pre-commit run --all-files --show-diff-on-failure: all hooks passed. Version 3.8.0 is compatible with the local Git version.Full test suite and real multi-node Ray/SGLang/GPU integration were not run; no multi-node GPU cluster was provided. The regression test uses mocks to verify actor slot allocation and registration forwarding.
pre-commit run --all-filespassesTests pass (
pytest tests/)New tests added (if applicable)
Documentation updated (if applicable)
Type of Change
Screenshots / Logs