Unverified Commit e1c153cb authored by Patrick von Platen's avatar Patrick von Platen Committed by GitHub
Browse files

[Typo] Fix typo in modeling utils (#16840)

parent 3104036e
......@@ -2068,7 +2068,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
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?"
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment