Skip to content

[FIX] DynamicEmb: test_hier_dist checks no node that is not NCCL's team - #554

Merged
shijieliu merged 3 commits into
NVIDIA:mainfrom
shijieliu:fix-hier-dist-unlinked-node
Nov 14, 2026
Merged

shijieliu merged 3 commits into
NVIDIA:mainfrom
shijieliu:fix-hier-dist-unlinked-node

Conversation

@shijieliu

@shijieliu shijieliu commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Removes one check from test_hier_dist.py that #553 broke on two Eos nodes. Main's CI failed eos-hier-2nodes on it (JET job, pipeline #81873480).

Why

check_node_size had one check, "the op refuses a node that is not the team". It made every rank read a node size that NCCL never gives:

  • on one node, half of the team;
  • across nodes, every rank as one node.

It then expected the op's own LSA check to refuse that node.

No run has such a node, because node_size and the op read the same team from NCCL. Across two Eos nodes the fake node was 16 GPUs joined only by InfiniBand. Since #553 node_size refuses that node first, with NVLinkCheckError, and the check failed on every rank.

What changes

  • The check is removed, together with its words in test_hier_dist.py's docstrings and the design doc's section 18.
  • The real runs are unchanged: Eos on one node of 8 and two nodes of 8 (NVLink + IB), and GB300 on one tray and two trays as one node.
  • Test-only.

The branch's first two commits tried to keep the check, and its last commit undoes them, so the net diff only removes lines.

CI

Pipeline #81925198 ran this branch on the CI branch of distributed-recommender!144 (GB300's two trays as one node only). It ran only the image builds and the JET hier jobs; the computelab and benchmark jobs were cancelled, since they do not run test_hier_dist.py.

All passed:

  • Eos:
    • eos-hier-2nodes: two nodes of 8, NVLink + IB; 400 checks, 0 failed, 21 min;
    • eos-hier: one node, at 2, 4, 6 and 8 GPUs; 1316 checks, 0 failed;
    • eos-hier-fwd-bwd and eos-hier-load-dump.
  • GB300:
    • two trays as one node of 8: 257 checks, 0 failed;
    • one tray: 894 checks, 0 failed, after one retry, because its first attempt failed while preparing the runner's Lustre directory, before any test.

🤖 Generated with Claude Code

…a node across Eos hosts

Across nodes, check_node_size has every rank read a node of all the ranks,
which the op's own communicator should refuse (its LSA check). Since NVIDIA#553,
node_size refuses such a node first when NVLink does not join its hosts, as
on Eos (two hosts over IB), and a sharding on "hierarchical" raises
NVLinkCheckError. The check took no exception, so test_hier_dist.py failed
on two Eos nodes (main's CI, eos-hier-2nodes). It now counts that refusal
too. GB300's trays share an NVLink clique: there the op's LSA check refuses
the node, as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: aleliu <[email protected]>
@greptile-apps

greptile-apps Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

The current PR removes the fake-node rejection test and updates its documentation; it does not change the library.

  • The node-size test no longer checks a fake cross-host node.

No actionable issues found. Distributed GPU tests were not run.

Reviews (3) · Last reviewed commit: "[FIX] DynamicEmb: test_hier_dist checks ..." · Reviewed by Greptile

…of the team, across nodes too

check_node_size had every rank read a node that is not NCCL's team, to see
the op's own communicator refuse it (its LSA check): on one node half of
the team, across nodes every rank. On two Eos nodes the latter is a node of
16 GPUs across two hosts that only IB joins, which no run can have; since
NVIDIA#553 node_size refuses it first (NVLinkCheckError), and the check failed.
The previous commit took that refusal; this one drops it and reads half
of the team across nodes too, inside the team's NVLink domain, whose nodes
then talk over GIN: the op's LSA check refuses it, as the check means, or
NCCL refuses its GIN first (the warning then says why).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: aleliu <[email protected]>
@shijieliu shijieliu changed the title [FIX] DynamicEmb: test_hier_dist takes the NVLink check's refusal of a node across Eos hosts [FIX] DynamicEmb: test_hier_dist's node that is not the team is half of the team, across nodes too Nov 13, 2026
check_node_size had every rank read a node size that NCCL never gives
(half of the team on one node, every rank across nodes) and expected the
op's own LSA check to refuse that node. No run has such a node: node_size
and the op read the same team from NCCL. Across Eos nodes it was a node of
16 GPUs over IB, which since NVIDIA#553 node_size refuses first, and
eos-hier-2nodes failed on it. The check goes, with its words in the
docstrings and the design doc's section 18. The previous two commits'
attempts to keep it are undone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: aleliu <[email protected]>
@shijieliu shijieliu changed the title [FIX] DynamicEmb: test_hier_dist's node that is not the team is half of the team, across nodes too [FIX] DynamicEmb: test_hier_dist checks no node that is not NCCL's team Nov 13, 2026
@shijieliu
shijieliu merged commit 85e628d into NVIDIA:main Nov 14, 2026
1 check passed
shijieliu added a commit to shijieliu/recsys-examples that referenced this pull request Nov 16, 2026
Brings in main 4466f9d: NVIDIA#528 (hierarchical dist), NVIDIA#550, NVIDIA#553, NVIDIA#555, NVIDIA#478
(exportable embedding collections with NVE layers), NVIDIA#554 and NVIDIA#556.

Conflicts:
- corelib/dynamicemb/CMakeLists.txt: main (NVIDIA#478) adds the RPATH, NVE_ROOT
  and DYNAMICEMB_PYTHON_MODULE_DIR lines above the C++ standard; kept them,
  with this branch's C++20 (PyTorch 2.14's headers need it).
- corelib/dynamicemb/setup.py: main's file. It already has this branch's
  CUDA_HOME import and sm_103-aware default archs (from NVIDIA#528); the conflict
  was only main's new `import torch` and `Extension` imports.
- corelib/dynamicemb/README.md: main's new inference build section, after
  this branch's FBGEMM 1.9.0 / TorchRec 1.9.2 lines.

docker/Dockerfile merged cleanly: NVIDIA#478's build stage rebuilds the default
NVE from the submodule with the same pip command and settings as the devel
stage, and builds torch_binding_build through the CMakeLists above.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: aleliu <[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.

1 participant