🫶
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
Thanks for the review :)
Broke my build with error:
cannot import name 'OfflineModeIsEnabled' from 'huggingface_hub.utils' (/opt/conda/lib/python3.8/site-packages/huggingface_hub/utils/init.py)
Was working fine before the commit
perhaps because im running huggingface_hub-0.19.4 instead of 0.20.1?
Login to write a write a comment.
Should close #6168.
This PR adds two behaviors:
HF_HUB_OFFLINE=1
), we catch the error raised byhuggingface_hub
and default back to using the local files.In both cases, if local files don't exist an error will be raised later in the code (as we can't load the pipeline).
This PR should definitely settle the problems for users with slow/low connections. cc @sayakpaul with whom we discussed it at some point.