Update _utils.py
This commit is contained in:
parent
4a695a73f5
commit
912ddd99b2
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ def patch_tokenizer(model, tokenizer):
|
|||
tokenizer.pad_token = tokenizer.unk_token
|
||||
else:
|
||||
name = model.config._name_or_path if model is not None else "Model"
|
||||
logger.warning_one(
|
||||
logger.warning_once(
|
||||
f"{name} does not have a padding or unknown token!\n"\
|
||||
f"Will use the EOS token of id {tokenizer.eos_token_id} as padding."
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue