datasets (huggingface/datasets)

Searching Database…

What is this?A lightweight Python library from Hugging Face that gives one-line dataloaders for a huge catalog of ready-to-use public datasets on the HF Hub, plus fast, reproducible preprocessing for Hub and local data.
Is this a website or a library I install?A library: you install it with pip or conda into your Python environment. The datasets themselves live on the Hugging Face Hub — the library pulls them in as Arrow-backed Dataset objects, in memory or streamed.
How do I get it running?pip install datasets in a virtualenv or conda env (a conda package and the dev version are available too), then load data in one line, e.g. load_dataset('rajpurkar/squad').
Do I need PyTorch or TensorFlow installed to use it?No — nothing beyond Python is required, and datasets convert natively to and from NumPy, Pandas, Polars, Arrow, PyTorch, TensorFlow, JAX and Spark, so you can feed whichever training stack you already use.
Do I need a beefy machine for the big datasets?No — the Apache Arrow backend uses zero-copy memory-mapped storage, so datasets are not limited by your RAM, and for data bigger than your disk there is streaming=True, which iterates on-the-fly without downloading.
Is this aimed at ML researchers, or regular Python developers too?Anyone training or evaluating ML models — it hands you data ready for a training or eval dataloader, and it is built so the community can easily add and share new datasets.
Will it run on my Windows laptop, or does it need a Linux server?It runs wherever Python runs — it is a plain pip package with nothing OS-specific in it, so Windows, macOS and Linux all work.
Can I use it on my own local files, or only Hub datasets?Your own files work the same way: CSV, JSON, JSONL, Parquet, HDF5, XML, text, PNG, JPEG, WAV, MP3, PDF and NIfTI are supported, plus plain Python objects — all going through the same map()-based preprocessing.
What kinds of data can it handle?Text (datasets in 467 languages and dialects), images, audio, video, PDFs and NIfTI 3D medical scans, plus AI agent traces; multi-split data comes back as a DatasetDict with train/test/val.
Does it reprocess my data every time I run a script?No — processed results are cached and automatically reused, so expensive map() work happens once; map(num_proc=N) can also parallelize it across processes.
How do I publish my own dataset to the Hub?There is a detailed step-by-step guide: upload via web browser or Python, or push with Git; dataset owners can update or remove their dataset anytime via the Community tab of its page.
Size
114 MB
Stars
22.2K
Age
6y
Commits · 90 Days