Find answers from the community

Updated 6 months ago

Hi. Is there any reason that

At a glance
Hi. Is there any reason that HuggingFaceLLM gets its parameter as model_name? But other LLMs like OpenAI gets their parameter as model. I think it is inconsistent and can be confusing who use it.
W
J
2 comments
Hey, thankyou for the suggestion!

I believe this has been done as there is already a model keyword in the HuggingFaceLLM .

You can get more clarity by checking the code below

https://github.com/run-llama/llama_index/blob/5901897fb9bc841b2c318109075d5687d10e6200/llama-index-integrations/llms/llama-index-llms-huggingface/llama_index/llms/huggingface/base.py#L237C17-L237C22
Thanks for the reply
Add a reply
Sign up and join the conversation on Discord