Skip to content

Commit

Permalink
[BugFix] Update predictor.py (#9742)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHUI authored Jan 6, 2025
1 parent 4953500 commit 171726d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llm/predict/predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ def create_predictor(
predictor_args: PredictorArgument,
model_args: ModelArgument,
):
tokenizer = AutoTokenizer.from_pretrained(predictor_args.model_name_or_path)
tokenizer = AutoTokenizer.from_pretrained(predictor_args.model_name_or_path, padding_side="left")
# init chat_template for tokenizer
llm_utils.init_chat_template(tokenizer, predictor_args.model_name_or_path, predictor_args.chat_template)

Expand Down

0 comments on commit 171726d

Please sign in to comment.