diff --git a/llama-index-integrations/llms/llama-index-llms-huggingface/llama_index/llms/huggingface/base.py b/llama-index-integrations/llms/llama-index-llms-huggingface/llama_index/llms/huggingface/base.py index 59dc2b1e512b6..67539696d04e0 100644 --- a/llama-index-integrations/llms/llama-index-llms-huggingface/llama_index/llms/huggingface/base.py +++ b/llama-index-integrations/llms/llama-index-llms-huggingface/llama_index/llms/huggingface/base.py @@ -259,9 +259,9 @@ def __init__( tokenizer_name, **tokenizer_kwargs ) - if tokenizer.name_or_path != model_name: + if tokenizer.name_or_path != model.name_or_path: logger.warning( - f"The model `{model_name}` and tokenizer `{tokenizer.name_or_path}` " + f"The model `{model.name_or_path}` and tokenizer `{tokenizer.name_or_path}` " f"are different, please ensure that they are compatible." ) diff --git a/llama-index-integrations/llms/llama-index-llms-huggingface/pyproject.toml b/llama-index-integrations/llms/llama-index-llms-huggingface/pyproject.toml index 4f23d5380e102..fa5c0126b9d66 100644 --- a/llama-index-integrations/llms/llama-index-llms-huggingface/pyproject.toml +++ b/llama-index-integrations/llms/llama-index-llms-huggingface/pyproject.toml @@ -28,7 +28,7 @@ exclude = ["**/BUILD"] license = "MIT" name = "llama-index-llms-huggingface" readme = "README.md" -version = "0.3.3" +version = "0.3.4" [tool.poetry.dependencies] python = ">=3.8.1,<4.0"