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
eb3e072a
Unverified
Commit
eb3e072a
authored
May 19, 2021
by
Tomy Hsieh
Committed by
GitHub
May 18, 2021
Browse files
Fix a small error in summarization example (#11762)
parent
77f9bd18
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/summarization/run_summarization_no_trainer.py
...les/pytorch/summarization/run_summarization_no_trainer.py
+1
-1
No files found.
examples/pytorch/summarization/run_summarization_no_trainer.py
View file @
eb3e072a
...
@@ -338,7 +338,7 @@ def main():
...
@@ -338,7 +338,7 @@ def main():
# In distributed training, the .from_pretrained methods guarantee that only one local process can concurrently
# In distributed training, the .from_pretrained methods guarantee that only one local process can concurrently
# download model & vocab.
# download model & vocab.
if
args
.
config_name
:
if
args
.
config_name
:
config
=
AutoConfig
.
from_pretrained
(
args
.
model_name_or_path
)
config
=
AutoConfig
.
from_pretrained
(
args
.
config_name
)
elif
args
.
model_name_or_path
:
elif
args
.
model_name_or_path
:
config
=
AutoConfig
.
from_pretrained
(
args
.
model_name_or_path
)
config
=
AutoConfig
.
from_pretrained
(
args
.
model_name_or_path
)
else
:
else
:
...
...
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