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

Windows: How to save models within RAVE installation directory instead of huggingface cache #12

Closed
nitinmukesh opened this issue Mar 14, 2024 · 1 comment

Comments

@nitinmukesh
Copy link

nitinmukesh commented Mar 14, 2024

Hello,

I managed to install successfully on Windows. The instalation steps are easy to follow, thanks for that.

During the launch it download a lot of models, config, etc... and put them in C:\Users<username>.cache\huggingface\hub

I have a lot of installed tools related to stable diffusion which uses the same models like
diffusion_pytorch_model.safetensors:1.45G
vae\diffusion_pytorch_model.safetensors not found
tokenizer/merges.txt:525k
tokenizer/vocab.json:1.06M
vae/diffusion_pytorch_model.bin:335M
text_encoder/pytorch_model.bin:492M
safety_checker/pytorch_model.bin:1.22G
unet/diffusion_pytorch_model.bin:3.44G

To save space I use windows hard link feature. Is there a way to put these inside RAVE installation directory instead of cache folder.

@ozgurkara99
Copy link
Collaborator

ozgurkara99 commented Mar 17, 2024

I think it's about the directory that Huggingface uses for default path when downloading something. You can change it by changing the 'HF_HOME' environment variable as follows:

import os
os.environ['HF_HOME'] = 'my_path'

Please find more details from 'https://stackoverflow.com/questions/63312859/how-to-change-huggingface-transformers-default-cache-directory'

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