Where can I find the downloaded repositroy using snapshot_download?

Hello,

I’m new with huggingface. I’m trying to download an entire repository using the code below, but I don’t know where can I find the repository after it’s all downloaded ? Can I add a path where to save the repository ?
PS : I working on compute canada, so I have to save the repository in the scratch file.

from huggingface_hub import snapshot_download
snapshot_download(repo_id=“openclimatefix/era5-land”, repo_type=“dataset”)

Thanks,

Hi @Saben1 !

You can specify the path for where to download the repository; otherwise, I think it’ll be in a cache folder in your home directory.

from huggingface_hub import snapshot_download

snapshot_download(repo_id="openclimatefix/era5-land", cache_dir="path/to/folder")
1 Like