Skip to content

[FIX] Preserve DynamicEmb row lifetime through retained backward and cancellation - #559

Draft
WEIXILIN0307 wants to merge 2 commits into
NVIDIA:mainfrom
WEIXILIN0307:bug-459-row-lifetime
Draft

WEIXILIN0307 wants to merge 2 commits into
NVIDIA:mainfrom
WEIXILIN0307:bug-459-row-lifetime

Conversation

@WEIXILIN0307

@WEIXILIN0307 WEIXILIN0307 commented Nov 16, 2026 •

Copy link
Copy Markdown

Summary

Retain raw/FIFO pins until actual final use, including retained backward and cancellation. This is an independent upstream Draft.

Problem

Main2995 still releases pins on the first retained backward; current negative reproduces0 instead of32.

Changes

  • Retain one pin lease through final backward or ordered no-grad/cancellation cleanup.
  • Keep release on the owning device/stream; defer GC cleanup while the table gate is held.
  • Use upstream557 admission/counters instead of restoring the obsolete capacity estimate.

Scope / Out of Scope

Row lifetime only. Additional backends/layouts belong to their separate previews. Real network PS, NVLink/GIN and a complete combination matrix are not certified here. 563 is an independent existing-main failure fix; generic service transactions are not promised.

Validation

92 passed,3 skipped; the three corresponding two-device cases pass separately. Local packages match current Docker tags: PyTorch 2.13/cu130, FBGEMM 1.8, TorchRec v1.8.0-rc1 on SM120. Native/JIT was freshly built from current source. Current integrated 551 reports 865/6 per rank, but each prefix keeps its own evidence. Exact tested/published heads, documentation-only successors, source hashes and all commands: PR_VALIDATION_MATRIX.md. Root pre-commit passes; direct package mypy retains baseline errors without new normalized diagnostics. No CI/full-container pass is inferred.

Performance

No blanket throughput gain. Measured main regressions remain; the separate raw compatibility slice has isolated 11–12.7% raw improvement. PERFORMANCE_REPORT.md distinguishes measured commits, before/after controls and subsequent refusal-only changes. No isolated speedup is attributed to this prefix without its own measurement.

Dependencies / Follow-ups

Base: current main. Full ownership and actual base hashes: PR_SPLIT_PLAN.md. Design: #552; integration: #551. Keep Draft pending maintainer/CI/performance/deployment gates; this does not close #459.

Preserve upstream557 admission/counters and548 FP8/gradient/offset semantics.
Validation manifests identify exact source/native hashes.

Signed-off-by: WEIXILIN <[email protected]>
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.

[FEA] Resolve key-to-index mapping in DynamicEmb row-wise input_dist

1 participant