# Additional\_chat\_templates does not exist on "main"

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fadditional-chat-templates-does-not-exist-on-main%2F169636%3E%5C
**Category:** 🤗Transformers\
**Created:** [October 28, 2025, 6:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fadditional-chat-templates-does-not-exist-on-main%2F169636 "2025-10-28T18:09:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkec](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@darkec](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdarkec)%5C
**Post date:** [October 28, 2025, 6:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fadditional-chat-templates-does-not-exist-on-main%2F169636%2F1 "2025-10-28T18:09:01Z")

</div>

I use latest version of transformers 4.57.1: Successfully installed tokenizers-0.22.1 transformers-4.57.1. I’m using Kaggle for my project

When I try fine tune any model I get message like this:

```auto
Entry Not Found for url: https://huggingface.co/api/models/meta-llama/Llama-3.2-3B-Instruct/tree/main/additional_chat_templates?recursive=false&expand=false.
additional_chat_templates does not exist on "main"

```

Error message is triggerey by `tokenizer = AutoTokenizer.from_pretrained(model_name)`

I found the same issue here but it says to update to latest version.

> [@AutoTokenizer 404 error issue](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotokenizer-404-error-issue%2F169085%2F1)%3A
>
> whenever im trying to declare AutoTokenizer with any model be it roberta-base or distilbert-base-uncased, i am getting this error always. How to fix this HTTPStatusError Traceback (most recent call last) /usr/local/lib/python3.11/dist-packages/huggingface\_hub/utils/\_http.py in hf\_raise\_for\_status(response, endpoint\_name) 556 → 557 def \_curlify(request: requests.PreparedRequest) → str: 558 “”"Convert a `requests.PreparedRequest` into a curl command (str). /usr…

---

<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 28, 2025, 6:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fadditional-chat-templates-does-not-exist-on-main%2F169636%2F2 "2025-10-28T18:09:02Z")

</div>

Unlisted on October 28, 2025, 6:09pm UTC



---

<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 28, 2025, 6:58pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fadditional-chat-templates-does-not-exist-on-main%2F169636%2F3 "2025-10-28T18:58:24Z")

</div>

Listed on October 28, 2025, 6:58pm UTC



---

<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 28, 2025, 11:28pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fadditional-chat-templates-does-not-exist-on-main%2F169636%2F4 "2025-10-28T23:28:01Z")

</div>

To bypass [errors when URLs are not found](https://github.com/huggingface/transformers/issues/41813), you maybe need the latest version of Hugging Face Hub in addition to the latest Transformers. Kaggle might be using an older version of Hugging Face Hub.  
`pip install -U "transformers>=4.57.1" "huggingface_hub>=1.01"`

---

<div class="post-metadata">

**Author:** ![JuggyZhan](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@JuggyZhan](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJuggyZhan)%5C
**Post date:** [November 3, 2025, 10:05am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fadditional-chat-templates-does-not-exist-on-main%2F169636%2F5 "2025-11-03T10:05:03Z")

</div>

I got the same problem. Have you found the solution?

---

<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:** [November 3, 2025, 12:13pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fadditional-chat-templates-does-not-exist-on-main%2F169636%2F6 "2025-11-03T12:13:03Z")

</div>

Upgrading the library version or pinning to an older, bug-free version can resolve the issue. However, if upgrading the library is difficult in your environment, one of following methods may also work.

```py
# Option 1 (env var)
export HF_HUB_OFFLINE=1

# Option 2 (code) – only uses cached files
tok = AutoTokenizer.from_pretrained(repo, local_files_only=True)
# docs: https://huggingface.co/docs/transformers/main/en/installation#offline-mode

```
