padeoe / hf-mirror-site

a huggingface mirror site.
https://hf-mirror.com
193 stars 23 forks source link

couldn't connect to 'https://hf-mirror.com' to load this file #27

Open WudiJoey opened 3 weeks ago

WudiJoey commented 3 weeks ago

models: https://huggingface.co/internlm/internlm-xcomposer2-4khd-7b

Reproduce code:

import torch
from transformers import AutoModel, AutoTokenizer

torch.set_grad_enabled(False)

# init model and tokenizer
model = AutoModel.from_pretrained('internlm/internlm-xcomposer2-4khd-7b', torch_dtype=torch.bfloat16, trust_remote_code=True).cuda().eval()

Errors

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 internlm/internlm-xcomposer2-4khd-7b is not the path to a directory containing a file named configuration_internlm_xcomposer2.py.

Thanks for your good work!

abinzzz commented 3 weeks ago

Me too

WudiJoey commented 3 weeks ago

您好,您的来信我已经收到,会尽快回复。  

litsh commented 1 week ago

I have the same question. Is there anyone who have solved this ?

junming-yang commented 1 week ago

Is there any suggestions for solving this problem?