Skip to content

Commit

Permalink
bf16 load and finetune fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijkg committed Nov 6, 2023
1 parent 22fda1e commit 9368bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/runtime/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,7 @@ def _load_checkpoint(self,

if load_module_only:
deepspeed_states = ['module']
if self.optimizer is not None and self.fp16_enabled():
if self.optimizer is not None:
self.optimizer.refresh_fp32_params()
else:
if self.has_moe_layers:
Expand Down

0 comments on commit 9368bd9

Please sign in to comment.