Connection error in transformers

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.