PyTorch plugins installing in wrong directory?

I am trying to run the StyleGAN2 model on a remote server. I am working in a directory with lots of storage space called nfs/st01/... but when I try to load in any StyleGAN model I get the error

OSError: [Errno 122] Disk quota exceeded: ‘/home/asc70/.cache/torch_extensions/fused’

Now, home/asc70/ is my personal directory on the remote server, with little space available. How do I go about changing where these torch extensions are downloaded to?

1 Like

Could you try to set DEFAULT_CACHE_DIR to another folder and rerun the script?
These directories and other settings are specified in hub.py and can be changed via env vars.

1 Like