Skip to content

Commit

Permalink
fix ckpt load bug (#9621)
Browse files Browse the repository at this point in the history
* fix ckpt load bug

Signed-off-by: dimapihtar <[email protected]>

* Apply isort and black reformatting

Signed-off-by: dimapihtar <[email protected]>

---------

Signed-off-by: dimapihtar <[email protected]>
Signed-off-by: dimapihtar <[email protected]>
Co-authored-by: dimapihtar <[email protected]>
Signed-off-by: Tugrul Konuk <[email protected]>
  • Loading branch information
2 people authored and ertkonuk committed Jul 19, 2024
1 parent 544b8e8 commit 82c529f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nemo/collections/nlp/parts/nlp_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ def _integrate_original_checkpoint_data(self, checkpoint: Dict[str, Any]) -> Dic
]['optimizer']['param_groups']
else:
checkpoint['optimizer_states'][0]['param_groups'] = original_checkpoint['optimizer_states'][0][
'optimizer'
]['param_groups']
'param_groups'
]

return checkpoint

Expand Down

0 comments on commit 82c529f

Please sign in to comment.