Hugging Face Datasets
Fast, memory-mapped dataset library for NLP and ML — 50,000+ datasets, streaming, and Arrow-backed processing.
Hugging Face Datasets
Datasets is a lightweight library for easily sharing and accessing datasets and evaluation metrics for NLP, computer vision, and audio tasks. It uses Apache Arrow's memory-mapped format to work with datasets much larger than RAM, and provides seamless integration with the Hugging Face Hub.
Key Features
- 50,000+ datasets on the Hugging Face Hub, loadable in one line
- Memory-mapped Arrow format: process 100GB+ datasets without running out of RAM
- Streaming mode: iterate over datasets without downloading them
- Fast data processing: parallelized
map,filter,shufflevia multiprocessing - Interoperability: converts to/from Pandas, PyTorch, TensorFlow, JAX
- Dataset cards and version control via the Hub
Quick Start
from datasets import load_dataset
# Load from Hub
dataset = load_dataset("squad")
print(dataset["train"][0])
# Stream a huge dataset
streamed = load_dataset("c4", "en", split="train", streaming=True)
for example in streamed.take(10):
print(example["text"][:100])
# Apply transformations
tokenized = dataset.map(lambda x: tokenizer(x["text"]), batched=True)
Install via ai-supply
npx ai-supply add huggingface-datasets-hub
Curated mirror of the open-source Hugging Face Datasets (Apache-2.0). Get it from the source.
Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.
Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).
The same gate an agent runs before installing (POST /api/v1/trust/huggingface-datasets-hub/check). Click a policy:
Consume Hugging Face Datasets programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/huggingface-datasets-hub
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/huggingface-datasets-hub/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add huggingface-datasets-hub
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/huggingface-datasets-hub/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "huggingface-datasets-hub" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.