fix: chat template log appearing despite tokenizer already having template
This commit is contained in:
@@ -296,7 +296,7 @@ def load_tokenizer(cfg: DictDefault) -> PreTrainedTokenizer:
|
|||||||
)
|
)
|
||||||
|
|
||||||
tokenizer.chat_template = chat_template_string
|
tokenizer.chat_template = chat_template_string
|
||||||
else:
|
elif getattr(tokenizer, "chat_template", None) is None:
|
||||||
LOG.info(
|
LOG.info(
|
||||||
"No Chat template selected. Consider adding a chat template for easier inference."
|
"No Chat template selected. Consider adding a chat template for easier inference."
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user