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
db3edd05
Unverified
Commit
db3edd05
authored
Apr 12, 2022
by
Heerak Son
Committed by
GitHub
Apr 12, 2022
Browse files
Update run_translation_no_trainer.py (#16652)
args.model_name_or_path -> args.config_name fix it
parent
b9f12bed
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 @
db3edd05
...
...
@@ -357,7 +357,7 @@ def main():
# In distributed training, the .from_pretrained methods guarantee that only one local process can concurrently
# download model & vocab.
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
:
config
=
AutoConfig
.
from_pretrained
(
args
.
model_name_or_path
)
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