Connection error while using tranformers

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)


  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
  3. I checked the same code on other PC and the same issue occured

Can you please help me solve that problem?

Thank you,