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
7fa4b36e
Unverified
Commit
7fa4b36e
authored
Jan 25, 2024
by
Tom Aarsen
Committed by
GitHub
Jan 25, 2024
Browse files
[`chore`] Add missing space in warning (#28695)
Add missing space in warning
parent
963db81a
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 @
7fa4b36e
...
...
@@ -2370,7 +2370,7 @@ class Trainer:
output_dir
=
os
.
path
.
join
(
run_dir
,
checkpoint_folder
)
if
os
.
path
.
exists
(
output_dir
)
and
len
(
os
.
listdir
(
output_dir
))
>
0
:
logger
.
warning
(
f
"Checkpoint destination directory
{
output_dir
}
already exists and is non-empty."
f
"Checkpoint destination directory
{
output_dir
}
already exists and is non-empty.
"
"Saving will proceed but saved results may be invalid."
)
staging_output_dir
=
output_dir
...
...
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