How can I load a dataset once I have downloaded it?

#9
by Ataracsia - opened

I ran the following code:

from datasets import load_dataset
dataset = load_dataset('poloclub/diffusiondb', 'large_random_100k',)

What if I want to be able to use this dataset again without downloading it after restarting my PC or kernel?

Polo Club of Data Science org

Hey @Ataracsia , I think when you call the same load_dataset() again, hugging face dataset will automatically use cache instead of downloading it again.

To download the dataset to a more permanent directory, you can specify a custom download destination path: https://discuss.huggingface.co/t/specifying-download-directory-for-custom-dataset-loading-script/11150

xiaohk changed discussion status to closed

Sign up or log in to comment