Skip to content

Datasets

Load and stream datasets with one line of code

Hugging Face Tool Open source

What it is

Datasets is an open-source library from Hugging Face, released in 2020, for loading, processing and sharing datasets. It uses Apache Arrow as its underlying format and supports memory mapping and streaming, so datasets larger than memory can still be iterated batch by batch. It addresses the difficulty of reusing the download, parsing and preprocessing pipelines that precede training.

It made "getting the data" a cacheable, streamable standard step, so preprocessing code travels and reproduces alongside the dataset.

Key specs

Backing format
Apache Arrow
Reading
Memory mapping and streaming

Related concepts

AI Engineering, Safety & Ethics

Training & Inference InfrastructureExpert

Memory decides how large a model you can train, communication how long it takes — raw compute is rarely the bottleneck

4Linked
Figures 1 · Data 1

NLP & Large Language Models

Pretraining & Fine-tuningIntermediate

Learn language first from vast unlabelled text, then specialise with little data — the most data-efficient paradigm in modern AI

5Linked
Figures 1 · Data 1

Comparable products

Hugging Face

Transformers

One API to load and train pretrained models

2Linked
Tool Open source
2018

Hugging Face

Diffusers

A unified implementation and scheduler for diffusion models

2Linked
Tool Open source
2022

Pinecone

Pinecone

A managed vector database for similarity search

2Caps
Infrastructure Closed
2019