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
3486a92a
"docs/source/ja/tasks/image_classification.md" did not exist on "ae2dd42be5f577c7ac3f336cc43ee6b51803d8cd"
Unverified
Commit
3486a92a
authored
Apr 28, 2022
by
Zachary Mueller
Committed by
GitHub
Apr 28, 2022
Browse files
Fix savedir for by epoch (#16996)
parent
5af5735f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/translation/run_translation_no_trainer.py
examples/pytorch/translation/run_translation_no_trainer.py
+1
-1
No files found.
examples/pytorch/translation/run_translation_no_trainer.py
View file @
3486a92a
...
...
@@ -678,7 +678,7 @@ def main():
)
if
args
.
checkpointing_steps
==
"epoch"
:
output_dir
=
f
"
step_
{
completed_steps
}
"
output_dir
=
f
"
epoch_
{
epoch
}
"
if
args
.
output_dir
is
not
None
:
output_dir
=
os
.
path
.
join
(
args
.
output_dir
,
output_dir
)
accelerator
.
save_state
(
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