# AutoTokenizer 404 error issue

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotokenizer-404-error-issue%2F169085%3E%5C
**Category:** 🤗Transformers\
**Created:** [October 10, 2025, 11:50am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotokenizer-404-error-issue%2F169085 "2025-10-10T11:50:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![riasatislam32424](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@riasatislam32424](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Friasatislam32424)%5C
**Post date:** [October 10, 2025, 11:50am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotokenizer-404-error-issue%2F169085%2F1 "2025-10-10T11:50:24Z")

</div>

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/local/lib/python3.11/dist-packages/httpx/\_models.py in raise\_for\_status(self)  
828 message = message.format(self, error\_type=error\_type)  
→ 829 raise HTTPStatusError(message, request=request, response=self)  
830

HTTPStatusError: Client error ‘404 Not Found’ for url ‘[https://huggingface.co/api/models/google-bert/bert-base-cased/tree/main/additional\_chat\_templates?recursive=false&expand=false’](https://huggingface.co/api/models/google-bert/bert-base-cased/tree/main/additional_chat_templates?recursive=false&expand=false%E2%80%99)

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

RemoteEntryNotFoundError Traceback (most recent call last)  
/tmp/ipykernel\_37/974764345.py in \<cell line: 0\>()  
2 train\_labels = df[“generated”]  
3 model\_name = “google-bert/bert-base-cased”  
----\> 4 tokenizer = AutoTokenizer.from\_pretrained(model\_name, trust\_remote\_code = False, use\_fast = True)

/usr/local/lib/python3.11/dist-packages/transformers/models/auto/tokenization\_auto.py in from\_pretrained(cls, pretrained\_model\_name\_or\_path, \*inputs, \*\*kwargs)

/usr/local/lib/python3.11/dist-packages/transformers/tokenization\_utils\_base.py in from\_pretrained(cls, pretrained\_model\_name\_or\_path, cache\_dir, force\_download, local\_files\_only, token, revision, trust\_remote\_code, \*init\_inputs, \*\*kwargs)  
1955 single\_file\_id = file\_id  
1956 else:  
→ 1957 # At this point pretrained\_model\_name\_or\_path is either a directory or a model identifier name  
1958 additional\_files\_names = {  
1959 “added\_tokens\_file”: ADDED\_TOKENS\_FILE, # kept only for legacy

/usr/local/lib/python3.11/dist-packages/transformers/utils/hub.py in list\_repo\_templates(repo\_id, local\_files\_only, revision, cache\_dir)  
159 def is\_remote\_url(url\_or\_filename):  
160 parsed = urlparse(url\_or\_filename)  
→ 161 return parsed.scheme in (“http”, “https”)  
162  
163

/usr/local/lib/python3.11/dist-packages/transformers/utils/hub.py in (.0)  
159 def is\_remote\_url(url\_or\_filename):  
160 parsed = urlparse(url\_or\_filename)  
→ 161 return parsed.scheme in (“http”, “https”)  
162  
163

/usr/local/lib/python3.11/dist-packages/huggingface\_hub/hf\_api.py in list\_repo\_tree(self, repo\_id, path\_in\_repo, recursive, expand, revision, repo\_type, token)  
3050 “”"  
3051 return [  
→ 3052 f.rfilename  
3053 for f in self.list\_repo\_tree(  
3054 repo\_id=repo\_id, recursive=True, revision=revision, repo\_type=repo\_type, token=token

/usr/local/lib/python3.11/dist-packages/huggingface\_hub/utils/\_pagination.py in paginate(path, params, headers)  
35 session = get\_session()  
36 r = session.get(path, params=params, headers=headers)  
—\> 37 hf\_raise\_for\_status(r)  
38 yield from r.json()  
39

/usr/local/lib/python3.11/dist-packages/huggingface\_hub/utils/\_http.py in hf\_raise\_for\_status(response, endpoint\_name)  
569  
570 for k, v in sorted(request.headers.items()):  
→ 571 if k.lower() == “authorization”:  
572 v = “” # Hide authorization header, no matter its value (can be Bearer, Key, etc.)  
573 parts += [(“-H”, “{0}: {1}”.format(k, v))]

RemoteEntryNotFoundError: 404 Client Error. (Request ID: Root=1-68e8f1dd-560fc9b74a22a3a463591f2f;d4e39f2d-838b-4965-bda7-efee2ead7f99)  
additional\_chat\_templates does not exist on “main”

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotokenizer-404-error-issue%2F169085)._
