# Connection error while using tranformers

**URL:** <https://discuss.huggingface.co/t/connection-error-while-using-tranformers/8398>\
**Category:** 🤗Transformers\
**Created:** [July 15, 2021, 7:39pm UTC](https://discuss.huggingface.co/t/connection-error-while-using-tranformers/8398 "2021-07-15T19:39:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![or1](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@or1](https://discuss.huggingface.co/u/or1)\
**Post date:** [July 15, 2021, 7:39pm UTC](https://discuss.huggingface.co/t/connection-error-while-using-tranformers/8398/1 "2021-07-15T19:39:17Z")

</div>

Hi,  
I’m in a Kaggle nlp competition and while using transformers library I am getting the following error:

_Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on._

The code which cause this error is this one:

_from transformers import BertTokenizer_  
_model\_name = ‘bert-base-multilingual-cased’_  
_tokenizer = BertTokenizer.from\_pretrained(model\_name)_

Additions:

1. The code works fine on my PC, but not on Kaggle dedicated notebook (that contain TPU)
2. link to the competition - [Contradictory, My Dear Watson [PyTorch BERT TPU] | Kaggle](https://www.kaggle.com/haiyunhu/contradictory-my-dear-watson-pytorch-bert-tpu)
3. I checked the same code on other PC and the same issue occured

Can you please help me solve that problem?

Thank you,  
Or
