Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #91

Open
Spring24ch opened this issue Jan 24, 2024 · 2 comments

Comments

@Spring24ch
Copy link

Do you know how to solve it???

@JolinWang06
Copy link

I've met the same problem, have you solved it?

@XXstr
Copy link

XXstr commented Nov 9, 2024

I solved the problem by following these steps:

  1. Go to the URL https://huggingface.co and download the model bert-base-uncased config.json, pytorch_model.bin and vocab.txt locally.
  2. modify BertTokenizer.from_pretrained (from_pretrained, do_lower_case=‘uncased’ in from_pretrained) to BertTokenizer.from_pretrained (’ yourLocalPath’, local_files_only=True).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants