huggingface / huggingface_hub

The official Python client for the Huggingface Hub.
https://huggingface.co/docs/huggingface_hub
Apache License 2.0
1.84k stars 473 forks source link

support custom cache path #2370

Closed 0x1orz closed 1 week ago

0x1orz commented 1 week ago

Is your feature request related to a problem? Please describe. the default cache path addresses in ~/.cache/huggingface/, where is stricted by the home size, and is unfriendly shared to other users.

Describe the solution you'd like A clear and concise description of what you want to happen. a configure file or a PATH will address the user-defined the cache path.

Wauplin commented 1 week ago

@0x1orz I think what you are looking for is the HF_HOME environment variable.

0x1orz commented 1 week ago

Yeah, thanks.