Interleaved Datasets
Curate interleaved image-text datasets in the format used by MINT-1T and similar large-scale multimodal corpora. Each sample is an ordered sequence of text, image, and metadata items keyed by a stable sample_id.
How it Works
NeMo Curator’s interleaved support is organized around three responsibilities:
- Storage formats —
InterleavedBatchis the in-memory representation. On disk, samples can live as WebDataset tar shards (one tar per shard, one file per item) or as Parquet rows (one row per item, grouped bysample_id). - IO round-trip — readers and writers exist for both formats, so any combination of
WDS ↔ InterleavedBatch ↔ Parquetis supported. Schema utilities ensure reserved columns get canonical types and passthrough columns survive intact. - Sample-level filters — drop samples by image sharpness, QR-code area ratio, CLIP image-text alignment, or image-to-text count ratio.
Use the IO stages on their own for format conversion (e.g., curate-once, train-many), or chain them with the filter stages for a full curation pipeline.
Pages
Round-trip readers and writers between WebDataset tar shards and Parquet, plus shared schema utilities parquet webdataset schema
Sample-level filter stages for image quality, QR-code detection, CLIP image-text alignment, and image-to-text ratio blur clip qr-detection
Quick Example
Read interleaved Parquet, drop blurry images and low-CLIP-alignment samples, and write the survivors back to MINT-1T-style WebDataset shards:
Related Topics
- Nemotron-Parse PDF Pipeline — converts PDFs into interleaved Parquet using the Nemotron-Parse VLM.
- Common Crawl — fetch web data; pair with interleaved processing for image-text crawls.