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
6bab8368
"tests/utils/test_feature_extraction_utils.py" did not exist on "cb38ffcc5e0ae2fac653342ac36dc75c15ea178f"
Unverified
Commit
6bab8368
authored
Feb 01, 2021
by
Stas Bekman
Committed by
GitHub
Feb 01, 2021
Browse files
fix logger format for non-main process (#9911)
parent
d85691ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/seq2seq/finetune_trainer.py
examples/seq2seq/finetune_trainer.py
+2
-2
No files found.
examples/seq2seq/finetune_trainer.py
View file @
6bab8368
...
@@ -175,11 +175,11 @@ def main():
...
@@ -175,11 +175,11 @@ def main():
bool
(
training_args
.
parallel_mode
==
ParallelMode
.
DISTRIBUTED
),
bool
(
training_args
.
parallel_mode
==
ParallelMode
.
DISTRIBUTED
),
training_args
.
fp16
,
training_args
.
fp16
,
)
)
transformers
.
utils
.
logging
.
enable_default_handler
()
transformers
.
utils
.
logging
.
enable_explicit_format
()
# Set the verbosity to info of the Transformers logger (on main process only):
# Set the verbosity to info of the Transformers logger (on main process only):
if
is_main_process
(
training_args
.
local_rank
):
if
is_main_process
(
training_args
.
local_rank
):
transformers
.
utils
.
logging
.
set_verbosity_info
()
transformers
.
utils
.
logging
.
set_verbosity_info
()
transformers
.
utils
.
logging
.
enable_default_handler
()
transformers
.
utils
.
logging
.
enable_explicit_format
()
logger
.
info
(
"Training/evaluation parameters %s"
,
training_args
)
logger
.
info
(
"Training/evaluation parameters %s"
,
training_args
)
# Set seed
# Set seed
...
...
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