mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
[run_translation.py] fix typo (#11372)
fix typo Co-authored-by: johnson <johnson@github.com>
This commit is contained in:
parent
58d8795d74
commit
5b5e4ca366
@ -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.forced_bos_token_id = forced_bos_token_id
|
||||
|
||||
# Get the language codes for input/target.
|
||||
source_lang = data_args.source_lang.split("_")[0]
|
||||
|
Loading…
Reference in New Issue
Block a user