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
13fd6734
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "554d333ece6d170ebb0da3fade17174c75e506fc"
Unverified
Commit
13fd6734
authored
May 31, 2022
by
Michele Conti
Committed by
GitHub
May 31, 2022
Browse files
Fix typo (remove parenthesis) (#17415)
parent
d156898f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/trainer.py
src/transformers/trainer.py
+1
-1
No files found.
src/transformers/trainer.py
View file @
13fd6734
...
@@ -1712,7 +1712,7 @@ class Trainer:
...
@@ -1712,7 +1712,7 @@ class Trainer:
):
):
raise
ValueError
(
f
"Can't find a valid checkpoint at
{
resume_from_checkpoint
}
"
)
raise
ValueError
(
f
"Can't find a valid checkpoint at
{
resume_from_checkpoint
}
"
)
logger
.
info
(
f
"Loading model from
{
resume_from_checkpoint
}
)
."
)
logger
.
info
(
f
"Loading model from
{
resume_from_checkpoint
}
."
)
if
os
.
path
.
isfile
(
os
.
path
.
join
(
resume_from_checkpoint
,
CONFIG_NAME
)):
if
os
.
path
.
isfile
(
os
.
path
.
join
(
resume_from_checkpoint
,
CONFIG_NAME
)):
config
=
PretrainedConfig
.
from_json_file
(
os
.
path
.
join
(
resume_from_checkpoint
,
CONFIG_NAME
))
config
=
PretrainedConfig
.
from_json_file
(
os
.
path
.
join
(
resume_from_checkpoint
,
CONFIG_NAME
))
...
...
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