You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered:
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.
How can I run model without network, when I run it offline, it while show the error as follows:
The text was updated successfully, but these errors were encountered: