From 5b5e4ca36607a7783d3e6e7514e9dd5d8d83f16c Mon Sep 17 00:00:00 2001 From: johnson7788 Date: Thu, 22 Apr 2021 20:17:11 +0800 Subject: [PATCH] [run_translation.py] fix typo (#11372) fix typo Co-authored-by: johnson --- examples/pytorch/translation/run_translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pytorch/translation/run_translation.py b/examples/pytorch/translation/run_translation.py index ff9a84bf68..e42dce9cf6 100755 --- a/examples/pytorch/translation/run_translation.py +++ b/examples/pytorch/translation/run_translation.py @@ -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]