transformers: The huggingface web site crashed

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

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

Is there any mirror of this web site?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 10
  • Comments: 16 (1 by maintainers)

Most upvoted comments

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.

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