Hugging Face · Datasets

Stream a huge dataset

Iterate without downloading the whole dataset first.

ds = load_dataset("allenai/c4", "en", split="train", streaming=True)
next(iter(ds))

Official Hugging Face documentation

More datasets commands

All datasets commands · Hugging Face cheatsheet

Was this page helpful?