Load, stream, process, and publish datasets with the HuggingFace datasets library. Covers Apache Arrow-backed streaming for large datasets, map/filter operations, train/val/test splitting, interleaving, concatenation, and pushing to the Hub.
NewMaintained
Automatic
◆AI Engineer pack
Last verified 8/21/2026
What it changes
Passed 0 of 23 test cases with the skill, and 23 of 23 without it.
Without skill100%
With skill0%
0 fixed21 passed either way0 still failing2 broke
Pass-rate lift
-100 pp
Tokens
+65%
Agent turns
0%
Response time
-46%
Model gemini-3.6-flashMeasured 8/21/2026v121 of 23 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
What's inside
The instructions your model reads when the skill loads.
SKILL.md205 linessingle file
HuggingFace Datasets
Overview
The datasets library by HuggingFace provides memory-efficient, Apache Arrow-backed access to tens of thousands of public datasets and your own local/remote data. It supports streaming for datasets that don't fit in RAM and integrates directly with transformers tokenizers and training loops.
When to Use
Use this skill when:
Loading datasets from the HuggingFace Hub or local files (Parquet, JSONL, CSV, Arrow).
Streaming datasets too large for memory.
Applying preprocessing, tokenization, or filtering at scale with .map() and .filter().
Pushing curated datasets to the Hub for sharing or versioning.
Interleaving or concatenating multiple datasets.
Do not use for:
Small in-memory pandas DataFrames with < 100K rows — use pandas directly.
Model inference — use transformers or vllm skills.
Embedding computation — use embedding-analysis skill.
Installation
uv pip install datasets pyarrow huggingface_hub
Quick Start
Loading
from datasets import load_dataset, load_from_disk
# From the Hub
dataset = load_dataset("imdb", split="train")
# From local files
dataset = load_dataset("parquet", data_files="data/*.parquet", split="train")
# From disk (pre-saved)
Pythonic config generation for Hydra (hydra-zen). Eliminates hand-written YAML by generating structured dataclass configs directly from Python objects and functions. Provides make_config, builds, zen, store, and launch utilities for configurable, reproducible, and scalable workflows. Use for typed experiment configuration, Hydra boilerplate reduction, and Python-first ML workflow design.