from huggingface_hub import notebook_login
notebook_login()

Load ELI5 dataset
Start by loading the first 5000 examples from the ELI5-Category dataset with the 🤗 Datasets library. This'll give you a chance to experiment and make sure everything works before spending more time training on the full dataset.

from datasets import load_dataset
eli5 = load_dataset("eli5_category", split="train[:5000]")