Skip to content

fix(hstu): fix FBGEMM so Hopper DSL is paged-only - #535

Merged
shijieliu merged 4 commits into
NVIDIA:mainfrom
Clebrate:fix/hstu-dsl-paged-only
Nov 10, 2026
Merged

shijieliu merged 4 commits into
NVIDIA:mainfrom
Clebrate:fix/hstu-dsl-paged-only

Conversation

@Clebrate

@Clebrate Clebrate commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Pin third_party/FBGEMM to 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

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

Test plan

  • Recsys test_hstu_attn 12 previously failing H100 cases + target_group_size=1 controls: 16 passed on H20 (SM90)
  • Recsys test_paged_hstu_attn_kernel.py: 24 passed (still launches Hopper DSL)
  • Recsys test_paged_hstu_layer.py: passed
  • Recsys CI unit_test_1gpu_h100 after FBGEMM#20 is merged

Keep SM90 dense training on C++ fwd_90/bwd_90. Depends on
jiayus-nvidia/FBGEMM#20 (a4b5764c).
@Clebrate Clebrate changed the title fix(hstu): pin FBGEMM so Hopper DSL is paged-only fix(hstu): fix FBGEMM so Hopper DSL is paged-only Nov 4, 2026
@Clebrate

Clebrate commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

/build

@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] No blocking issue was established in the changes since the previous review.

Summary

Updates third_party/FBGEMM to d6249db5 to keep Hopper DSL limited to paged inference.

  • Hopper HSTU keeps dense training on C++ and paged inference on DSL.

Reviews (3) · Last reviewed commit: "Revert "fix(hstu): overlay pinned FBGEMM..." · Reviewed by Greptile

@JacoCheung

JacoCheung commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

❌ Pipeline #79104793 -- failed

Job Status Log
pre_check ❌ failed view
train_build_x86 ✅ success view
train_build_arm64 ✅ success view
prepare-jet-b200-smoke ✅ success view
prepare-jet-b200-inference ✅ success view
prepare-jet-cw-dfw-e2e-benchmark ✅ success view
build_whl ✅ success view
dynamicemb_test_fwd_bwd_8gpus ✅ success view
dynamicemb_test_load_dump_8gpus ✅ success view
unit_test_1gpu_a100 ✅ success view
unit_test_4gpu ✅ success view
unit_test_tp_4gpu ❌ failed view
L20_unit_test_1gpu ✅ success view
inference_unit_test_1gpu ❌ failed view
inference_test_1gpu ❌ failed view
inference_test_nve_2605_1gpu ✅ success view
unit_test_1gpu_h100 ❌ failed view

Result: 12/17 jobs passed

View full pipeline

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.
@shijieliu
shijieliu merged commit 08051a3 into NVIDIA:main Nov 10, 2026
1 check passed
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]>
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.

3 participants