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

**URL:** <https://discuss.huggingface.co/t/additional-chat-templates-does-not-exist-on-main/169636>\
**Category:** 🤗Transformers\
**Created:** [October 28, 2025, 6:09pm UTC](https://discuss.huggingface.co/t/additional-chat-templates-does-not-exist-on-main/169636 "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](https://discuss.huggingface.co/u/darkec)\
**Post date:** [October 28, 2025, 6:09pm UTC](https://discuss.huggingface.co/t/additional-chat-templates-does-not-exist-on-main/169636/1 "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](https://discuss.huggingface.co/t/autotokenizer-404-error-issue/169085/1):
>
> 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](https://discuss.huggingface.co/u/system)\
**Post date:** [October 28, 2025, 6:09pm UTC](https://discuss.huggingface.co/t/additional-chat-templates-does-not-exist-on-main/169636/2 "2025-10-28T18:09:02Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](https://discuss.huggingface.co/u/system)\
**Post date:** [October 28, 2025, 6:58pm UTC](https://discuss.huggingface.co/t/additional-chat-templates-does-not-exist-on-main/169636/3 "2025-10-28T18:58:24Z")

</div>



---

<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:** [October 28, 2025, 11:28pm UTC](https://discuss.huggingface.co/t/additional-chat-templates-does-not-exist-on-main/169636/4 "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](https://discuss.huggingface.co/u/JuggyZhan)\
**Post date:** [November 3, 2025, 10:05am UTC](https://discuss.huggingface.co/t/additional-chat-templates-does-not-exist-on-main/169636/5 "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](https://discuss.huggingface.co/u/John6666)\
**Post date:** [November 3, 2025, 12:13pm UTC](https://discuss.huggingface.co/t/additional-chat-templates-does-not-exist-on-main/169636/6 "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

```
