Repository navigation
[FEA] DynamicEmb: the hierarchical dist's tests leave the CI's fwd_bwd and load_dump groups for a hier group - #550
Merged
Conversation
…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]>
Contributor
[Medium impact] The PR appears safe to merge. SummaryMoves DynamicEmb’s hierarchical tests into separate groups so the regular CI jobs no longer run them.
No new actionable issues found. Reviews (3) · Last reviewed commit: "[FEA] DynamicEmb: the CI runs the hier g..." · Reviewed by Greptile |
…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]>
Collaborator
Author
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]>
This was referenced Nov 13, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_bwdandload_dumpgroups. On main's first pipeline (GitLab 81592418, an A100 node):load_dumpwas cancelled at the jobs' two-hour Slurm limit;fwd_bwdhung intest_hier_pipeline.py's DDP stress case, which is being debugged separately.Groups of
test/unit_test.sh, and where the CI runs themfwd_bwdload_dumphier_fwd_bwdfwd_bwd's files again on the dist (DYNAMICEMB_TEST_OUTPUT_DIST=hierarchical)hier_load_dumpload_dump's files again on the disthiertest_hier_dist.sh,test_hier_overflow.sh,test_hier_pipeline.shNotes on the table:
hier_fwd_bwdandhier_load_dumprun each file with the group it comes from. Their runs mostly take 8 GPUs on one host, which is why they run on Eos.hierruns 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.hierruns on one tray of 4 GPUs. Across two trays the dist's tests also run twice: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:
fwd_bwd(79 min) andload_dump(about 90 min on the node, after a 30 min queue), both within the jobs' two hours; the unit and inference jobs;hieron one tray (894 checks), and the dist's tests on two trays as one node and as two nodes (657 checks);hieron one node (28 min), the dist's tests across two nodes (400 checks, 21 min),hier_fwd_bwd(40 min) andhier_load_dump(2 h 17 min of its 4 h).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_1gpupassed on its third try, after a one-batch tolerance miss and a leftover container on a bad node.🤖 Generated with Claude Code