---
title: "Streaming datasets: 100x More Efficient"
description: "Hugging Face reworked streaming in the `datasets` library so multi-terabyte datasets can feed large training jobs directly from the Hub, keeping the same `streaming=True` API."
url: "https://swe.quest/articles/streaming-datasets-100x-more-efficient-8732da9f7e4dd1b1"
canonical: "https://huggingface.co/blog/streaming-datasets"
source: "Hugging Face"
published: "2025-10-27"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 7
tags: ["data-pipelines","model-training","performance","python","storage-systems"]
---

# Streaming datasets: 100x More Efficient

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-10-27, 7 min read, Announcement. Original: [https://huggingface.co/blog/streaming-datasets](https://huggingface.co/blog/streaming-datasets)

## Summary

Hugging Face reworked streaming in the \`datasets\` library so multi-terabyte datasets can feed large training jobs directly from the Hub, keeping the same \`streaming=True\` API. The fix for request storms, where every DataLoader worker resolved data files independently, is a persistent data-files cache shared across workers plus batched resolution calls, cutting startup requests up to 100x and making file resolution 10x faster. Parquet prefetching and configurable PyArrow buffer and range sizes roughly double streaming throughput. They report that at 64xH100 with 256 workers, streaming matched local SSD reads. Xet deduplicated storage with Parquet content-defined chunking speeds transfers, and an improved HfFileSystem supports custom streaming pipelines.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)

## Prerequisites

- PyTorch DataLoader workers
- Parquet format
- Hugging Face datasets library

## Keywords

Hugging Face datasets, huggingface\_hub, HfFileSystem, Parquet, PyArrow, Xet, nanoVLM, FineVisionMax

## Related posts

- [Record, train, and deploy from one place with Strands Agents, LeRobot, and Hugging Face Storage Buckets](https://swe.quest/articles/record-train-and-deploy-from-one-place-with-strands-agents-lerobot-and-hugging-5e62e45211b44f62.md): Hugging Face · 2026-08-13 · Medium · 19 min read · ML platforms, Data pipelines, Storage systems, Model training, Python
  Strands Robots 0.6 and LeRobot 0.7 form a continuous robot data loop.
- [Scaling AI-based Data Processing with Hugging Face + Dask](https://swe.quest/articles/scaling-ai-based-data-processing-with-hugging-face-dask-c086d9dcc7b445d1.md): Hugging Face · 2024-10-09 · Medium · 7 min read · Data pipelines, Inference & serving, Python, Machine learning, Cloud platforms
  Dask DataFrame lets a pandas-based Hugging Face inference workflow scale from a 100-row local test to all 211 million rows of a FineWeb crawl.
- [\`LeRobotDataset:v3.0\`: Bringing large-scale datasets to \`lerobot\`](https://swe.quest/articles/lerobotdataset-v3-0-bringing-large-scale-datasets-to-lerobot-9eb16984e25fad4b.md): Hugging Face · 2025-09-16 · Medium · 10 min read · Data pipelines, Machine learning, Python, Storage systems
  LeRobotDataset v3.0 replaces the one-episode-per-file layout of v2, which hit file-system limits at millions of episodes, with multi-episode Parquet and MP4 files indexed by relational metadata that records episode boundaries and video timestamps.
- [Run AI workloads on any cloud, store on Hugging Face: zero-egress storage with SkyPilot](https://swe.quest/articles/run-ai-workloads-on-any-cloud-store-on-hugging-face-zero-egress-storage-with-595c5291113e315b.md): Hugging Face · 2026-07-07 · Medium · 8 min read · Storage systems, Cloud platforms, Model training, Cost optimization, ML platforms
  SkyPilot now supports Hugging Face Storage as a first-class backend (\`store: hf\`), so jobs on any of 20+ clouds, Kubernetes or on-prem can mount Hub buckets (read-write) or model/dataset repos (read-only) via an \`hf://\` URL and an existing \`HF\_TOKEN\`.
- [Scaling data ingestion for machine learning training at Meta](https://swe.quest/articles/scaling-data-ingestion-for-machine-learning-training-at-meta-87e5966270af4276.md): Meta Engineering · 2022-09-19 · Medium · 11 min read · ML platforms, Data pipelines, Performance engineering, Storage systems, Recommendations & ranking
  Meta's disaggregated Data PreProcessing tier (DPP) reads training data from the Tectonic file system, decodes it, extracts features and turns it into tensors for ML training.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
