Repository navigation
fix(hstu): fix FBGEMM so Hopper DSL is paged-only - #535
Merged
Merged
Conversation
Keep SM90 dense training on C++ fwd_90/bwd_90. Depends on jiayus-nvidia/FBGEMM#20 (a4b5764c).
Point third_party/FBGEMM at d6249db5, the merge of jiayus-nvidia/FBGEMM#20.
Collaborator
Author
|
/build |
Contributor
[Medium impact] No blocking issue was established in the changes since the previous review. SummaryUpdates
Reviews (3) · Last reviewed commit: "Revert "fix(hstu): overlay pinned FBGEMM..." · Reviewed by Greptile |
Collaborator
|
❌ Pipeline #79104793 -- failed
Result: 12/17 jobs passed |
train_build reuses devel_latest's dist-packages hstu, so a python-only FBGEMM pin never reached unit_test_1gpu_h100. Copy the submodule python over the installed package and keep the prebuilt .so.
This reverts commit 453874b.
shijieliu
approved these changes
Nov 10, 2026
shijieliu
added a commit
to shijieliu/recsys-examples
that referenced
this pull request
Nov 12, 2026
Merge main up to 476cdc0: NVIDIA#544 and NVIDIA#547 in DynamicEmb; NVIDIA#535, NVIDIA#537, NVIDIA#539 and NVIDIA#540 outside it. - NVIDIA#544 deduplicates int32 keys as int64 in _dedup_indices and returns them in the input's dtype, as this branch did. The merge keeps main's widening (indices_64bit) and drops this branch's copy of it, so the keys are widened once. It keeps this branch's structure: a sharding on the hierarchical dist keeps its unique keys sized on the device, and TorchRec's dists slice them to the count. The docstring says both. - NVIDIA#544 also bucketizes an int32 key as the int64 key of its value. The hierarchical dist's own bucketize still reads a key in its own width; the next commit gives it int32 keys as int64. - DynamicEmb_APIs.md: main's paragraph on how the rules read a key, then this branch's line that the hierarchical dist takes roundrobin and hash_roundrobin only. - test_sequence_embedding_fw.py and test_twin_module.py: main's int32 runs (NVIDIA#544) and no-grad forward (NVIDIA#547), with this branch's checks that a sharding took the dist it was given (check_path, check_totals). - NVIDIA#547 (a no-grad training forward releases its slot pins, after refreshing its slots past a rehash) merges without conflicts next to this branch's row map and load_from_flat_by. Co-Authored-By: Claude Opus 5.5 <[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.
Description
Pin
third_party/FBGEMMto jiayus-nvidia/FBGEMM#20 (a4b5764c) so SM90 Hopper DSL is used only for paged inference (kv_cache). Dense training stays on C++hstu_varlen_fwd_90/hstu_varlen_bwd_90.Checklist
Test plan
test_hstu_attn12 previously failing H100 cases +target_group_size=1controls: 16 passed on H20 (SM90)test_paged_hstu_attn_kernel.py: 24 passed (still launches Hopper DSL)test_paged_hstu_layer.py: passedunit_test_1gpu_h100after FBGEMM#20 is merged