Install this
pip install llama-index-llms-huggingface
And then import the library as
from llama_index.llms.huggingface import HuggingFaceLLM
You can look into the https://pypi.org/project/llama-index-llms-huggingface/