Understand the WebDataset format
mainWebDataset uses .tar files as shards. The format follows two main conventions:
- Sample Grouping: Files belonging to the same training sample share the same basename when extensions are stripped (e.g.,
sample1.jsonandsample1.pngform one sample). - Shard Numbering: Shards are typically numbered sequentially (e.g.,
data-000000.tartodata-000010.tar), often referenced using brace notation likedata-{000000..000010}.tar.
This format allows for purely sequential I/O, which is highly efficient for large-scale deep learning on local disks or cloud object stores.