Draft
[WIP][SUPERSEDED] [WIP]Draft: feat(npu): add shared-slot bindings and pointer-source URMA PUSH #17
[WIP][SUPERSEDED] [WIP]Draft: feat(npu): add shared-slot bindings and pointer-source URMA PUSH #17
Draft
Jia_AustinAdd on 24 days ago
Jia_Austin
Jia_Austin
24 days ago

Superseded by https://gitcode.com/Ascend/MoonEP/merge_requests/18 to use a source branch without dates or codex. Source commit is unchanged.

Problem and behavior

Support ordinary canonical home weights with shared remote slots: borrow per-layer home Tensor references, register compatible shared slot backing once, and PUSH directly from canonical source pointers into peer symmetric weight slots.

This is an experimental, host-reviewed provider change. It is not a claim of working device integration or training readiness.

Implementation

  • Keep canonical weights outside the symmetric slot arena; do not create a complete home-plus-slot mirror or register slots as trainable parameters.
  • Port pointer-source URMA PUSH from official PR9 into fixed dev_npu, retaining the original dev URMA GR algorithm and native kernel.
  • Add explicit local_dense/URMA projection-gradient seams and shared-slot binding lifetime checks.
  • Enforce current-device/stream, cached allocator, checked drain, reference retention, and poison contracts.
  • Enforce loaded-SHMEM identity auditing, freeze the one-shot initialization signature, and require successful finalize before Buffer destruction. These rules also affect existing provider callers; they are not gated by the MindSpeed feature flag.

Validation and merge blockers

  • 59 pure host contracts passed with real accelerator imports and ctypes loading blocked; no compilation, native loading, SHMEM initialization, or device work was performed.
  • Baseline: dev_npu 6fcf256786b8e98ce0f4e9950169a2fcc84c3204; SHMEM gitlink remains 431c3c43232917f663b7a7022f321802ff23a5c1.
  • Original GR host/kernel files are unchanged. PR delta: 1614 added/replaced physical lines including tests; deletions do not offset the 2000-line cap.
  • Actual installed SHMEM ABI, Bisheng/torch_npu build compatibility, PUSH/GR ordering, peer final-use, failure retention and numerical correctness remain unverified.
  • Native/device/training/performance: NOT_RUN. Installation and strict zero-copy behavior: UNKNOWN.
  • TENPU is unchanged. No PR12033 dependency, replacement custom OPP/DSO/JIT, or new GEMM/GR core is introduced.

Companion MindSpeed draft: https://gitcode.com/Ascend/MindSpeed/merge_requests/4141

likedislike
Merge blocked
ascend-robotascend-robotCollaborators
24 days ago Added label: ascend-cla/yes
ascend-robot
ascend-robotCollaborators
24 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: 郭鹏, gcw_CXpJWhGA, zhu-wangyi, wangjiangben, u012145166111) ❌ (0/1)(You can also ask: 郑加利, u012145166111, 郭鹏, nino888, 孙银磊)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

Jia_Austin, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
Jia_AustinJia_Austin
24 days ago Modify description of pull request
Jia_AustinJia_Austin
24 days ago Change title to "[WIP][SUPERSEDED] [WIP]Draft: feat(npu): add shared-slot bindings and pointer-source URMA PUSH", originally titled "[WIP]Draft: feat(npu): add shared-slot bindings and pointer-source URMA PUSH".
Jia_AustinJia_Austin
24 days ago Modify description of pull request