webdataset
High performance storage and I/O for deep learning and data processing.
Decision gist · record as of 2026-08-14
Yes, with conditions. Install if you are building large-scale deep learning pipelines that benefit from sequential I/O and cloud storage integration. The low install friction and permissive license are favorable. However, the aging maintenance status (421 days since last release) and alpha development status mean you should verify that the library's behavior matches your exact use case and multinode requirements before committing to production. No known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires PyTorch or a mock IterableDataset implementation; Python >= 3.10.
- Low install friction with only three runtime dependencies (braceexpand, numpy, pyyaml).
- Maintenance status is aging—last release was 421 days ago, though the repository remains active with 3161 stars and a recent commit on 2026-02-09.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; attribution required.
last release 2025-06-19 (421 days) · last repo commit 2026-02-09 · 3,161 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,928,349 downloads/mo, #2,821 on PyPI
Alternatives
Verify before relying
import webdataset as wds
url = "https://storage.googleapis.com/webdataset/testdata/publaynet-train-{000000..000009}.tar"
dataset = wds.WebDataset(url).shuffle(10).decode("pil").to_tuple("png", "json")
for image, json_data in dataset:
break- Exact performance gains (3x-10x sequential vs. random access) claimed in description need independent validation.
- Shard resampling behavior and sample balancing across compute nodes in multinode setups not detailed in excerpt.
- Security mode limitations and threat model scope beyond disabling pipe:/file: protocols and pickle decoding.
What it is and what it does
WebDataset is a PyTorch IterableDataset implementation designed for high-throughput streaming of large training datasets from tar-based shards. It enables purely sequential I/O pipelines, which is critical for achieving high disk and network throughput when training deep learning models at scale. The format stores related files (e.g., images and metadata) together by shared basename within tar archives, and shards are numbered and accessed via brace notation (e.g., `data-{000000..012345}.tar`). This approach works with local storage, cloud object stores, and concatenated MsgPack/CBOR sources.
The library provides both a concise "fluid" interface (recommended for most users) and a lower-level "pipeline" interface for explicit control. It integrates seamlessly with PyTorch's DataLoader for parallel preprocessing and works with TensorFlow and JAX. Key features include no requirement for dataset metadata, instant startup, optional local caching, and scalability from desktop to petascale datasets. Main limitations stem from IterableDataset being less common in PyTorch codebases and the complexity of achieving exactly balanced sample counts across nodes in distributed training.
Use it for
- Stream large image classification datasets from cloud storage during training without downloading entire dataset locally.
- Build multinode distributed training pipelines that read shards in parallel across compute nodes with shard resampling.
- Preprocess and augment data on-the-fly using PyTorch DataLoader workers while reading sequentially from tar archives.
- Convert existing tar-based datasets to WebDataset format for OCR, document processing, or other shard-to-shard transformations.
- Fine-tune large language models using text datasets stored in WebDataset format with minimal latency.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
Install if you are building large-scale deep learning pipelines that benefit from sequential I/O and cloud storage integration. The low install friction and permissive license are favorable. However, the aging maintenance status (421 days since last release) and alpha development status mean you should verify that the library's behavior matches your exact use case and multinode requirements before committing to production. No known vulnerabilities.
Install
webdataset on PyPI
Before you install
Low install friction with only three runtime dependencies (braceexpand, numpy, pyyaml). Maintenance status is aging—last release was 421 days ago, though the repository remains active with 3161 stars and a recent commit on 2026-02-09.
Requires PyTorch or a mock IterableDataset implementation; Python >= 3.10.
License in practice
BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; attribution required.
Quickstart
import webdataset as wds
url = "https://storage.googleapis.com/webdataset/testdata/publaynet-train-{000000..000009}.tar"
dataset = wds.WebDataset(url).shuffle(10).decode("pil").to_tuple("png", "json")
for image, json_data in dataset:
break
Verify before relying
- Exact performance gains (3x-10x sequential vs. random access) claimed in description need independent validation.
- Shard resampling behavior and sample balancing across compute nodes in multinode setups not detailed in excerpt.
- Security mode limitations and threat model scope beyond disabling pipe:/file: protocols and pickle decoding.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesbraceexpandnumpypyyaml |
| Maintenance | Aging 421 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,928,349 / month, #2,821 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12 |
Evidence: webdataset-1.0.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytorch iterable dataset tar shards”
- webdatasetWebDataset reads and streams large-scale training data from tar-based…
- ideniden manages machine learning datasets organized into shards with…
- tqdmWraps any iterable to display a real-time progress bar in the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also iden · litdata · mosaicml-streaming · petastorm · datasets · torchtext · s3torchconnector · torchvision · s3torchconnectorclient · grain