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
5b5e4ca3
Unverified
Commit
5b5e4ca3
authored
Apr 22, 2021
by
johnson7788
Committed by
GitHub
Apr 22, 2021
Browse files
[run_translation.py] fix typo (#11372)
fix typo Co-authored-by:
johnson
<
johnson@github.com
>
parent
58d8795d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/translation/run_translation.py
examples/pytorch/translation/run_translation.py
+1
-1
No files found.
examples/pytorch/translation/run_translation.py
View file @
5b5e4ca3
...
...
@@ -377,7 +377,7 @@ def main():
forced_bos_token_id
=
(
tokenizer
.
lang_code_to_id
[
data_args
.
forced_bos_token
]
if
data_args
.
forced_bos_token
is
not
None
else
None
)
model
.
config
.
foced_bos_token_id
=
forced_bos_token_id
model
.
config
.
fo
r
ced_bos_token_id
=
forced_bos_token_id
# Get the language codes for input/target.
source_lang
=
data_args
.
source_lang
.
split
(
"_"
)[
0
]
...
...
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