Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
e1c153cb
Unverified
Commit
e1c153cb
authored
Apr 19, 2022
by
Patrick von Platen
Committed by
GitHub
Apr 19, 2022
Browse files
[Typo] Fix typo in modeling utils (#16840)
parent
3104036e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_utils.py
src/transformers/modeling_utils.py
+1
-1
No files found.
src/transformers/modeling_utils.py
View file @
e1c153cb
...
...
@@ -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 tr
ain
ing to load is corrupted. Are you sure it was "
"The state dictionary of the model you are tr
y
ing to load is corrupted. Are you sure it was "
"properly saved?"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment