Skip to content

[FEA] Add a standalone TorchRec resolved-row lookup adapter - #560

Draft
WEIXILIN0307 wants to merge 2 commits into
NVIDIA:mainfrom
WEIXILIN0307:enh-459-lookup-adapter
Draft

WEIXILIN0307 wants to merge 2 commits into
NVIDIA:mainfrom
WEIXILIN0307:enh-459-lookup-adapter

Conversation

@WEIXILIN0307

@WEIXILIN0307 WEIXILIN0307 commented Nov 16, 2026 •

Copy link
Copy Markdown

Summary

Provide forward Dense/EC/EBC over explicit rows and weights without taking optimizer ownership. This is an independent upstream Draft.

Problem

A standalone row adapter must be verifiable without receiver/sharding integration.

Changes

  • Use Dense forward for eligible aligned explicit matrices; retain EC/EBC fallback for other supported layouts.
  • Borrow weight views with frozen temporary parameters outside the model/optimizer tree; preserve RNG state.
  • Check forward/pooling/dtype/stride behavior with constructed rows, without a receiver dependency.

Scope / Out of Scope

Resolved lookup adapter 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

306 standalone constructed-row cases passed. 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