# 404 error for models

**URL:** <https://discuss.huggingface.co/t/404-error-for-models/154282>\
**Category:** Models\
**Created:** [May 9, 2025, 11:14am UTC](https://discuss.huggingface.co/t/404-error-for-models/154282 "2025-05-09T11:14:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanAnd13](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/danand13/32/47192_2.png) [@DanAnd13](https://discuss.huggingface.co/u/DanAnd13)\
**Post date:** [May 9, 2025, 11:14am UTC](https://discuss.huggingface.co/t/404-error-for-models/154282/1 "2025-05-09T11:14:05Z")

</div>

I using hugging face unity api in my project. It work good until today. When its start doing request its gives error 404 on 3 modules. Like this: Attempted request to [https://api-inference.huggingface.co/models/facebook/wav2vec2-base-960h](https://api-inference.huggingface.co/models/facebook/wav2vec2-base-960h) failed: HTTP/1.1 404 Not Found - Not Found. I update token, check versions of models and everything is fine. Read forums, saw the same problem the day before. No one is answering. Git for Hugging Face Unity API: [GitHub - huggingface/unity-api](https://github.com/huggingface/unity-api.git)

---

<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:** [May 9, 2025, 11:17am UTC](https://discuss.huggingface.co/t/404-error-for-models/154282/2 "2025-05-09T11:17:21Z")

</div>

Currently, the API is not functioning properly. Roughly speaking, there are at least three types of issues occurring simultaneously.

> [@Inference API stopped working](https://discuss.huggingface.co/t/inference-api-stopped-working/150492):
>
> Hi everyone, I seem to be encountering a sudden issue with the Hugging Face Inference API. I was successfully using it for image-to-image tasks (specifically with models like stabilityai/stable-diffusion-xl-refiner-1.0), but it abruptly stopped working a short while ago. Now, regardless of which model I try to use, I consistently receive the following error pattern: Model \<model\_name\> is not supported HF inference api This is happening in two distinct ways: Via InferenceClient: My applicat…

> [@https://api-inference.huggingface.co/models/sentence-transformers/paraphrase-MiniLM-L6-v2](https://discuss.huggingface.co/t/https-api-inference-huggingface-co-models-sentence-transformers-paraphrase-minilm-l6-v2/153574):
>
> Hello All, I am using sentence-transformers/paraphrase-MiniLM-L6-v2 while using the API. but getting the 404 error. We are in free plan. any help please

> [@Persistent DNS Resolution Errors](https://discuss.huggingface.co/t/persistent-dns-resolution-errors/153827):
>
> Hello, I’m experiencing persistent DNS resolution errors when trying to access https://api-inference.huggingface.co from within my Space. My space is running on Nvidia 1xL4 hardware and I am receiving this error no matter which text-generation model I use: requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘[api-inference.huggingface.co](http://api-inference.huggingface.co)’, port=443): Max retries exceeded with url: … (Caused by NameResolutionError: Failed to resolve ‘[api-inference.huggingface.co](http://api-inference.huggingface.co)’ ([Errno -2] Name or se…

---

<div class="post-metadata">

**Author:** ![gulnuravci](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/gulnuravci/32/48242_2.png) [@gulnuravci](https://discuss.huggingface.co/u/gulnuravci)\
**Post date:** [May 25, 2025, 1:15pm UTC](https://discuss.huggingface.co/t/404-error-for-models/154282/3 "2025-05-25T13:15:43Z")

</div>

> [@John6666](#):
>
> Currently, the API is not functioning properly. Roughly speaking, there are at least three types of issues occurring simultaneously.

Same here!

---

<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:** [May 26, 2025, 2:21am UTC](https://discuss.huggingface.co/t/404-error-for-models/154282/4 "2025-05-26T02:21:00Z")

</div>

The retry error and SentenceTransformers issue of them have been resolved.

> **[sentence-transformers/all-MiniLM-L6-v2 · Updated feature-extraction API URL](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/discussions/116)**
>
> Hello!

---

<div class="post-metadata">

**Author:** ![pooyadavoodi](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pooyadavoodi/32/26676_2.png) [@pooyadavoodi](https://discuss.huggingface.co/u/pooyadavoodi)\
**Post date:** [May 28, 2025, 1:18pm UTC](https://discuss.huggingface.co/t/404-error-for-models/154282/5 "2025-05-28T13:18:09Z")

</div>

I still see 404 for private models that are accessible with HF tokens.

---

<div class="post-metadata">

**Author:** ![pooyadavoodi](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pooyadavoodi/32/26676_2.png) [@pooyadavoodi](https://discuss.huggingface.co/u/pooyadavoodi)\
**Post date:** [May 28, 2025, 4:40pm UTC](https://discuss.huggingface.co/t/404-error-for-models/154282/6 "2025-05-28T16:40:53Z")

</div>

I am just downloading a private model using AutoTokenizer.from\_pretrained(model\_name, token=hf\_token).  
And I see this error (redacted model name):

Some layers that were to be ignored were not found in the model: {‘lm\_head’}  
Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15/15 [00:01\<00:00, 8.80it/s]  
Traceback (most recent call last):  
File “/Users/pdavoodi/dev/kashkul/.venv/lib/python3.12/site-packages/huggingface\_hub/utils/\_http.py”, line 409, in hf\_raise\_for\_status  
response.raise\_for\_status()  
File “/Users/pdavoodi/dev/kashkul/.venv/lib/python3.12/site-packages/requests/models.py”, line 1024, in raise\_for\_status  
raise HTTPError(http\_error\_msg, response=self)  
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: [https://huggingface.co/api/models/ABC/ABC/tree/main/additional\_chat\_templates?recursive=False&expand=False](https://huggingface.co/api/models/ABC/ABC/tree/main/additional_chat_templates?recursive=False&expand=False)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):  
File “/Users/pdavoodi/dev/kashkul/download\_model.py”, line 43, in   
main()  
^^^^^^  
File “/Users/pdavoodi/dev/kashkul/download\_model.py”, line 40, in main  
download\_model(args.model\_name, args.hf\_token, args.output\_dir)  
File “/Users/pdavoodi/dev/kashkul/download\_model.py”, line 24, in download\_model  
tokenizer = AutoTokenizer.from\_pretrained(model\_name, token=hf\_token)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/Users/pdavoodi/dev/kashkul/.venv/lib/python3.12/site-packages/transformers/models/auto/tokenization\_auto.py”, line 1013, in from\_pretrained  
return tokenizer\_class.from\_pretrained(pretrained\_model\_name\_or\_path, \*inputs, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/Users/pdavoodi/dev/kashkul/.venv/lib/python3.12/site-packages/transformers/tokenization\_utils\_base.py”, line 1968, in from\_pretrained  
for template in list\_repo\_templates(  
^^^^^^^^^^^^^^^^^^^^  
File “/Users/pdavoodi/dev/kashkul/.venv/lib/python3.12/site-packages/transformers/utils/hub.py”, line 163, in list\_repo\_templates  
for entry in list\_repo\_tree(  
^^^^^^^^^^^^^^^  
File “/Users/pdavoodi/dev/kashkul/.venv/lib/python3.12/site-packages/huggingface\_hub/hf\_api.py”, line 3140, in list\_repo\_tree  
for path\_info in paginate(path=tree\_url, headers=headers, params={“recursive”: recursive, “expand”: expand}):  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/Users/pdavoodi/dev/kashkul/.venv/lib/python3.12/site-packages/huggingface\_hub/utils/\_pagination.py”, line 37, in paginate  
hf\_raise\_for\_status(r)  
File “/Users/pdavoodi/dev/kashkul/.venv/lib/python3.12/site-packages/huggingface\_hub/utils/\_http.py”, line 459, in hf\_raise\_for\_status  
raise \_format(RepositoryNotFoundError, message, response) from e  
huggingface\_hub.errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-68373be4-46ee93762ab34ba046e48128;bf96df50-0ef0-43fe-aa61-d99773bf9c60)

Repository Not Found for url: [https://huggingface.co/api/models/ABC/ABC/tree/main/additional\_chat\_templates?recursive=False&expand=False](https://huggingface.co/api/models/ABC/ABC/tree/main/additional_chat_templates?recursive=False&expand=False).  
Please make sure you specified the correct `repo_id` and `repo_type`.  
If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see [Quickstart](https://huggingface.co/docs/huggingface_hub/authentication)

---

<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:** [May 29, 2025, 1:29am UTC](https://discuss.huggingface.co/t/404-error-for-models/154282/7 "2025-05-29T01:29:30Z")

</div>

> requests.exceptions.HTTPError: 404 Client Error: Not Found for url: [https://huggingface.co/api/models/ABC/ABC/tree/main/additional\_chat\_templates?recursive=False&expand=False](https://huggingface.co/api/models/ABC/ABC/tree/main/additional_chat_templates?recursive=False&expand=False)

I think the program is not passing tokens when searching for template files, causing an error in requests. However, there is no such part in the AutoTokenizer code itself, so I think it is in the code of the specific Tokenizer class that is actually called.

If I know which model’s Tokenizer is being used, that would be a clue…

> <https://github.com/huggingface/transformers/blob/v4.52.3/src/transformers/models/auto/tokenization_auto.py#L809>
