Skip to content

Commit

Permalink
[Typo] Fix typo in modeling utils (#16840)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten authored Apr 19, 2022
1 parent 3104036 commit e1c153c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/modeling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2068,7 +2068,7 @@ def _fix_key(key):
model_to_load = getattr(model, cls.base_model_prefix)
if any(key in expected_keys_not_prefixed for key in loaded_keys):
raise ValueError(
"The state dictionary of the model you are training to load is corrupted. Are you sure it was "
"The state dictionary of the model you are trying to load is corrupted. Are you sure it was "
"properly saved?"
)

Expand Down

0 comments on commit e1c153c

Please sign in to comment.