-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Traceback (most recent call last):
File "main.py", line 139, in
main(args)
File "main.py", line 11, in main
tokenizer = load_tokenizer(args)
File "/usr/local/xww/articles/codes/JointIDSF-main/utils.py", line 43, in load_tokenizer
return MODEL_CLASSES[args.model_type][2].from_pretrained(args.model_name_or_path)
File "/home/slave4/anaconda3/envs/wpy38/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 345, in from_pretrained
config = AutoConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
File "/home/slave4/anaconda3/envs/wpy38/lib/python3.8/site-packages/transformers/models/auto/configuration_auto.py", line 349, in from_pretrained
config_dict, _ = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/home/slave4/anaconda3/envs/wpy38/lib/python3.8/site-packages/transformers/configuration_utils.py", line 399, in get_config_dict
resolved_config_file = cached_path(
File "/home/slave4/anaconda3/envs/wpy38/lib/python3.8/site-packages/transformers/file_utils.py", line 1077, in cached_path
output_path = get_from_cache(
File "/home/slave4/anaconda3/envs/wpy38/lib/python3.8/site-packages/transformers/file_utils.py", line 1263, in get_from_cache
raise ValueError(
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 。 I want to know how to solve this problem?thank you!