Skip to content
Snippets Groups Projects
Unverified Commit f500963d authored by Kirushikesh DB's avatar Kirushikesh DB Committed by GitHub
Browse files

Incorrect warning message on HuggingFaceLLM tokenizer (#11883)

parent 74d60305
No related branches found
No related tags found
No related merge requests found
...@@ -183,9 +183,9 @@ class HuggingFaceLLM(CustomLLM): ...@@ -183,9 +183,9 @@ class HuggingFaceLLM(CustomLLM):
tokenizer_name, **tokenizer_kwargs tokenizer_name, **tokenizer_kwargs
) )
if tokenizer_name != model_name: if self._tokenizer.name_or_path != model_name:
logger.warning( logger.warning(
f"The model `{model_name}` and tokenizer `{tokenizer_name}` " f"The model `{model_name}` and tokenizer `{self._tokenizer.name_or_path}` "
f"are different, please ensure that they are compatible." f"are different, please ensure that they are compatible."
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment