couldn't connect to 'https://hf-mirror.com'

#47
by ccccccyan - opened

I am using MiniCPM-Llama3-V-2-5 through the huggingface mirror website, but recently it has prompted me that I cannot connect https://hf-mirror.com. But I can access this website through a browser. Is there any solution?
Traceback (most recent call last):
File "/home/fx/Exp2/MiniCPM/MiniCPM-V-main/test.py", line 7, in
chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5')
File "/home/fx/Exp2/MiniCPM/MiniCPM-V-main/chat.py", line 192, in init
self.model = MiniCPMV2_5(model_path)
File "/home/fx/Exp2/MiniCPM/MiniCPM-V-main/chat.py", line 165, in init
self.model = AutoModel.from_pretrained(model_path, trust_remote_code=True).to(dtype=torch.float16)
File "/home/fx/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 523, in from_pretrained
config, kwargs = AutoConfig.from_pretrained(
File "/home/fx/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 937, in from_pretrained
config_class = get_class_from_dynamic_module(
File "/home/fx/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 489, in get_class_from_dynamic_module
final_module = get_cached_module_file(
File "/home/fx/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 294, in get_cached_module_file
resolved_module_file = cached_file(
File "/home/fx/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/transformers/utils/hub.py", line 441, in cached_file
raise EnvironmentError(
OSError: We couldn't connect to 'https://hf-mirror.com' to load this file, couldn't find it in the cached files and it looks like openbmb/MiniCPM-Llama3-V-2_5 is not the path to a directory containing a file named configuration_minicpm.py.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.

Sign up or log in to comment