Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
b0cbcdb0
Unverified
Commit
b0cbcdb0
authored
Sep 15, 2020
by
Stas Bekman
Committed by
GitHub
Sep 15, 2020
Browse files
[logging] remove no longer needed verbosity override (#7100)
parent
2bf70e21
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
7 additions
and
10 deletions
+7
-10
examples/bert-loses-patience/run_glue_with_pabee.py
examples/bert-loses-patience/run_glue_with_pabee.py
+1
-1
examples/contrib/mm-imdb/run_mmimdb.py
examples/contrib/mm-imdb/run_mmimdb.py
+1
-1
examples/contrib/run_swag.py
examples/contrib/run_swag.py
+0
-1
examples/deebert/run_glue_deebert.py
examples/deebert/run_glue_deebert.py
+1
-1
examples/distillation/run_squad_w_distillation.py
examples/distillation/run_squad_w_distillation.py
+0
-1
examples/movement-pruning/masked_run_glue.py
examples/movement-pruning/masked_run_glue.py
+1
-1
examples/movement-pruning/masked_run_squad.py
examples/movement-pruning/masked_run_squad.py
+1
-1
examples/question-answering/run_squad.py
examples/question-answering/run_squad.py
+1
-1
examples/text-classification/run_xnli.py
examples/text-classification/run_xnli.py
+1
-1
templates/adding_a_new_example_script/run_xxx.py
templates/adding_a_new_example_script/run_xxx.py
+0
-1
No files found.
examples/bert-loses-patience/run_glue_with_pabee.py
View file @
b0cbcdb0
...
@@ -721,7 +721,7 @@ def main():
...
@@ -721,7 +721,7 @@ def main():
checkpoints
=
list
(
checkpoints
=
list
(
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
)
)
logging
.
getLogger
(
"transformers.modeling_utils"
).
setLevel
(
logging
.
WARN
)
# Reduce logging
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
for
checkpoint
in
checkpoints
:
for
checkpoint
in
checkpoints
:
...
...
examples/contrib/mm-imdb/run_mmimdb.py
View file @
b0cbcdb0
...
@@ -547,7 +547,7 @@ def main():
...
@@ -547,7 +547,7 @@ def main():
checkpoints
=
list
(
checkpoints
=
list
(
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
)
)
logging
.
getLogger
(
"transformers.modeling_utils"
).
setLevel
(
logging
.
WARN
)
# Reduce logging
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
for
checkpoint
in
checkpoints
:
for
checkpoint
in
checkpoints
:
global_step
=
checkpoint
.
split
(
"-"
)[
-
1
]
if
len
(
checkpoints
)
>
1
else
""
global_step
=
checkpoint
.
split
(
"-"
)[
-
1
]
if
len
(
checkpoints
)
>
1
else
""
...
...
examples/contrib/run_swag.py
View file @
b0cbcdb0
...
@@ -681,7 +681,6 @@ def main():
...
@@ -681,7 +681,6 @@ def main():
checkpoints
=
list
(
checkpoints
=
list
(
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
)
)
logging
.
getLogger
(
"transformers.modeling_utils"
).
setLevel
(
logging
.
WARN
)
# Reduce model loading logs
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
...
...
examples/deebert/run_glue_deebert.py
View file @
b0cbcdb0
...
@@ -677,7 +677,7 @@ def main():
...
@@ -677,7 +677,7 @@ def main():
checkpoints
=
list
(
checkpoints
=
list
(
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
)
)
logging
.
getLogger
(
"transformers.modeling_utils"
).
setLevel
(
logging
.
WARN
)
# Reduce logging
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
for
checkpoint
in
checkpoints
:
for
checkpoint
in
checkpoints
:
global_step
=
checkpoint
.
split
(
"-"
)[
-
1
]
if
len
(
checkpoints
)
>
1
else
""
global_step
=
checkpoint
.
split
(
"-"
)[
-
1
]
if
len
(
checkpoints
)
>
1
else
""
...
...
examples/distillation/run_squad_w_distillation.py
View file @
b0cbcdb0
...
@@ -842,7 +842,6 @@ def main():
...
@@ -842,7 +842,6 @@ def main():
checkpoints
=
list
(
checkpoints
=
list
(
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
)
)
logging
.
getLogger
(
"transformers.modeling_utils"
).
setLevel
(
logging
.
WARN
)
# Reduce model loading logs
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
...
...
examples/movement-pruning/masked_run_glue.py
View file @
b0cbcdb0
...
@@ -934,7 +934,7 @@ def main():
...
@@ -934,7 +934,7 @@ def main():
checkpoints
=
list
(
checkpoints
=
list
(
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
)
)
logging
.
getLogger
(
"transformers.modeling_utils"
).
setLevel
(
logging
.
WARN
)
# Reduce logging
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
for
checkpoint
in
checkpoints
:
for
checkpoint
in
checkpoints
:
global_step
=
checkpoint
.
split
(
"-"
)[
-
1
]
if
len
(
checkpoints
)
>
1
else
""
global_step
=
checkpoint
.
split
(
"-"
)[
-
1
]
if
len
(
checkpoints
)
>
1
else
""
...
...
examples/movement-pruning/masked_run_squad.py
View file @
b0cbcdb0
...
@@ -1098,7 +1098,7 @@ def main():
...
@@ -1098,7 +1098,7 @@ def main():
os
.
path
.
dirname
(
c
)
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
)
)
logging
.
getLogger
(
"transformers.modeling_utils"
).
setLevel
(
logging
.
WARN
)
# Reduce model loading logs
else
:
else
:
logger
.
info
(
"Loading checkpoint %s for evaluation"
,
args
.
model_name_or_path
)
logger
.
info
(
"Loading checkpoint %s for evaluation"
,
args
.
model_name_or_path
)
checkpoints
=
[
args
.
model_name_or_path
]
checkpoints
=
[
args
.
model_name_or_path
]
...
...
examples/question-answering/run_squad.py
View file @
b0cbcdb0
...
@@ -792,7 +792,7 @@ def main():
...
@@ -792,7 +792,7 @@ def main():
os
.
path
.
dirname
(
c
)
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
)
)
logging
.
getLogger
(
"transformers.modeling_utils"
).
setLevel
(
logging
.
WARN
)
# Reduce model loading logs
else
:
else
:
logger
.
info
(
"Loading checkpoint %s for evaluation"
,
args
.
model_name_or_path
)
logger
.
info
(
"Loading checkpoint %s for evaluation"
,
args
.
model_name_or_path
)
checkpoints
=
[
args
.
model_name_or_path
]
checkpoints
=
[
args
.
model_name_or_path
]
...
...
examples/text-classification/run_xnli.py
View file @
b0cbcdb0
...
@@ -602,7 +602,7 @@ def main():
...
@@ -602,7 +602,7 @@ def main():
checkpoints
=
list
(
checkpoints
=
list
(
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
)
)
logging
.
getLogger
(
"transformers.modeling_utils"
).
setLevel
(
logging
.
WARN
)
# Reduce logging
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
for
checkpoint
in
checkpoints
:
for
checkpoint
in
checkpoints
:
global_step
=
checkpoint
.
split
(
"-"
)[
-
1
]
if
len
(
checkpoints
)
>
1
else
""
global_step
=
checkpoint
.
split
(
"-"
)[
-
1
]
if
len
(
checkpoints
)
>
1
else
""
...
...
templates/adding_a_new_example_script/run_xxx.py
View file @
b0cbcdb0
...
@@ -678,7 +678,6 @@ def main():
...
@@ -678,7 +678,6 @@ def main():
checkpoints
=
list
(
checkpoints
=
list
(
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
os
.
path
.
dirname
(
c
)
for
c
in
sorted
(
glob
.
glob
(
args
.
output_dir
+
"/**/"
+
WEIGHTS_NAME
,
recursive
=
True
))
)
)
logging
.
getLogger
(
"transformers.modeling_utils"
).
setLevel
(
logging
.
WARN
)
# Reduce model loading logs
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
logger
.
info
(
"Evaluate the following checkpoints: %s"
,
checkpoints
)
...
...
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