# Connection error in transformers

**URL:** <https://discuss.huggingface.co/t/connection-error-in-transformers/7049>\
**Category:** 🤗Transformers\
**Created:** [June 22, 2021, 4:36am UTC](https://discuss.huggingface.co/t/connection-error-in-transformers/7049 "2021-06-22T04:36:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srbnghosh99](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@srbnghosh99](https://discuss.huggingface.co/u/srbnghosh99)\
**Post date:** [June 22, 2021, 4:36am UTC](https://discuss.huggingface.co/t/connection-error-in-transformers/7049/1 "2021-06-22T04:36:13Z")

</div>

tokenizer = AutoTokenizer.from\_pretrained(base\_model, model\_max\_length=max\_length)  
File “/users/sghosh15/.local/lib/python3.7/site-packages/transformers/models/auto/tokenization\_auto.py”, line 523, in from\_pretrained  
tokenizer\_config = get\_tokenizer\_config(pretrained\_model\_name\_or\_path, \*\*kwargs)  
File “/users/sghosh15/.local/lib/python3.7/site-packages/transformers/models/auto/tokenization\_auto.py”, line 423, in get\_tokenizer\_config  
use\_auth\_token=use\_auth\_token,  
File “/users/sghosh15/.local/lib/python3.7/site-packages/transformers/file\_utils.py”, line 1337, in cached\_path  
local\_files\_only=local\_files\_only,  
File “/users/sghosh15/.local/lib/python3.7/site-packages/transformers/file\_utils.py”, line 1553, in get\_from\_cache  
“Connection error, and we cannot find the requested files in the cached path.”  
ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.
