hf-hub icon indicating copy to clipboard operation
hf-hub copied to clipboard

support HF_ENDPOINT environment variable

Open franklucky001 opened this issue 9 months ago • 1 comments

speed up mirror support

https://hf-mirror.com

franklucky001 avatar Mar 17 '25 01:03 franklucky001

+1

I'd like to use a Nexus proxy repository: https://help.sonatype.com/en/hugging-face-repositories.html

bowerth avatar Mar 19 '25 20:03 bowerth

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

Narsil avatar Sep 27 '25 07:09 Narsil