Skip to content

Commit

Permalink
Fix variable name for bf16 optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragjn committed Jun 18, 2024
1 parent ee7f726 commit f3738e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/runtime/bf16_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(self,

def destroy(self):
for i, _ in enumerate(self.optimizer.param_groups):
for p in self.bit16_groups[i]:
for p in self.bf16_groups[i]:
if getattr(p, '_hp_mapping', None):
p._hp_mapping = None
for hook in self._grad_acc_hooks:
Expand Down

0 comments on commit f3738e4

Please sign in to comment.