The huggingface web site crashed
<img width="800" src="https://user-images.githubusercontent.com/16131917/159614484-741db4c9-5c60-442a-8df2-efa39869369d.png">

**Set `local_files_only` to be True for reading the local cache first。**

```python
tokenizer = BertTokenizer.from_pretrained(tokenizer_config.model_path, local_files_only=True)
```

# Is there any mirror of this web site?

yes, and I couldn't use from_pretrained() in my code<|||||>+1<|||||>+1<|||||>+1<|||||>+1<|||||>+1<|||||>+1

500 Server Error: Internal Server Error for url: https://huggingface.co/bert-base-uncased/resolve/main/config.json

OSError: We couldn't connect to 'https://huggingface.co/' to load this model and it looks like bert-base-uncased is not the path to a directory conaining a config.json file.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.<|||||>+1<|||||>+1<|||||>How to prevent Tokenizer/Model from requesting Internet when local cache is available? Force HuggingFace read the local cache first?<|||||>> How to prevent Tokenizer/Model from requesting Internet when local cache is available? Force HuggingFace read the local cache first?

You can set `local_files_only ` to be True.

```python
tokenizer = BertTokenizer.from_pretrained(tokenizer_config.model_path, local_files_only=True)
```<|||||>@z-bookworm Thanks it worked.<|||||>+1<|||||>+1<|||||>+1<|||||>Sorry about that! 
See this tweet for some context on our work on Hub scalability and performance: https://twitter.com/julien_c/status/1496129354023288838

Will close this issue for now, thanks for reporting 🙏 