Datasets

One-line loading and fast, Arrow-backed processing for thousands of ML datasets

Library
PyPI
v5.0.1
22,013 stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
95 /100 Excellent
Development Activity 96
Maintenance 100
Community 84
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
86 /100 Excellent
Architecture 90
Code Quality 88
Innovation 85
Learning Curve 82

Datasets is Hugging Face’s library for accessing and processing machine learning datasets, providing one-line dataloaders for thousands of public datasets hosted on the Hugging Face Hub alongside efficient tools for working with local CSV, JSON, Parquet, image, audio, video, and text data.

Built on Apache Arrow, it uses zero-copy memory-mapped storage so datasets can exceed available RAM without slowing down access, and it supports streaming mode so huge datasets can be iterated over without a full download. Smart caching avoids reprocessing the same transformation twice, and native converters interoperate with NumPy, Pandas, Polars, PyTorch, TensorFlow, JAX, and Spark.

What You Get

  • One-line access to datasets hosted on the Hugging Face Hub across text, image, audio, video, and 3D medical formats
  • Zero-copy Apache Arrow backend so datasets larger than RAM can still be processed efficiently
  • Streaming mode to iterate over massive datasets without downloading them first
  • Built-in map()/filter() transformations with multi-processing support via num_proc
  • Native conversion to and from NumPy, Pandas, Polars, PyTorch, TensorFlow, JAX, and Spark
  • Support for loading local files in CSV, JSON, JSONL, Parquet, HDF5, XML, text, image, and audio formats

Common Use Cases

  • Loading a public benchmark dataset (e.g. SQuAD, GLUE) for fine-tuning or evaluating a model
  • Streaming a dataset too large to fit on disk directly into a training loop
  • Preprocessing raw text, image, or audio data with map() before feeding it into a PyTorch or TensorFlow pipeline
  • Converting between Pandas/Polars DataFrames and Arrow-backed datasets for exploratory analysis
  • Building and sharing a custom dataset on the Hugging Face Hub for reuse by other practitioners

Under The Hood

Architecture - The core of Datasets is the Dataset/DatasetDict object defined in src/datasets/arrow_dataset.py (7,400+ lines), a thin, memory-mapped wrapper over Apache Arrow tables. load.py orchestrates dataset resolution — checking the Hugging Face Hub, a packaged_modules loader (CSV/JSON/Parquet/etc.), or a user-supplied loading script — and hands off to builder.py, which downloads, verifies, and writes Arrow files via arrow_writer.py/arrow_reader.py. iterable_dataset.py provides the streaming code path that avoids materializing data on disk, and distributed.py/parallel/ handle multi-worker and multi-process execution.

Tech Stack - Written in Python (>=3.10), with pyarrow as the storage backbone, huggingface_hub for Hub access, fsspec for filesystem abstraction, and optional integrations with NumPy, Pandas, Polars, PyTorch, TensorFlow, and JAX. Packaging is managed with a legacy setup.py plus pyproject.toml for tool configuration (ruff, pytest), and CI runs via GitHub Actions.

Code Quality - The tests/ directory contains 1,300+ test functions covering the Arrow dataset core, builders, download manager, distributed execution, and each packaged data format, run under pytest with strict FutureWarning filtering on huggingface_hub. Ruff enforces linting (import sorting, unused imports) across the codebase. Naming is consistent and the public surface is concentrated in a small number of well-documented entry points (load_dataset, Dataset.map, Dataset.filter).

API Design - The library is built around a single memorable entry point, load_dataset(name, **kwargs), that returns a ready-to-use object regardless of whether the source is a Hub dataset, a local file, or a streaming source — minimizing the boilerplate needed to get from zero to a usable dataset. Chainable methods like .map(), .filter(), and .with_format() follow a consistent, discoverable naming convention across the whole API.

Used by 25 apps in this directory

Python
59%
Apache 2.0

argilla

AI Development · Data Engineering

5,125

Collaborate on high-quality AI training data with a self-hosted annotation platform built for LLMs, NLP, and multimodal models.

View details
65
Repo Health
81
Technical
61
Dependency
Built with
Python 59%
Jupyter Notebook 21%
Updated 1 weeks ago
Python
66%
Other

AutoGPT

AI Assistants · Automation · Productivity

187,596

Build, deploy, and run autonomous AI agents that automate complex multi-step workflows using a visual block-based graph editor.

View details
93
Repo Health
78
Technical
66
Dependency
Built with
Python 66%
TypeScript 33%
Updated 4 days ago
TypeScript
72%
MIT

Claude Context

AI Code Assistants · Mcp

12,573

An MCP server and VS Code extension by Zilliz that turns your entire codebase into semantically searchable context for Claude Code, Cursor, and Gemini CLI, using vector embeddings and Merkle-tree change detection.

View details
46
Repo Health
71
Technical
71
Dependency
Built with
TypeScript 72%
Python 13%
JavaScript 11%
Updated 2 months ago
Python
100%
Apache 2.0

ClearML

Automation · Devops

6,892

Auto-magical MLOps platform that tracks experiments, versions data, orchestrates pipelines, and serves models with just two lines of code.

View details
94
Repo Health
79
Technical
68
Dependency
Built with
Python 100%
Updated 1 weeks ago
C
55%
Apache 2.0

Colibri

AI Development · Developer Tools

37,989

A pure-C, zero-dependency inference engine that runs GLM-5.2's 744-billion-parameter mixture-of-experts model on consumer hardware with roughly 25GB of RAM by streaming experts from disk like a JIT compiler stages hot code.

View details
83
Repo Health
86
Technical
76
Dependency
Built with
C 55%
Python 33%
Updated 4 days ago
Python
99%
MIT

deepagents

AI Agents · AI Development

29,818

The batteries-included Python agent harness — planning, sub-agents, filesystem, shell, memory, and skills bundled in, built on LangGraph.

View details
88
Repo Health
83
Technical
70
Dependency
Built with
Python 99%
Updated 4 days ago
Rust
80%
MIT

fabro

Developer Tools · Devops

1,658

Define AI agent workflows as code graphs, route tasks across any LLM, and intervene only where it matters.

View details
82
Repo Health
83
Technical
67
Dependency
Built with
Rust 80%
TypeScript 15%
Updated 5 days ago
Python
82%
Other

fish-speech

AI Development · Developer Tools · Music Audio

32,864

SOTA open-source dual-autoregressive text-to-speech model with rapid voice cloning, inline emotion tags, and real-time streaming inference across 80+ languages.

View details
69
Repo Health
71
Technical
73
Dependency
Built with
Python 82%
TypeScript 14%
Updated 2 weeks ago
Python
83%
MIT

Gemma Multimodal Fine-Tuner

AI Development

1,503

An Apple-Silicon-native LoRA fine-tuning tool for Gemma on text, image, and audio data — with a wizard CLI, live browser-based training visualizer, and streaming from GCS/BigQuery for datasets too large for local disk.

View details
65
Repo Health
68
Technical
72
Dependency
Built with
Python 83%
Updated 6 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers