You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What we usually do in the HF ecosystem is indeed to respect the HF_ENDPOINT environment variable whenever we need to make a call to the Hub. For example, this would be the case when searching models here:
I haven't found in the codebase where the files are actually downloaded but same for that one, it would be best to replace https://huggingface.co by HF_ENDPOINT (when provided).
Been able to set a custom endpoint can be useful in locations where the main website is not accessible (typically to access https://hf-mirror.com or a private mirror in companies for security reasons). Here is where the environment variable is handled in huggingface_hub (for lms, no need for the staging thingy).
Hi, I couldn't connect https://huggingface.co, but I still can download models from some mirror site like https://hf-mirror.com/ via configure env
HF_ENDPOINT=https://hf-mirror.com
when usinghuggingface-cli
.I tried configured env
HF_ENDPOINT=https://hf-mirror.com
, but it didn't help when download models.Maybe add such feature would be nice.
The text was updated successfully, but these errors were encountered: