Loading local dataset to colab

Hello!

I have created a DatasectDict object contain nested Dataset objects for ‘train’ and test’ inputs. I have saved it locally using DatasectDict.save_to_disk, but I am not quite sure how to load this into google colab? Is there a simple way to accomplish this?

Thanks for the help!

I upload my datasets into google drive and then connect my colab with google drive like this.
image
Then you load your dataset

1 Like

You the best @Petar.

I am thankful for your help and hope you have a great weekend.

Hi! It’s even easier to use push_to_hub on a local dataset (set private=True to make it private) and then load it from the Hub using load_dataset("<username>/<dataset>", use_auth_token=True) after authenticating with:

from huggingface_hub import notebook_login
notebook_login()
1 Like