Repository navigation
Fix residual gradient in non-learnable LayerNorm backward - #449
Conversation
Greptile SummaryThe PR moves residual-gradient accumulation into the non-learnable Triton LayerNorm backward kernel and adds focused numerical coverage.
Confidence Score: 4/5The kernel fix appears sound, but the unresolved test import must be corrected before merging because it prevents the new test module from being collected in the standard repository test environment. The current test still imports Files Needing Attention: examples/tests/commons/test_triton_layer_norm.py Important Files Changed
Reviews (2): Last reviewed commit: "Add gradient accumulation support in lay..." | Re-trigger Greptile |
|
/build |
|
Hi @rocketbastard could you move the test code to hstu-specific test file ? |
|
❌ Pipeline #63652527 -- failed
Result: 11/16 jobs passed |
Move dx_accumulate handling into the Triton backward kernel and add focused numerical unit tests.
Description
Fix residual gradient accumulation in the non-learnable LayerNorm backward path.
dx_accumulateinto the_layer_norm_bwd_dxTriton kernel.dx.add_()operation.Supersedes #447 because the original fork was deleted.
Fixes #446
Testing
The added unit tests passed successfully in the local GPU environment.
Checklist