baichuan-inc / Baichuan-7B

A large-scale 7B pretraining language model developed by BaiChuan-Inc.
https://huggingface.co/baichuan-inc/baichuan-7B
Apache License 2.0
5.67k stars 506 forks source link

[Question] OSError: We couldn't connect to 'https://huggingface.co' to load this file #83

Open BigBen7 opened 1 year ago

BigBen7 commented 1 year ago

Required prerequisites

Questions

when I use cache_dir = "/home/yjy/cache/transformers" model = AutoModelForCausalLM.from_pretrained(model_name, cache_dir=cache_dir) and found: OSError: We couldn't connect to 'https://huggingface.co' to load this file "Connection error, and we cannot find the requested files in" huggingface_hub.utils._errors.LocalEntryNotFoundError: Connection error, and we cannot find the requested files in the disk cache. Please try again or make sure your Internet connection is on. do anyone knows why

Checklist