Skip to content

Commit

Permalink
fix deepspeed model saving (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman100 committed May 18, 2022
1 parent 043d2ec commit d33dc39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ def get_state_dict(self, model):
is_zero_3 = self.state.deepspeed_plugin.zero_stage == 3

if is_zero_3:
state_dict = model._zero3_consolidated_fp16_state_dict()
state_dict = model._zero3_consolidated_16bit_state_dict()
else:
model = self.unwrap_model(model)
state_dict = model.state_dict()
Expand Down

0 comments on commit d33dc39

Please sign in to comment.