Skip to content

Move Triton LayerNorm test under HSTU - #476

Merged
shijieliu merged 1 commit into
NVIDIA:mainfrom
JacoCheung:codex/move-layernorm-test-to-hstu
Sep 2, 2026
Merged

shijieliu merged 1 commit into
NVIDIA:mainfrom
JacoCheung:codex/move-layernorm-test-to-hstu

Conversation

@JacoCheung

Copy link
Copy Markdown
Collaborator

Summary

  • move the non-learnable Triton LayerNorm backward residual-gradient test into the HSTU-specific test suite
  • remove the HSTU-dependent test from the common test directory
  • preserve all parameter combinations, reference calculations, assertions, and tolerances

Testing

  • pre-commit: isort, autoflake, codespell, black, and mypy
  • pytest -q examples/hstu/test/test_ln_mul_dropout.py::test_non_learnable_layer_norm_backward_residual_gradient: 8 passed on H100
  • pytest -q examples/hstu/test/test_ln_mul_dropout.py: 42 passed on H100

@greptile-apps

greptile-apps Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR relocates the non-learnable Triton LayerNorm backward residual-gradient regression test from the common suite into the HSTU-specific suite without changing its parameter coverage, reference calculation, assertions, or tolerances.

  • Adds the required torch.nn.functional import and regression test to the existing HSTU LayerNorm test module.
  • Removes the now-redundant common test module.

Confidence Score: 5/5

The PR appears safe to merge with the regression test preserved in its more appropriate HSTU-specific suite.

The moved test retains its complete implementation and parameterization, its new dependency import is present, and no repository-local references still depend on the deleted test path.

Important Files Changed

Filename Overview
examples/hstu/test/test_ln_mul_dropout.py Adds the relocated LayerNorm backward residual-gradient test and its required functional import while preserving the original test behavior.
examples/tests/commons/test_triton_layer_norm.py Removes the original standalone test module after its sole test is moved into the HSTU suite.

Reviews (1): Last reviewed commit: "Move Triton layer norm test under HSTU" | Re-trigger Greptile

@JacoCheung

Copy link
Copy Markdown
Collaborator Author

/build

@JacoCheung

JacoCheung commented Sep 1, 2026 •

Copy link
Copy Markdown
Collaborator Author

✅ Pipeline #65617021 -- success

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_1gpu_h100 ✅ success view
unit_test_4gpu ✅ success view
unit_test_tp_4gpu ❌ failed view
L20_unit_test_1gpu ✅ success view
inference_unit_test_1gpu ✅ success view
inference_test_1gpu ✅ success view

Result: 14/16 jobs passed

View full pipeline

@shijieliu
shijieliu merged commit c06c587 into NVIDIA:main Sep 2, 2026
1 check passed
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.

2 participants