4 ms·
If my ~/.cache was on tmpfs, I would need to download tens of gigabytes of stuff every day. I wouldn't be able to work. There are lots of huge files stored in t
by elpocko 2y ago
If my ~/.cache was on tmpfs, I would need to download tens of gigabytes of stuff every day. I wouldn't be able to work. There are lots of huge files stored in there, mostly required by Python packages for Stable Diffusion and other ML stuff that insists on downloading huge model files and putting them into ~/.cache.
Edit: du -hc ~/.cache says it's 25G.
- person4268 2y agoYou can set HF_HOME to move the folder it downloads those to elsewhere (or well, the HF transformers/diffusers stuff at least), iirc.
- neilv 2y agoAgreed, if you're storing 25GB+ in `~/.cache`, then probably you won't put it on `tmpfs` on a laptop. I didn't think of the massive ML models, because I store those in the home directory, where I can see them. (Incidentally, since you mention Stable Diffusion: for an earlier version of SD, I went to some care to make sure I didn't accidentally lose the checkpoint file, because I didn't know whether it would be pulled from distribution. Then there were regressions in the SD training data.)
- elpocko 2y ago>I store those in the home directory, where I can see them. That works for most things, and that's how it should be. But sometimes the dev just doesn't provide links and you either have to read their code to figure out the model URLs, or simply allow the automatic download that ends up in .cache.