Skip to content

Commit

Permalink
Removed unused dw tensor in Triton RMSNorm
Browse files Browse the repository at this point in the history
ghstack-source-id: 146e0a951eb2329decf448d014a361cff2a800c5
Pull Request resolved: #567
  • Loading branch information
awgu committed Sep 2, 2024
1 parent 07e51e6 commit da1deba
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion torchtitan/models/norms.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ def backward(ctx, dy):

M, N = dy.shape
dx = torch.empty_like(x)
dw = torch.empty_like(weight)

sm_count = torch.cuda.get_device_properties(x.device).multi_processor_count
_dw = torch.empty((sm_count, N), dtype=torch.float32, device=weight.device)
Expand Down

0 comments on commit da1deba

Please sign in to comment.