Repository navigation
feat(device): support Zhenwu PPU - #588
Conversation
PPU (Zhenwu ZW-M890P) runs on torch.cuda with PCCL registered as "nccl": devices come from CUDA_VISIBLE_DEVICES and Ray reports GPU. Its row instead claimed eccl / PPU_VISIBLE_DEVICES / PPU / ppu, a torch namespace that does not exist, so detection always fell through to cuda. Make it a cuda-family row probed on /dev/alixpu, keep the expandable-segments and NUMA gates on it, and enable the per-chunk weight-push barrier. Only the reported identity moves.
|
Thanks for contributing to Relax, @juliantsok! 感谢你为 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:⏳ 合入条件未满足
|
Nyanpasu 审查看板审查状态: ✅ 已通过 审查版本: 0338211 目标分支: main 常规与深度审查已完成;未发现需要修改的问题。PPU CUDA-compatible 探测、后端规格、NUMA/allocator 分支与分块权重同步 barrier 均已核对。
没有未解决的审查问题。 提交范围 · 接收 2 · 建议移出 0 · 待确认 0接收 2 个文件 · 建议移出 0 个文件 · 待确认 0 个文件。移出与待确认部分暂停深审,不代表审查通过。
Powered by Nyanpasu with gpt-6-astra xhigh, please check the suggestions carefully.
|
rai-studio-bot
left a comment
There was a problem hiding this comment.
结论
审查完成,未发现需要修改的问题。已核对 PPU 的 /dev/alixpu 探测、CUDA-compatible 后端规格、NUMA/allocator 分支、分块权重同步 barrier 及相关调用方;6 个定向 CPU 用例通过,git diff --check 通过。真实 PPU/Ray 多节点运行未在本环境执行。
审查看板:#588 (comment)
SAIL (Zhenwu-M890 / Zhenwu-810E) runs on torch.cuda with PCCL registered as "nccl": devices come from CUDA_VISIBLE_DEVICES and Ray reports GPU, so it silently fell through to the plain CUDA platform. Probe /dev/alixpu under the cuda default and report SailPlatform. Only the identity moves: device_type stays "cuda", and the NVML NUMA affinity bind, the expandable-segments allocator setting and the per-bucket colocated IPC weight-push barrier all apply unchanged. Naming follows sgl-project/sglang#43826; semantics mirror redai-studio/Relax#588.
What
1/4 of #587
PPU (Zhenwu ZW-M890P and ZW-810E) runs on torch.cuda with PCCL registered as "nccl": devices come from
CUDA_VISIBLE_DEVICESand Ray reports GPU. Its row instead claimedeccl/PPU_VISIBLE_DEVICES/PPU/ppu, a torch namespace that does not exist, so detection always fell through to cuda.Why
How
Make it probed on
/dev/alixpu, keep the expandable-segments and NUMA gates on it, and enable the per-chunk weight-push barrier. Only the reported identity moves.Testing
pre-commit run --all-filespassespytest tests/)Type of Change
Screenshots / Logs