Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 7 min read Announcement mediumAdept

Streaming datasets: 100x More Efficient

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.

Assumes: PyTorch DataLoader workersParquet formatHugging Face datasets library

Related posts

  • Record, train, and deploy from one place with Strands Agents, LeRobot, and Hugging Face Storage Buckets

    Hugging Face mediumAdept

    Strands Robots 0.6 and LeRobot 0.7 form a continuous robot data loop. Demonstrations are recorded as LeRobotDatasets with `Robot.run(record=...)` and synced into Hugging Face Storage Buckets, which are Xet-backed and deduplicate at the byte level with content-defined chunking. Training streams the data back through `StreamingLeRobotDataset` with no local download, and the checkpoint deploys to hardware with a `port=` change. In HF's benchmarks, re-uploading a 500 MB file with 1% of its bytes changed transferred only 5.5 MB. A full streaming read of an 86 MB dataset left under 1 MB on disk, because LeRobot's large Parquet and MP4 shards turn each batch into a few byte-range reads.

  • Scaling AI-based Data Processing with Hugging Face + Dask

    Hugging Face mediumAdept

    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. The FineWeb-Edu classifier scores each page for educational value through map_partitions, and the filtered results are written back to the Hub as Parquet. The full 432 GB crawl ran on 100 A10 GPU spot instances provisioned with Coiled in about 5 hours, with GPU utilization near 100%. Practical tips include in-function hardware detection, tuning pipeline batch_size to the hardware, and squashing per-file commits after a parallel upload.

  • `LeRobotDataset:v3.0`: Bringing large-scale datasets to `lerobot`

    Hugging Face mediumAdept

    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. The repository layout separates meta files (info.json schema, stats.json normalization stats, tasks.jsonl, chunked Parquet episode metadata) from chunked data/ and videos/ directories. A new StreamingLeRobotDataset reads datasets directly from the Hugging Face Hub without downloading them, which matters for collections like the ~500 GB L2D driving dataset. A one-line script converts v2.1 datasets, and delta_timestamps windowing integrates with PyTorch DataLoader for RL and behavioral-cloning training.

  • Run AI workloads on any cloud, store on Hugging Face: zero-egress storage with SkyPilot

    Hugging Face mediumAdept

    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`. MOUNT mode uses the `hf-mount` FUSE driver with lazy, byte-range reads and an on-disk cache. Because Hugging Face charges no egress, reads onto GPUs anywhere are free; writes still pay the compute cloud's egress. A Qwen3.5-4B fine-tune loaded the model in about 30 seconds and wrote 8.43 GB checkpoints at roughly 112-168 MB/s across AWS, GCP and Lambda, while Xet content-defined chunking deduplicates incremental checkpoints, model variants and appended Parquet data.

  • Scaling data ingestion for machine learning training at Meta

    Meta Engineering mediumAdept

    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. Because GPU performance is outpacing CPU and storage, many recommendation models are limited by data ingestion, and in power-constrained data centers that caps how many accelerators can be deployed. Four optimizations cut the data ingestion power budget by 35-45%. Storing each feature as its own on-disk stream (feature flattening with projection) raised reader throughput 2-2.3x, and client-side rebatching added 20-40%. A column-major FlatMap in-memory format added 9-17%, and storing features that are usually read together next to each other on disk cut storage-to-reader transfer by 45-55%. Future work includes HDD+SSD tiered storage and moving preprocessing onto GPUs.

The quest for software engineering knowledge.

Look:
Layout: