Skip to content

Commit

Permalink
remove useless comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyiou committed Sep 18, 2024
1 parent 5a44f8c commit b1231c4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions deepspeed/runtime/zero/stage_1_and_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,9 +1070,6 @@ def average_tensor(self, tensor):

process_group = self.dp_process_group

#Averages gradients at parameter level if ipg has a moe param
#Otherwise averaging is done at the entire buffer level at the end of the loop
# MoE param have different groups
if self.ipg_bucket_has_moe_params:
process_group = self.expert_dp_process_group[param.group_name] if is_moe_param(
param) else self.dp_process_group
Expand Down

0 comments on commit b1231c4

Please sign in to comment.