Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion megatron/core/optimizer/clip_grads.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def count_zeros_fp32(
# - grad should not be none
# - parameter should not be shared
# - should not be a replica due to tensor model parallelism
total_num_zeros = torch.zeros(1, dtype=torch.float, device='cuda')
total_num_zeros = torch.zeros(1, dtype=torch.int64, device='cuda')
data_parallel_group = None
use_megatron_fsdp = False
for param in parameters:
Expand Down
Loading