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

We couldn't connect to 'https://huggingface.co' to load this file #29

Open
ljf12345678910 opened this issue Oct 23, 2023 · 4 comments
Open

Comments

@ljf12345678910
Copy link

OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like bert-base-uncased is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.这个问题怎么解决

@ljf12345678910
Copy link
Author

使用vscode登录服务器还是运行代码,还是访问不了

@liuhengli
Copy link

@ljf12345678910 bert-base-uncased你直接把这个下载下来就可以了

@ljf12345678910
Copy link
Author

下载到一个文件夹后,需要在哪里改动代码吗,

@TaoTXiXi
Copy link

下载到一个文件夹后,需要在哪里改动代码吗,

直接把文件放到根级目录下就行

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