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: c2337c6f976b41288498b7f3aa9b6f3d54d49ad9
Pull Request resolved: #567
  • Loading branch information
awgu committed Sep 4, 2024
1 parent a99d2e5 commit ac90c36
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 ac90c36

Please sign in to comment.