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: /static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fspecifying-download-directory-for-custom-dataset-loading-script%2F11150%3C%2Fa%3E%3C%2Fp%3E

xiaohk changed discussion status to closed

Sign up or log in to comment