bark icon indicating copy to clipboard operation
bark copied to clipboard

Models folder

Open LuchunPen opened this issue 1 year ago • 4 comments

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 ?

LuchunPen avatar Apr 28 '23 09:04 LuchunPen

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).

mcamac avatar Apr 28 '23 13:04 mcamac

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

mregandla avatar Apr 30 '23 14:04 mregandla

do you have a bigger snippet?

mcamac avatar Apr 30 '23 17:04 mcamac

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.

imloama avatar May 04 '23 08:05 imloama

closing for inactivity

gkucsko avatar May 18 '23 13:05 gkucsko