| File | Default location | To change default location set: | 
|---|---|---|
| logs | ./wandb | dirinwandb.initor set theWANDB_DIRenvironment variable | 
| artifacts | ~/.cache/wandb | the WANDB_CACHE_DIRenvironment variable | 
| configs | ~/.config/wandb | the WANDB_CONFIG_DIRenvironment variable | 
| staging artifacts for upload | ~/.cache/wandb-data/ | the WANDB_DATA_DIRenvironment variable | 
| downloaded artifacts | ./artifacts | the WANDB_ARTIFACT_DIRenvironment variable | 
Depending on the machine on 
wandb is initialized on, these default folders may not be located in a writeable part of the file system. This might trigger an error.Clean up local artifact cache
W&B caches artifact files to speed up downloads across versions that share files in common. Over time this cache directory can become large. Run thewandb artifact cache cleanup command to prune the cache and to remove any files that have not been used recently.
The proceeding code snippet demonstrates how to limit the size of the cache to 1GB. Copy and paste the code snippet into your terminal: