Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
LZHgrla committed Mar 18, 2024
1 parent 94149da commit 494c119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmengine/_strategy/deepspeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ def save_checkpoint(

state_dict_kwargs = {}
if digit_version(deepspeed.__version__) >= digit_version('0.13.2'):
state_dict_kwargs.update(
{'exclude_frozen_parameters': self.exclude_frozen_parameters})
state_dict_kwargs[
'exclude_frozen_parameters'] = self.exclude_frozen_parameters

if save_optimizer:
if hasattr(self, 'optim_wrapper'):
Expand Down

0 comments on commit 494c119

Please sign in to comment.