Skip to content

Commit

Permalink
[python] fix the padding_size typo (#2637)
Browse files Browse the repository at this point in the history
  • Loading branch information
sindhuvahinis authored Dec 13, 2024
1 parent f8caad0 commit 96a0efd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/python/setup/djl_python/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def _init_tokenizer(self, model_id_or_path: str):
path_to_use = model_id_or_path if self.peft_config is None else self.peft_config.base_model_name_or_path
self.tokenizer = AutoTokenizer.from_pretrained(
path_to_use,
padding_size="left",
padding_side="left",
trust_remote_code=self.hf_configs.trust_remote_code,
revision=self.hf_configs.revision,
)
Expand Down
2 changes: 1 addition & 1 deletion serving/docker/partition/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def remove_option_from_properties(properties: dict):
def init_hf_tokenizer(model_id_or_path: str, hf_configs):
tokenizer = AutoTokenizer.from_pretrained(
model_id_or_path,
padding_size="left",
padding_side="left",
trust_remote_code=hf_configs.trust_remote_code,
revision=hf_configs.revision,
)
Expand Down

0 comments on commit 96a0efd

Please sign in to comment.