hf-hub
hf-hub copied to clipboard
support HF_ENDPOINT environment variable
speed up mirror support
https://hf-mirror.com
+1
I'd like to use a Nexus proxy repository: https://help.sonatype.com/en/hugging-face-repositories.html
from_env() builders will use the simplest version of environment variables. That's HF_ENDPOINT and HF_HOME.
You can also change the endpoint manually: https://docs.rs/hf-hub/latest/hf_hub/api/sync/struct.ApiBuilder.html#method.with_endpoint