Join the HubClone community
and get access to the augmented documentation experience
- Collaborate on models, datasets and Spaces
- Faster examples with accelerated inference
- Switch between documentation themes
to get started
Datasets
The Hub hosts a large number of datasets for text, vision, audio, tabular and multimodal work. This section explains how to publish datasets, document them and use them from your code.
Contents
- Datasets Overview
- Dataset Cards
- Gated Datasets
- Uploading Datasets
- Downloading Datasets
- Integrated Libraries
- Data Studio
Loading a dataset
The quickest way to start is the datasets library, which reads any public dataset by its repository id.
from datasets import load_dataset
ds = load_dataset("acme-ai/demo-corpus", split="train")
print(ds[0])