Skip to content

[FEA] DynamicEmb: the hierarchical dist's tests leave the CI's fwd_bwd and load_dump groups for a hier group - #550

Merged
shijieliu merged 3 commits into
NVIDIA:mainfrom
shijieliu:fea-hier-tests-jet
Nov 13, 2026
Merged

shijieliu merged 3 commits into
NVIDIA:mainfrom
shijieliu:fea-hier-tests-jet

Conversation

@shijieliu

@shijieliu shijieliu commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Moves the hierarchical output dist's tests (#528) out of the CI's two computelab DynamicEmb jobs. They get groups of their own, which the CI runs on Eos and GB300.

Why

With #528 on main, both DynamicEmb jobs ran the dist's tests inside their fwd_bwd and load_dump groups. On main's first pipeline (GitLab 81592418, an A100 node):

  • load_dump was cancelled at the jobs' two-hour Slurm limit;
  • fwd_bwd hung in test_hier_pipeline.py's DDP stress case, which is being debugged separately.

Groups of test/unit_test.sh, and where the CI runs them

Group What CI
fwd_bwd the regular forward/backward files, no dist (as before #528) computelab
load_dump the regular checkpoint files, no dist (as before #528) computelab
hier_fwd_bwd 5 of fwd_bwd's files again on the dist (DYNAMICEMB_TEST_OUTPUT_DIST=hierarchical) Eos, 1 node × 8 H100
hier_load_dump 3 of load_dump's files again on the dist Eos, 1 node × 8 H100
hier the dist's own tests: test_hier_dist.sh, test_hier_overflow.sh, test_hier_pipeline.sh Eos and GB300

Notes on the table:

  • hier_fwd_bwd and hier_load_dump run each file with the group it comes from. Their runs mostly take 8 GPUs on one host, which is why they run on Eos.
  • On Eos, hier runs on one node of 8 H100s, so at 6 and 8 GPUs too. The dist's tests also run across two nodes over InfiniBand (GIN), again with a 1 MiB proxy ring.
  • On GB300, hier runs on one tray of 4 GPUs. Across two trays the dist's tests also run twice:
    • as one node of the dist (the trays share NVLink);
    • as two nodes of 4 (NCCL_LSA_TEAM_SIZE=4), which exchange keys and rows over GIN, again with a 1 MiB proxy ring.

The design doc's section 18 says so. The JET jobs are in distributed-recommender!143, all with NCCL's P2P on.

CI

Pipeline #81839575, on the branch of !143:

  • Passed:
    • computelab: fwd_bwd (79 min) and load_dump (about 90 min on the node, after a 30 min queue), both within the jobs' two hours; the unit and inference jobs;
    • GB300: hier on one tray (894 checks), and the dist's tests on two trays as one node and as two nodes (657 checks);
    • Eos: hier on one node (28 min), the dist's tests across two nodes (400 checks, 21 min), hier_fwd_bwd (40 min) and hier_load_dump (2 h 17 min of its 4 h).
  • Failed, outside this PR: pre_check (allowed to fail); unit_test_tp_4gpu (tp_layer_norm.py:131, an empty eval batch, failing since October); the CoreWeave benchmark, whose Slurm job ended after 23 s without logs. inference_test_nve_2605_1gpu passed on its third try, after a one-batch tolerance miss and a leftover container on a bad node.

🤖 Generated with Claude Code

…d and load_dump groups for a hier group

With NVIDIA#528 on main, the CI's two DynamicEmb jobs ran the hierarchical dist's
tests in their fwd_bwd and load_dump groups. On main's first pipeline
(GitLab 81592418, an A100 node), load_dump hit the jobs' two-hour limit,
and fwd_bwd hung in test_hier_pipeline.py's DDP stress case; that hang is
under investigation.

test/unit_test.sh now runs them in a group of its own, hier: first
test_hier_dist.sh, test_hier_overflow.sh and test_hier_pipeline.sh, then
the eight files that run again on the dist, each with the group it comes
from. fwd_bwd and load_dump hold what they held before NVIDIA#528. The CI runs the
dist's tests on GB300 and Eos with JET (distributed-recommender!143), with
NCCL's P2P on, on one node and across nodes. The design doc's section 18
says so.

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

[Medium impact] The PR appears safe to merge.

Summary

Moves DynamicEmb’s hierarchical tests into separate groups so the regular CI jobs no longer run them.

  • Hierarchical distribution tests now run in their own CI groups.

No new actionable issues found.

Reviews (3) · Last reviewed commit: "[FEA] DynamicEmb: the CI runs the hier g..." · Reviewed by Greptile

shijieliu and others added 2 commits November 12, 2026 23:16
…ting tests on the dist

test/unit_test.sh's hier group now holds the dist's own tests alone
(test_hier_dist.sh, test_hier_overflow.sh, test_hier_pipeline.sh), which
the CI runs on GB300, on one tray and across trays. The files of fwd_bwd and
load_dump that run again on the dist get groups of their own,
hier_fwd_bwd (five files) and hier_load_dump (three), each file with the
group it comes from. Most of their runs take 8 GPUs on one host, so the CI
runs them on Eos. The groups that rerun files on the dist are now called
ON_HIER_DIST. The design doc's section 18 says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: aleliu <[email protected]>
The CI runs the hierarchical dist's own tests on Eos as well as GB300: on
one node of 8 H100s, so at 6 and 8 GPUs, and across two nodes over
InfiniBand. The design doc and test/unit_test.sh's comment say so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: aleliu <[email protected]>
shijieliu added a commit to shijieliu/recsys-examples that referenced this pull request Nov 13, 2026
…Link does not connect

node_size raises NVLinkCheckError (a RuntimeError, exported from
dynamicemb.shard) when NVLink does not connect two GPUs of a node, or a
rank of a node of more than one GPU cannot read its GPU's NVLinks. A
sharding on "hierarchical" raises it at its first input_dist, on every
rank alike, as for a configuration the op refuses, and tells to set
output_dist to "auto" or "torchrec"; one on "auto" still warns and takes
TorchRec's dists.

The CI runs the dist's tests on Eos and GB300 alone (NVIDIA#550), where NVLink
connects every node, so the tests of nodes it does not connect go: the
dist's tests, hier_switch.py, benchmark_utils.py and the HSTU example's
test are as on main. Docs: sections 4.2, 6, 7.2, 19 and 20.

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

Copy link
Copy Markdown
Collaborator Author

ci

@shijieliu
shijieliu merged commit b17b32a into NVIDIA:main Nov 13, 2026
1 check passed
shijieliu added a commit that referenced this pull request Nov 13, 2026
… connects its GPUs (#553)

* [FIX] DynamicEmb: the hierarchical dist takes a node only when NVLink connects its GPUs

NCCL's LSA team, the dist's node, is the GPUs of a host whatever joins
them, PCIe alone too. The dist moves a node's keys and rows over NVLink
alone. On two CI hosts of 8 PCIe GPUs (H100 PCIe and A100 PCIe), where the
team was the host's 8, test_hier_pipeline.py hung once, and a call of
test_hier_dist.py read a status word its kernel had not written.

node_size now reads, with each rank's team, its GPU from NVML
(nvidia-ml-py's pynvml, in NGC's PyTorch images): its active NVLinks and
the GPUs or NVSwitches at their other ends, and its NVLink fabric clique
once it joined one (MNNVL). Two GPUs of a node must be in one clique, or
on one host joined by an NVLink or each on an NVSwitch. Otherwise, or when
a rank of a node of more than one GPU cannot read its GPU, node_size
raises the same RuntimeError on every rank, naming the first such pair of
ranks, and a sharding warns and takes TorchRec's dists, under
"hierarchical" as under "auto", as for the other limits of the hardware
(a GPU before compute capability 8.0, a team the op's own communicator
does not get).

Tests: test_hier_dist.py checks the rule on lists of its own and with
the last rank's GPU read as linked to nothing. On a node NVLink does not
connect, test_hier_dist.py checks that a sharding takes TorchRec's dists,
test_hier_pipeline.py that "hierarchical" and "auto" train as TorchRec's
dists do, test_hier_overflow.py and the HSTU example's test skip, and the
existing tests run on the dist expect TorchRec's dists. Docs: sections 2,
4.2, 6, 7.2, 18, 19 and 20.

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

* [FIX] DynamicEmb: "hierarchical" raises NVLinkCheckError on a node NVLink does not connect

node_size raises NVLinkCheckError (a RuntimeError, exported from
dynamicemb.shard) when NVLink does not connect two GPUs of a node, or a
rank of a node of more than one GPU cannot read its GPU's NVLinks. A
sharding on "hierarchical" raises it at its first input_dist, on every
rank alike, as for a configuration the op refuses, and tells to set
output_dist to "auto" or "torchrec"; one on "auto" still warns and takes
TorchRec's dists.

The CI runs the dist's tests on Eos and GB300 alone (#550), where NVLink
connects every node, so the tests of nodes it does not connect go: the
dist's tests, hier_switch.py, benchmark_utils.py and the HSTU example's
test are as on main. Docs: sections 4.2, 6, 7.2, 19 and 20.

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

---------

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