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

Closed
shuhaoxu opened this issue Oct 20, 2021 · 3 comments

Comments

@shuhaoxu
Copy link

How can I run model without network, when I run it offline, it while show the error as follows:

Traceback (most recent call last):
File "/root/anaconda3/envs/transformersum/lib/python3.6/site-packages/transformers/models/auto/tokenization_auto.py", line 328, in get_tokenizer_config
use_auth_token=use_auth_token,
File "/root/anaconda3/envs/transformersum/lib/python3.6/site-packages/transformers/file_utils.py", line 1412, in cached_path
local_files_only=local_files_only,
File "/root/anaconda3/envs/transformersum/lib/python3.6/site-packages/transformers/file_utils.py", line 1628, 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.

@shuhaoxu
Copy link
Author

I know this is the connection error of transformers, is there any params to set offline?

@HHousen
Copy link
Owner

HHousen commented Oct 25, 2021

Looks like an issue with transformers and not this library. Did you resolve this problem?

@shuhaoxu
Copy link
Author

Yes, but we can change transformers operation mode. I download related files and appoint 'hparams.model_name_or_path' in the code, then fix the problem.

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

2 participants