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
4a872cae
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "7959d835996d3c019b9cc9820982f7bf501fb876"
Unverified
Commit
4a872cae
authored
Jun 25, 2021
by
Stas Bekman
Committed by
GitHub
Jun 25, 2021
Browse files
remove extra white space from log format (#12360)
parent
a3daabfe
Changes
58
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
20 additions
and
20 deletions
+20
-20
examples/pytorch/language-modeling/run_plm.py
examples/pytorch/language-modeling/run_plm.py
+1
-1
examples/pytorch/multiple-choice/run_swag.py
examples/pytorch/multiple-choice/run_swag.py
+1
-1
examples/pytorch/multiple-choice/run_swag_no_trainer.py
examples/pytorch/multiple-choice/run_swag_no_trainer.py
+1
-1
examples/pytorch/question-answering/run_qa.py
examples/pytorch/question-answering/run_qa.py
+1
-1
examples/pytorch/question-answering/run_qa_beam_search.py
examples/pytorch/question-answering/run_qa_beam_search.py
+1
-1
examples/pytorch/question-answering/run_qa_beam_search_no_trainer.py
...torch/question-answering/run_qa_beam_search_no_trainer.py
+1
-1
examples/pytorch/question-answering/run_qa_no_trainer.py
examples/pytorch/question-answering/run_qa_no_trainer.py
+1
-1
examples/pytorch/summarization/run_summarization.py
examples/pytorch/summarization/run_summarization.py
+1
-1
examples/pytorch/summarization/run_summarization_no_trainer.py
...les/pytorch/summarization/run_summarization_no_trainer.py
+1
-1
examples/pytorch/text-classification/run_glue.py
examples/pytorch/text-classification/run_glue.py
+1
-1
examples/pytorch/text-classification/run_glue_no_trainer.py
examples/pytorch/text-classification/run_glue_no_trainer.py
+1
-1
examples/pytorch/text-classification/run_xnli.py
examples/pytorch/text-classification/run_xnli.py
+1
-1
examples/pytorch/text-generation/run_generation.py
examples/pytorch/text-generation/run_generation.py
+1
-1
examples/pytorch/token-classification/run_ner.py
examples/pytorch/token-classification/run_ner.py
+1
-1
examples/pytorch/token-classification/run_ner_no_trainer.py
examples/pytorch/token-classification/run_ner_no_trainer.py
+1
-1
examples/pytorch/translation/run_translation.py
examples/pytorch/translation/run_translation.py
+1
-1
examples/pytorch/translation/run_translation_no_trainer.py
examples/pytorch/translation/run_translation_no_trainer.py
+1
-1
examples/research_projects/adversarial/run_hans.py
examples/research_projects/adversarial/run_hans.py
+1
-1
examples/research_projects/bert-loses-patience/run_glue_with_pabee.py
...earch_projects/bert-loses-patience/run_glue_with_pabee.py
+1
-1
examples/research_projects/deebert/run_glue_deebert.py
examples/research_projects/deebert/run_glue_deebert.py
+1
-1
No files found.
examples/pytorch/language-modeling/run_plm.py
View file @
4a872cae
...
@@ -205,7 +205,7 @@ def main():
...
@@ -205,7 +205,7 @@ def main():
# Setup logging
# Setup logging
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
)
)
...
...
examples/pytorch/multiple-choice/run_swag.py
View file @
4a872cae
...
@@ -216,7 +216,7 @@ def main():
...
@@ -216,7 +216,7 @@ def main():
# Setup logging
# Setup logging
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
)
)
...
...
examples/pytorch/multiple-choice/run_swag_no_trainer.py
View file @
4a872cae
...
@@ -240,7 +240,7 @@ def main():
...
@@ -240,7 +240,7 @@ def main():
accelerator
=
Accelerator
()
accelerator
=
Accelerator
()
# Make one log on every process with the configuration for debugging.
# Make one log on every process with the configuration for debugging.
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
level
=
logging
.
INFO
,
level
=
logging
.
INFO
,
)
)
...
...
examples/pytorch/question-answering/run_qa.py
View file @
4a872cae
...
@@ -212,7 +212,7 @@ def main():
...
@@ -212,7 +212,7 @@ def main():
# Setup logging
# Setup logging
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
)
)
...
...
examples/pytorch/question-answering/run_qa_beam_search.py
View file @
4a872cae
...
@@ -211,7 +211,7 @@ def main():
...
@@ -211,7 +211,7 @@ def main():
# Setup logging
# Setup logging
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
)
)
...
...
examples/pytorch/question-answering/run_qa_beam_search_no_trainer.py
View file @
4a872cae
...
@@ -238,7 +238,7 @@ def main():
...
@@ -238,7 +238,7 @@ def main():
accelerator
=
Accelerator
()
accelerator
=
Accelerator
()
# Make one log on every process with the configuration for debugging.
# Make one log on every process with the configuration for debugging.
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
level
=
logging
.
INFO
,
level
=
logging
.
INFO
,
)
)
...
...
examples/pytorch/question-answering/run_qa_no_trainer.py
View file @
4a872cae
...
@@ -267,7 +267,7 @@ def main():
...
@@ -267,7 +267,7 @@ def main():
accelerator
=
Accelerator
()
accelerator
=
Accelerator
()
# Make one log on every process with the configuration for debugging.
# Make one log on every process with the configuration for debugging.
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
level
=
logging
.
INFO
,
level
=
logging
.
INFO
,
)
)
...
...
examples/pytorch/summarization/run_summarization.py
View file @
4a872cae
...
@@ -256,7 +256,7 @@ def main():
...
@@ -256,7 +256,7 @@ def main():
# Setup logging
# Setup logging
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
)
)
...
...
examples/pytorch/summarization/run_summarization_no_trainer.py
View file @
4a872cae
...
@@ -293,7 +293,7 @@ def main():
...
@@ -293,7 +293,7 @@ def main():
accelerator
=
Accelerator
()
accelerator
=
Accelerator
()
# Make one log on every process with the configuration for debugging.
# Make one log on every process with the configuration for debugging.
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
level
=
logging
.
INFO
,
level
=
logging
.
INFO
,
)
)
...
...
examples/pytorch/text-classification/run_glue.py
View file @
4a872cae
...
@@ -200,7 +200,7 @@ def main():
...
@@ -200,7 +200,7 @@ def main():
# Setup logging
# Setup logging
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
)
)
...
...
examples/pytorch/text-classification/run_glue_no_trainer.py
View file @
4a872cae
...
@@ -168,7 +168,7 @@ def main():
...
@@ -168,7 +168,7 @@ def main():
accelerator
=
Accelerator
()
accelerator
=
Accelerator
()
# Make one log on every process with the configuration for debugging.
# Make one log on every process with the configuration for debugging.
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
level
=
logging
.
INFO
,
level
=
logging
.
INFO
,
)
)
...
...
examples/pytorch/text-classification/run_xnli.py
View file @
4a872cae
...
@@ -170,7 +170,7 @@ def main():
...
@@ -170,7 +170,7 @@ def main():
# Setup logging
# Setup logging
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
)
)
...
...
examples/pytorch/text-generation/run_generation.py
View file @
4a872cae
...
@@ -41,7 +41,7 @@ from transformers import (
...
@@ -41,7 +41,7 @@ from transformers import (
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
level
=
logging
.
INFO
,
level
=
logging
.
INFO
,
)
)
...
...
examples/pytorch/token-classification/run_ner.py
View file @
4a872cae
...
@@ -191,7 +191,7 @@ def main():
...
@@ -191,7 +191,7 @@ def main():
# Setup logging
# Setup logging
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
)
)
...
...
examples/pytorch/token-classification/run_ner_no_trainer.py
View file @
4a872cae
...
@@ -221,7 +221,7 @@ def main():
...
@@ -221,7 +221,7 @@ def main():
accelerator
=
Accelerator
()
accelerator
=
Accelerator
()
# Make one log on every process with the configuration for debugging.
# Make one log on every process with the configuration for debugging.
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
level
=
logging
.
INFO
,
level
=
logging
.
INFO
,
)
)
...
...
examples/pytorch/translation/run_translation.py
View file @
4a872cae
...
@@ -241,7 +241,7 @@ def main():
...
@@ -241,7 +241,7 @@ def main():
# Setup logging
# Setup logging
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
handlers
=
[
logging
.
StreamHandler
(
sys
.
stdout
)],
)
)
...
...
examples/pytorch/translation/run_translation_no_trainer.py
View file @
4a872cae
...
@@ -264,7 +264,7 @@ def main():
...
@@ -264,7 +264,7 @@ def main():
# Make one log on every process with the configuration for debugging.
# Make one log on every process with the configuration for debugging.
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
level
=
logging
.
INFO
,
level
=
logging
.
INFO
,
)
)
...
...
examples/research_projects/adversarial/run_hans.py
View file @
4a872cae
...
@@ -115,7 +115,7 @@ def main():
...
@@ -115,7 +115,7 @@ def main():
# Setup logging
# Setup logging
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
level
=
logging
.
INFO
if
training_args
.
local_rank
in
[
-
1
,
0
]
else
logging
.
WARN
,
level
=
logging
.
INFO
if
training_args
.
local_rank
in
[
-
1
,
0
]
else
logging
.
WARN
,
)
)
...
...
examples/research_projects/bert-loses-patience/run_glue_with_pabee.py
View file @
4a872cae
...
@@ -621,7 +621,7 @@ def main():
...
@@ -621,7 +621,7 @@ def main():
# Setup logging
# Setup logging
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
level
=
logging
.
INFO
if
args
.
local_rank
in
[
-
1
,
0
]
else
logging
.
WARN
,
level
=
logging
.
INFO
if
args
.
local_rank
in
[
-
1
,
0
]
else
logging
.
WARN
,
)
)
...
...
examples/research_projects/deebert/run_glue_deebert.py
View file @
4a872cae
...
@@ -571,7 +571,7 @@ def main():
...
@@ -571,7 +571,7 @@ def main():
# Setup logging
# Setup logging
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(name)s -
%(message)s"
,
format
=
"%(asctime)s - %(levelname)s - %(name)s - %(message)s"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
datefmt
=
"%m/%d/%Y %H:%M:%S"
,
level
=
logging
.
INFO
if
args
.
local_rank
in
[
-
1
,
0
]
else
logging
.
WARN
,
level
=
logging
.
INFO
if
args
.
local_rank
in
[
-
1
,
0
]
else
logging
.
WARN
,
)
)
...
...
Prev
1
2
3
Next
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