Skip to content
Prev Previous commit
[PyTorch] Use 128-token splits in the tied te.ops GroupedLinear test
te.ops.GroupedLinear now validates on device that every split is a
multiple of split_alignment (default 128), so 16-token splits trap in
the forward pass.

Signed-off-by: Alp Dener <adener@nvidia.com>
  • Loading branch information
denera committed Oct 30, 2026
commit 80c5ae2bf031557f73102d5b0c80d4d4b108f2cd
3 changes: 2 additions & 1 deletion tests/pytorch/test_tied_delayed_wgrad.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ def test_tied_grouped_linear_ops_gradients(set_to_none, backward_dw_order, packe
pytest.skip("packed grouped weights require a supported GPU and cuBLASLt")
monkeypatch.setenv("NVTE_GROUPED_LINEAR_SINGLE_PARAM", "1" if packed else "0")
torch.manual_seed(9)
num_groups, hidden_size, tokens_per_group, microbatches = 2, 16, 16, 2
# Split sizes must be multiples of te.ops.GroupedLinear's default split_alignment (128).
num_groups, hidden_size, tokens_per_group, microbatches = 2, 16, 128, 2
delayed = nn.ModuleList(
[
te.ops.GroupedLinear(
Expand Down
Loading