Open
feat(npu): merge server dedup to dev_npu #22
szm_thomasAdd on 11 days ago
feat(npu): merge server dedup to dev_npu #22
Open
Merge blocked
11 days ago Added label: stat/needs-squash
11 days ago Added label: ascend-cla/yes
11 days ago Change title to "feat(npu): merge server dedup to dev_npu", originally titled "feat(npu): merge server dedup to dev_nppu".
11 days ago Change title to "feat(npu): merge server dedup to dev_npu", originally titled "feat(npu): merge server dedup to dev_nppu".
ascend-robot
11 days ago Comments:
11 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.
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-Ascend/MoonEP | ❌ (0/2)(You can also ask: wangjiangben, 郑加利, nino888, zhu-wangyi, zhangyunqi) | ❌ (0/1)(You can also ask: wangjiangben, nino888, lishaoxun, 孙银磊, 郑加利) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
weixin_49096267, thanks for your pull request. All authors of the commits have signed the CLA. 👍


5 days ago Pushed 1 commits:bec6185b-fix(npu): pin SHMEM to the multi-sync fix
5 days ago Removed label: ascend-cla/yes
5 days ago Added label: ascend-cla/yes
3 days ago Force-pushed 5 commits:fdb80185-1 commit from branch
dev_npu,4344db33-feat(npu): add Ascend950 server dedup kernels and native bindings,ca6e0b73-feat(npu): expose server dedup through the Buffer API,4b7ddfd9-test(npu): validate and benchmark URMA server dedup,9e4b4a1b-fix(npu tests): preserve the SHMEM bootstrap process group3 days ago Force-pushed 5 commits:fdb80185-1 commit from branch
dev_npu,4344db33-feat(npu): add Ascend950 server dedup kernels and native bindings,ca6e0b73-feat(npu): expose server dedup through the Buffer API,4b7ddfd9-test(npu): validate and benchmark URMA server dedup,9e4b4a1b-fix(npu tests): preserve the SHMEM bootstrap process group3 days ago Removed label: ascend-cla/yes
3 days ago Added label: ascend-cla/yes
Ascend950 URMA server 级去重
目标为 Ascend/MoonEP 的
dev_npu。源分支为review/dev-npu-urma-server-dedup,基于b4127ba。改动范围
Ascend950 上可通过
Buffer(..., use_udma=True, dedup_mode="server")对每八个连续 rank 启用 server 级去重。默认仍为dedup_mode="rank"。Buffer.prepare_combine_plan(plan)。SHMEM 的 server 模式使用每 peer 两个 UDMA QP。本 PR 采用
dev_npu现有的 Prefetch 实现和 VMM 分配策略。Prefetch 编译宏调整、1 GiB 页选择以及全配置批量启动器留在后续提交。提交顺序
4c8a58705c55ad5857d0fbench_comm、bench_dispatch_maxvio、bench_vs和bench_vs_all2all支持--dedup-mode server。验证与复现
本分支已完成 Python 和 Bash 语法检查、测试入口模拟启动、96 组 CPU Planning reference 交叉核对,以及 rank/server 的 CPU Golden 和流量输出检查。Server 设备内核沿用完整分支的已验证版本。精简分支的 Ascend950 构建和真机验证待执行。
在单机 8 卡 Ascend950 环境中运行:
bash npu_patch/scripts/build_a5.sh NPROC=8 bash npu_patch/scripts/run_test.sh --use_urma --dedup-mode server NPROC=8 bash npu_patch/scripts/run_test.sh --use_urma --dedup-mode rank NPROC=8 bash npu_patch/benchmarks/run_bench.sh bench_comm.py \ "--engine urma --dedup-mode server --prod" NPROC=8 bash npu_patch/benchmarks/run_bench.sh bench_vs.py \ "--engine urma --dedup-mode server --maxvios 1 --verify"