You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The non-learnable LayerNorm backward path in examples/hstu/ops/triton_ops/triton_layer_norm.py does not accumulate the residual gradient passed through dx_accumulate.
The learnable branch handles this gradient, but the non-learnable branch calls _layer_norm_bwd_dx() and returns immediately.
Steps/Code to reproduce bug
Use the non-learnable LayerNorm backward path with:
Activity
rocketbastard commentedon Aug 4, 2026
I am working on a fix and will submit a pull request.