hatsu3 / Sanger

37 stars 9 forks source link

ValueError with the connection error #2

Open jimmy-adams opened 8 months ago

jimmy-adams commented 8 months ago

Hello, I tried it with the conda env, but it gave the error saying "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. With this issue, is there any methods to figure it out?

hatsu3 commented 8 months ago

This issue seems to be related to HuggingFace Transformers library: "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. · Issue #10067 · huggingface/transformers

Please ensure your cluster has internet access. Depending on your location, you may need to set up a proxy to download from the Huggingface hub.

jimmy-adams commented 8 months ago

Hello, Thank you for your reply. Is is possible you can provide the model's repo info, such as the name and the address, so that i can download it locally for use. The proxy setting is not feasible in my place.

Best Regards


发件人: Yicheng Jin @.> 发送时间: 2024年1月6日 0:52 收件人: hatsu3/Sanger @.> 抄送: jimmy-adams @.>; Author @.> 主题: Re: [hatsu3/Sanger] ValueError with the connection error (Issue #2)

This issue seems to be related to HuggingFace Transformers library: "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. ・ Issue #10067 ・ huggingface/transformershttps://github.com/huggingface/transformers/issues/10067

Please ensure your cluster has internet access. Depending on your location, you may need to set up a proxy to download from the Huggingface hub.

― Reply to this email directly, view it on GitHubhttps://github.com/hatsu3/Sanger/issues/2#issuecomment-1878974084, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJ5KWMNZO4C3SRXVNND7GGDYNAVVLAVCNFSM6AAAAABBNB6JS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYHE3TIMBYGQ. You are receiving this because you authored the thread.Message ID: @.***>

hatsu3 commented 8 months ago

Please search for the model name (e.g., facebook/bart-large) in Hugging Face's model hub, download the model weights (typically named as pytorch_model.bin) and provide the path to these weights to the .from_pretrained method. For instance, you can download the weights of bart-large from https://huggingface.co/facebook/bart-large/blob/main/pytorch_model.bin.