# Error 404 when downloading the tokenizer

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-404-when-downloading-the-tokenizer%2F168993%3E%5C
**Category:** 🤗Transformers\
**Created:** [October 7, 2025, 8:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-404-when-downloading-the-tokenizer%2F168993 "2025-10-07T08:40:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefra](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@stefra](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fstefra)%5C
**Post date:** [October 7, 2025, 8:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-404-when-downloading-the-tokenizer%2F168993%2F1 "2025-10-07T08:40:03Z")

</div>

When I try to execute the following lines of code:

quantization\_config = BitsAndBytesConfig(load\_in\_8bit=True)  
tokenizer = AutoTokenizer.from\_pretrained(model\_id)  
model = AutoModelForCausalLM.from\_pretrained(  
model\_id,  
device\_map=“auto”,  
quantization\_config=quantization\_config  
)

The tokenizer raises a 404 Client Error: Not Found, specifically:  
“Entry Not Found for URL: [https://huggingface.co/api/models/Qwen/Qwen2.5-7B-Instruct/tree/main/additional\_chat\_templates?recursive=false&expand=false](https://huggingface.co/api/models/Qwen/Qwen2.5-7B-Instruct/tree/main/additional_chat_templates?recursive=false&expand=false).  
`additional_chat_templates` does not exist on ‘main’.”

The libraries I am using are:

- `tokenizers == 0.21.2`

- `transformers == 4.53.3`

- `bitsandbytes == 0.48.1`

Is there anything I can do to fix this issue? Could it be related to a version mismatch? Any advice would be appreciated.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [October 7, 2025, 9:34am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-404-when-downloading-the-tokenizer%2F168993%2F2 "2025-10-07T09:34:58Z")

</div>

Seems [a resolved bug of Transformers](https://github.com/huggingface/transformers/issues/39873). Try upgrade `pip install -U transformers`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsystem)%5C
**Post date:** [October 7, 2025, 9:35pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-404-when-downloading-the-tokenizer%2F168993%2F3 "2025-10-07T21:35:22Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
