Repository navigation
[PyTorch] Fix grouped split validation for GroupedLinear/GroupedMLP ops - #3785
Merged
vthumbe1503 merged 9 commits intoOct 31, 2026
Merged
vthumbe1503 merged 9 commits into
vthumbe1503 merged 9 commits into
Conversation
Signed-off-by: Varun Thumbe <vthumbe@nvidia.com>
Signed-off-by: Varun Thumbe <vthumbe@nvidia.com>
vthumbe1503
marked this pull request as ready for review
October 30, 2026 17:22
Collaborator
Author
|
/te-ci pytorch |
Contributor
[Medium impact] The PR appears safe to merge; no new actionable issues were found. Summary
No new actionable issues were found. Review checks were static; no build or GPU tests were run. Reviews (7) · Last reviewed commit: "Check discrete grouped GEMM input alignm..." · Reviewed by Greptile |
Signed-off-by: Varun Thumbe <vthumbe@nvidia.com>
timmoon10
reviewed
Oct 30, 2026
Co-authored-by: Tim Moon <4406448+timmoon10@users.noreply.github.com> Signed-off-by: vthumbe1503 <vthumbe@nvidia.com>
Signed-off-by: Varun Thumbe <vthumbe@nvidia.com>
for more information, see https://pre-commit.ci
vthumbe1503
force-pushed
the
fix/grouped-linear-deferred-init-test-alignment
branch
from
October 30, 2026 22:08
3a427c1 to
e41cb5e
Compare
Signed-off-by: Varun Thumbe <vthumbe@nvidia.com>
Signed-off-by: Varun Thumbe <vthumbe@nvidia.com>
Collaborator
Author
|
/te-ci pytorch |
bvolpato
added a commit
to bvolpato/TransformerEngine
that referenced
this pull request
Oct 31, 2026
Include upstream NVIDIA#3785 so BF16 grouped-linear validation uses recipe-specific split alignment. Preserve the original two-file MXFP8 stride fix. Signed-off-by: bvolpato <brunocvcunha@gmail.com>
5 of 13 tasks
7 of 13 tasks
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.
Summary
GroupedLinearsplit alignment from the active recipe: 1 for BF16/FP16 and Blackwell FP8 current scaling, 16 for Hopper FP8 current scaling, and 128 for MXFP8/NVFP4/FP8 block scaling. An explicit value applies unless the deprecated environment override forces 256.Cause
PR #3745 passed the default
split_alignment=128into the device-side scan for every grouped-tensor path. Unquantized BF16 accepts 32-row groups, soTestFuser.test_deferred_param_inittrapped at the forward call. Passing alignment 1 alone also bypassed the scan's negative-size guard; this PR makes that guard unconditional.Validation
Built and imported exact PR head
565bb89aon H100 NVL and GB200 PyTorch containers. No new test was added, per request.test_fusible_ops.pyCommand:
PYTHONPATH="$TE_PATH" python3 -m pytest -q tests/pytorch/test_fusible_ops.py --tb=short --disable-warnings.A separate GPU process on each architecture using splits
[-1, 65]andsplit_alignment=1reached the device-side negative-size error and failed as expected.