Skip to content

Commit

Permalink
Merge branch 'master' into fix_hpu_module_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
tjruwase authored Aug 14, 2024
2 parents 9b7bebd + 24d1d86 commit 4847a98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deepspeed/runtime/zero/stage_1_and_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,8 @@ def print_rank_0(self, message):
logger.info(message)

def gradient_reduction_w_predivide(self, tensor):
if tensor.size().numel() == 0:
return tensor

dp_world_size = dist.get_world_size(group=self.dp_process_group)

Expand Down

0 comments on commit 4847a98

Please sign in to comment.