Skip to content

Where are models installed by default ? #6675

Answered by a-r-r-o-w
Infinitusvoid asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Infinitusvoid.

diffusers uses huggingface/huggingface_hub to download and store models that you use. This provides you with a list of environment variables that hub uses by default.

HF_HUB_CACHE is what you're looking for, and by default it is ~/.cache/huggingface/hub, where ~ means your home directory for your profile on windows/linux/mac.

If you'd like to change the location where your models are downloaded by default, you could do this:

# If you want the variable to persist everytime you run a shell
echo "export HF_HOME=/home/profile/path/to/model/directory" >> ~/.bashrc # or config file for whatever terminal you use

# You could also create a symbolic link from your directory to H…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Infinitusvoid
Comment options

@runner22k
Comment options

Answer selected by Infinitusvoid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants