Network connection error prevent use of a cached download
See original GitHub issueWhen a network connection is not available an exception is rasied inside cached_download()
:
Surely it should check for a previously cached download and return that, isn’t that the whole point of the cached_download
function?
Issue Analytics
- State:
- Created a year ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
6 Ways to Fix the “Download Failed Network Error” on Chrome
6 Ways to Fix the “Download Failed Network Error” on Chrome · 1. Check Your Internet Speed and Connection · 2. Modify Your...
Read more >8 Ways to Fix SSL Connection Errors on Various Browsers ...
Open the Chrome browser and access its Settings menu. · Go to Privacy and security. · Tap on Clear browsing data. · Select...
Read more >How to Fix the ERR_CONNECTION_RESET Error in 7 Ways
6. Disable Proxy Server Access · Navigate to System Preferences -> Network. · Select your active internet connection. · Open the Advanced settings...
Read more >connection issue · Issue #8690 · huggingface/transformers
"Connection error, and we cannot find the requested files in the cached path. ... Network connection error prevent use of a cached download...
Read more >Troubleshoot Connected Cache - Configuration Manager
First, verify the registry properties are configured correctly: HKLM\SOFTWARE\Microsoft\Delivery Optimization In-Network Cache . For example, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@howff
HF_HUB_OFFLINE=1
is indeed the way to go for your use case (thanks @LysandreJik to point this 🙏 )Here is a small test script:
And here is the result:
Does that solve your problem ? 😃
I am closing this issue as the problem is clearly identified and is caused on purpose as highlighted in https://github.com/huggingface/huggingface_hub/issues/1099#issuecomment-1283589478.