Lightning-AI/litData
Speed up model training by fixing data loading.
What it solves
LitData addresses the common bottleneck where data loading slows down model training. It is designed for scenarios where datasets are too large to fit on disk, consist of millions of small files, or stream too slowly from cloud storage.
How it works
LitData provides two primary workflows. First, it offers a StreamingRawDataset that allows you to stream files directly from cloud storage (like S3 or GCS) as-is, without any preparation. Second, for maximum performance, it provides an optimize tool that converts raw data into an efficient, chunked binary format. This optimized format allows for high-speed streaming, resumable training, and cloud-agnostic data access, which can improve training throughput by up to 20x. It also includes a map operator for parallelizing data processing tasks across multiple machines.
Who it’s for
It is for developers and researchers working with large-scale datasets who need to accelerate their PyTorch training pipelines. It is particularly useful for those who want to avoid the overhead of downloading massive datasets locally or who need to process data in a distributed manner before training.
Highlights
- Accelerates training throughput by up to 20x via optimized data streaming.
- Supports streaming directly from cloud storage (S3, GCS, Azure) without local downloads.
- Provides a
mapoperator for parallel, distributed data preprocessing (e.g., resizing, embedding creation, scraping). - Compatible with PyTorch, PyTorch Lightning, and Hugging Face datasets.
- Includes built-in support for various data modalities, including text, images, audio, video, and 3D meshes.
Related
- Project
- Project
- Project
- Project
- Project