-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to access Huggingface #2043
Comments
Sometimes I am also getting requests.exceptions.ConnectionError: (ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)), '(Request ID: 48f0d300-d29a-4633-b40f-bee23b47284b)') |
Hi @ai-ml-with-kapil, sorry you're facing this issue. Could you copy-paste the full traceback when you get this OSError? It might contains more information to understand what's going on. What you can try to do is to run
in your terminal which would download the whole repo in your cache. Once cached, loading the files should work. This way you decouple the "download" and the "load weights" parts. Hope this will prove useful in your case 😕 |
Even for downloading I am unable to download actually |
From the command line: huggingface-cli download Gourieff/ReActor I get: Consider using During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): Occasionally, I'm able to retry & retry & retry and it may/may not actually connect and download the target file/repo. In addition, I see that if I try to access Huggingface.co from my web browser I almost always get a connection error first, then refreshing the browser one, two, three times or more, I get a connection. I don't seem to have this issue with any other sites |
Is there any update on this issue? I am getting similar errors when trying to download sample datasets ... from datasets import load_dataset
imdb = load_dataset("imdb") Leads to And sometimes |
@RikkB did you resolve it? I have the same issue. |
Have not resolved it. However, there are workarounds depending on how you're trying to access HF. Simplest workaround is to change network providers. I'm on Starlink & have found this ONLY occurs when a script is trying to d/l from HF via HF hub. However, if I look in the logs, I can manually download the same file from HF via browser (after a few tries); haven't tried HF hub cli. |
@RikkB thanks for providing some context. Out of curiosity, do you know if you have ipv6 when accessing from Starlink? |
LOL.... never thought about, checked into it. But, yeah, ran some IPv6 tests & seems to work fine. As an alternative to wired network service, I've loved my SL; except for this little issue. |
I've got 5G T-Mobile internet (200+mbps) that has IPv6. My issue isn't
worth switching internet providers over... I'm still a little unsure what
the problem is, trying to get the most basic version working for the first
time.
…On Mon, Apr 29, 2024 at 2:46 PM RikkB ***@***.***> wrote:
@RikkB <https://github.com/RikkB> thanks for providing some context. Out
of curiosity, do you know if you have ipv6 when accessing from Starlink?
LOL.... never thought about, checked into it. But, yeah, ran some IPv6
tests & seems to work fine. As an alternative to wired network service,
I've loved my SL; except for this little issue.
—
Reply to this email directly, view it on GitHub
<#2043 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABU6QFGKUPN3EXZLEUWGJITY72PPZAVCNFSM6AAAAABDXD4AQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGUZTCOBVGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
James McBennett
jamesmcbennett.com
|
My best guess, there are unclosed HTTP requests between the provider (SL & T-Mobile, et al) and HF. MY THOUGHT is it's on HF's side, leaving connections open far too long. I've seen code where there's built in retries (HF hub), but, I'm a long ways from being a coder anymore. Would just like to see a wait/retry loop built into the code. |
Whatever my issue, it's probably something else. Works on my old laptop but
not my desktop using the same steps.
"Couldn't connect to the Hub: (ProtocolError('Connection aborted.',
ConnectionResetError(10054, 'An existing connection was forcibly closed by
the remote host', None, 10054, None)), '(Request ID:
fc4e5a1d-055f-4903-9a4e-5d5e2019a121)')."
…On Mon, Apr 29, 2024 at 4:16 PM RikkB ***@***.***> wrote:
...a little unsure what the problem is...
My best guess, there are unclosed HTTP requests between the provider (SL &
T-Mobile, et al) and HF. MY THOUGHT is it's on HF's side, leaving
connections open far too long.
—
Reply to this email directly, view it on GitHub
<#2043 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABU6QFDYWNUSMAVUSPQYCN3Y722B7AVCNFSM6AAAAABDXD4AQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGY4DAMRYGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
James McBennett
jamesmcbennett.com
|
Thanks for the context @jamesmcbennett @RikkB ! As a test, could you try to disable ipv6, run the same script and tell me if you're able to reach HF that way? That would be really helpful to us |
and we have lift off!!!! Thank you. That was it for me, ipv6 disabled. Much
much much appreciated!
…On Tue, Apr 30, 2024 at 2:55 AM Lucain ***@***.***> wrote:
Thanks for the context @jamesmcbennett <https://github.com/jamesmcbennett>
@RikkB <https://github.com/RikkB> ! As a test, could you try to disable
ipv6, run the same script and tell me if you're able to reach HF that way?
That would be really helpful to us
—
Reply to this email directly, view it on GitHub
<#2043 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABU6QFDU4XUDUOGV75EXCCLY75E7LAVCNFSM6AAAAABDXD4AQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBUGYZTEMZWG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
James McBennett
jamesmcbennett.com
|
Great! Glad it solved your problem @jamesmcbennett and thanks for the feedback. That's very valuable to help us fix this 👍 |
Can confirm issue only happening on Starlink with IPV6 enabled, disabling fixes error (for now). |
Previously, only had experienced this with HF. Two nights ago, started getting the same issue w/Github. When I disabled IPv6 the issue resolved. So, for me, for now, I consider this 'resolved' as I know a fairly simple workaround. TY for everyone's input and especially for those that realized it was an IPv6 issue. |
@coyotte508 is this not happening on your Starlink connection? |
@Wauplin |
If you're working on kaggle don't forget to get internet on. If you're working in local environment: create an account in hugging-face and use token |
Describe the bug
I am getting this error "We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like sentence-transformers/all-MiniLM-L6-v2 is not the path to a directory containing a file named config.json." Although I am able to access website using my web browser and also I have tried creating new token and tried that but same result. Unable to use any model.
Reproduction
No response
Logs
System info
The text was updated successfully, but these errors were encountered: