Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where are these models going?!? #159

Open
Vektor369 opened this issue Dec 11, 2024 · 2 comments
Open

Where are these models going?!? #159

Vektor369 opened this issue Dec 11, 2024 · 2 comments

Comments

@Vektor369
Copy link

I'm trying to run this locally, and I noticed that the file model.safetensors is downloaded to the .cache\huggingface\hub folder on the C: drive. Which is...problematic at best considering the file is 15.5G. Is there any way it can be put on another drive maybe?

Thanks in advance. (My hemorrhaging C: drive thanks you as well.)

@staoxiao
Copy link
Contributor

You can change the variable HF_HUB_CACHE:
In terminal, you can set export HF_HUB_CACHE="path_you_want_to_save"
In python code, you can set:

import os
os.environ['HF_HUB_CACHE'] = "path_you_want_to_save"

@Vektor369
Copy link
Author

Thanks! Is there a way to do that for all my caches so this doesn't happen again?
And is there a way to move the model now, or do I basically have to re-install after I make the change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants