Conversation
bhimrazy
requested review from
k223kim,
lianakoleva and
tejapulagam
as code owners
September 24, 2026 08:30
bhimrazy
added this pull request to stack #2839
September 24, 2026 08:31
bhimrazy
force-pushed
the
bhimrazy/group-norm-torch-214
branch
from
September 24, 2026 08:47
cdeb573 to
6f40e6f
Compare
bhimrazy
force-pushed
the
bhimrazy/group-norm-torch-214
branch
from
September 24, 2026 11:10
6f40e6f to
5131b42
Compare
bhimrazy
removed this pull request from stack #2839
September 24, 2026 11:11
bhimrazy
added this pull request to stack #2849
September 24, 2026 11:12
bhimrazy
force-pushed
the
bhimrazy/group-norm-torch-214
branch
from
September 24, 2026 12:29
5131b42 to
321fb2c
Compare
torch 2.14 rejects group_norm inputs with an empty channel or spatial
extent ("Expected number of channels to be greater than 0", "Expected HxW
to be greater than 0"); 2.13 and earlier accepted them. The sample
generator builds shapes from (0, 2) in every dim, so the torch reference
failed on inputs it now refuses. An empty batch is still accepted, so only
channels and the spatial dims are filtered.
The boundary is 2.14, not 2.13, hence the new constant.
bhimrazy
force-pushed
the
bhimrazy/group-norm-torch-214
branch
from
September 24, 2026 13:44
321fb2c to
74d1cb5
Compare
lianakoleva
approved these changes
Sep 24, 2026
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.
What does this PR do?
Skips the
group_normsamples that torch 2.14 no longer accepts.Problem: torch 2.14 rejects
group_norminputs with an empty channel or spatial dim (Expected number of channels to be greater than 0). The sample generator builds shapes from(0, 2), so torch's reference now fails on some samples. Thunder'sgroup_normis fine.Fix: skip those samples on torch 2.14+, gated on a new
_TORCH_GREATER_EQUAL_2_14inthunder/constants.py. Older torch still covers them, and empty-batch samples stay.Related CI: the only failure in all eight grads and ops jobs:
pytester (ubuntu-22.04 / macOS-15, 3.10, latest / nightly, grads):test_vjp_correctness_group_normpytester (ubuntu-22.04 / macOS-15, 3.10, latest / nightly, ops):test_core_vs_torch_consistency_group_normCI log (
pytester (ubuntu-22.04, 3.10, latest, ops), on #2842)Part 7 of the breakdown of #2832.