# huggingface\_hub.utils.\_errors.HfHubHTTPError: 404 Client Error: Not Found for url:

**URL:** <https://discuss.huggingface.co/t/huggingface-hub-utils-errors-hfhubhttperror-404-client-error-not-found-for-url/161277>\
**Category:** Models\
**Created:** [July 1, 2025, 7:32am UTC](https://discuss.huggingface.co/t/huggingface-hub-utils-errors-hfhubhttperror-404-client-error-not-found-for-url/161277 "2025-07-01T07:32:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HuggingFaceSar23Ts](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@HuggingFaceSar23Ts](https://discuss.huggingface.co/u/HuggingFaceSar23Ts)\
**Post date:** [July 1, 2025, 7:32am UTC](https://discuss.huggingface.co/t/huggingface-hub-utils-errors-hfhubhttperror-404-client-error-not-found-for-url/161277/1 "2025-07-01T07:32:02Z")

</div>

When I am using –

model = HuggingFaceHub(  
repo\_id=“bigscience/bloomz-560m”,  
model\_kwargs={  
“temperature”: 0.7,  
“max\_new\_tokens”: 100  
}  
)

Infrence API via hugging face it through the error

huggingface\_hub.utils.\_errors.HfHubHTTPError: 404 Client Error: Not Found for url: [https://api-inference.huggingface.co/models/bigscience/bloomz-560m](https://api-inference.huggingface.co/models/bigscience/bloomz-560m)

If anyone have face same kind of problem kindly help me out ASAP thankyou

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [July 1, 2025, 10:42am UTC](https://discuss.huggingface.co/t/huggingface-hub-utils-errors-hfhubhttperror-404-client-error-not-found-for-url/161277/2 "2025-07-01T10:42:36Z")

</div>

For langchain, try this:

> [@Facing issue using a model hosted on HuggingFace Server and talking to it using API\_KEY](https://discuss.huggingface.co/t/facing-issue-using-a-model-hosted-on-huggingface-server-and-talking-to-it-using-api-key/154529/4):
>
> pip install langchain-huggingface langchain from langchain\_huggingface import ChatHuggingFace, HuggingFaceEndpoint llm = HuggingFaceEndpoint( repo\_id="deepseek-ai/DeepSeek-R1", provider="together" ) model = ChatHuggingFace(llm=llm) result = model.invoke("What is the capital of India") This works for me with the following setup: $ pip freeze | grep huggingface huggingface-hub==0.31.1 langchain-huggingface==0.2.0 $ pip freeze | grep langchain langchain==0.3.25 langchain-core==0.3.59 langcha…
