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

Models folder #197

Closed
LuchunPen opened this issue Apr 28, 2023 · 5 comments
Closed

Models folder #197

LuchunPen opened this issue Apr 28, 2023 · 5 comments

Comments

@LuchunPen
Copy link

Hi !
Could you explain is there oportunity to change models storage folder ?
I have small system disk with no free space. All models are downloading to Users/.cashe folder (windows) , how could I change it to local repository subfolder, for example bark/models ?

@mcamac
Copy link
Contributor

mcamac commented Apr 28, 2023

Hi, from the FAQ:

How do I specify where models are downloaded and cached?

Use the XDG_CACHE_HOME env variable to override where models are downloaded and cached (otherwise defaults to a subdirectory of ~/.cache).

@mregandla
Copy link

I created D:\\.cache and

I set the variable like this:

os.environ["XDG_CACHE_HOME"] = "D:\\.cache"

But still, the models are getting downloaded to ~/.cache

@mcamac
Copy link
Contributor

mcamac commented Apr 30, 2023

do you have a bigger snippet?

@mcamac mcamac closed this as completed Apr 30, 2023
@mcamac mcamac reopened this Apr 30, 2023
@imloama
Copy link

imloama commented May 4, 2023

I created D:\\.cache and

I set the variable like this:

os.environ["XDG_CACHE_HOME"] = "D:\\.cache"

But still, the models are getting downloaded to ~/.cache

Set it to the system environment, it works for me.

@gkucsko
Copy link
Contributor

gkucsko commented May 18, 2023

closing for inactivity

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

5 participants