Dataset Viewer (First 5GB)
Viewer
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ArrowNotImplementedError
Message:      Nested data conversions not implemented for chunked array outputs
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 322, in compute
                  compute_first_rows_from_parquet_response(
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 88, in compute_first_rows_from_parquet_response
                  rows_index = indexer.get_rows_index(
                File "/src/libs/libcommon/src/libcommon/parquet_utils.py", line 640, in get_rows_index
                  return RowsIndex(
                File "/src/libs/libcommon/src/libcommon/parquet_utils.py", line 521, in __init__
                  self.parquet_index = self._init_parquet_index(
                File "/src/libs/libcommon/src/libcommon/parquet_utils.py", line 538, in _init_parquet_index
                  response = get_previous_step_or_raise(
                File "/src/libs/libcommon/src/libcommon/simple_cache.py", line 590, in get_previous_step_or_raise
                  raise CachedArtifactError(
              libcommon.simple_cache.CachedArtifactError: The previous step failed.
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 96, in get_rows_or_raise
                  return get_rows(
                File "/src/libs/libcommon/src/libcommon/utils.py", line 197, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 73, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1389, in __iter__
                  for key, example in ex_iterable:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 282, in __iter__
                  for key, pa_table in self.generate_tables_fn(**self.kwargs):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/parquet/parquet.py", line 90, in _generate_tables
                  for batch_idx, record_batch in enumerate(
                File "pyarrow/_parquet.pyx", line 1587, in iter_batches
                File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
              pyarrow.lib.ArrowNotImplementedError: Nested data conversions not implemented for chunked array outputs

Need help to make the dataset viewer work? Open a discussion for direct support.

πŸƒ MINT-1T:
Scaling Open-Source Multimodal Data by 10x:
A Multimodal Dataset with One Trillion Tokens

πŸƒ MINT-1T is an open-source Multimodal INTerleaved dataset with 1 trillion text tokens and 3.4 billion images, a 10x scale-up from existing open-source datasets. Additionally, we include previously untapped sources such as PDFs and ArXiv papers. πŸƒ MINT-1T is designed to facilitate research in multimodal pretraining. πŸƒ MINT-1T is created by a team from the University of Washington in collaboration with Salesforce Research, other academic institutions including Stanford University, University of Texas at Austin, and University of California Berkeley.

You are currently viewing the HTML subset of πŸƒ MINT-1T. For PDF and ArXiv subsets, please refer to the πŸƒ MINT-1T collection.

Examples

Dataset Details

Dataset Sources

Uses

Direct Use

πŸƒ MINT-1T is designed to facilitate research in multimodal pretraining. The dataset can be used for training multimodal models that can reson about interleaved text and images sequences such as Idefics2, XGen-MM, and Chameleon.

Out-of-Scope Use

πŸƒ MINT-1T was built to make research into large multimodal models more accessible. Using the dataset to train models that ingest or generate personally identifying information (such as images of people’s faces and other sensitive content) as well as military applications are all inappropriate use cases of πŸƒ MINT-1T.

Dataset Creation

Curation Rationale

πŸƒ MINT-1T was created to address a significant gap in the open-source domain by providing a large-scale multimodal interleaved dataset for pre-training large multimodal models. This dataset aims to be a valuable resource for the research community, facilitating open science in multimodal pretraining.

Source Data

The dataset is a comprehensive collection of multimodal documents from various sources:

  • HTML documents: Filtered from CommonCrawl WARC dumps spanning from 2017 to 2024
  • PDF documents: Extracted from CommonCrawl WAT dumps covering 2023 to 2024
  • ArXiv documents: A subset of papers from the ArXiv repository

In total, πŸƒ MINT-1T contains 1056.8 million documents, broken down as follows:

  • 1029.4 million HTML documents
  • 26.8 million PDF documents
  • 0.6 million ArXiv documents

Data Collection and Processing

The data collection and processing involved several steps:

  1. Document Extraction:

    • HTML documents were parsed from CommonCrawl WARC files
    • PDF documents were extracted from CommonCrawl WAT files
    • ArXiv papers were directly sourced from ArXiv S3 buckets
  2. Filtering Process:

    • Applied text quality filters to ensure content relevance and readability
    • Removed duplicate content at both paragraph and document levels
    • Filtered out undesirable content based on predefined criteria
    • Verified image availability and quality for HTML documents
    • Limited PDF size to 50MB and 50 pages to manage dataset size and quality
  3. Image Processing:

    • Used NSFW image detection to remove pornographic or otherwise undesirable images
    • Removed images smaller than 150 pixels or larger than 20,000 pixels
    • Adjusted aspect ratio thresholds for HTML (2:1) and PDF (3:1) to preserve scientific figures
  4. Text Processing:

    • Used fasttext for language identification, focusing on English content
    • Masked personally identifiable information such as email addresses and IP addresses
    • Applied paragraph and document-level deduplication using Bloom filters
  5. PDF Specific Processing:

    • Used PyMuPDF for parsing PDFs and extracting reading order
    • Clustered text blocks based on columns and ordered from top left to bottom right
  6. ArXiv Specific Processing:

    • Used TexSoup to parse LaTeX source code and interleave images with text
    • Cleaned up LaTeX code by removing imports, bibliography, tables, and citation tags

Various open-source tools were utilized in this process, including fasttext, PyMuPDF, and DCLM and bff for deduplication and content filtering.

Personal and Sensitive Information

Despite sourcing from public web data, significant efforts were made to minimize the inclusion of personal and sensitive information:

  • Email addresses and IP addresses were masked to protect privacy
  • An NSFW image classifierto remove inappropriate visual content
  • URLs containing substrings associated with undesirable or sensitive content were filtered out

However, users should be aware that as the data originates from the public web, it may still contain some sensitive or personal information. The dataset creators acknowledge this limitation and advise users to exercise caution and potentially apply additional filtering based on their specific use cases.

Bias, Risks, and Limitations

Several potential biases, risks, and limitations have been identified:

  1. Data Bias: As the dataset is sourced from web crawls, it may inherit biases present in online content.

  2. Content Risks: Despite extensive filtering, there's a possibility that some offensive, insensitive, or inappropriate content may remain in the dataset.

  3. Image Availability: The dataset relies on external image URLs, which may become unavailable over time due to link rot, potentially affecting the dataset's long-term usability.

  4. PDF Parsing Limitations: The current method for extracting reading order from PDFs may not always accurately capture the intended flow, especially for documents with complex layouts.

  5. Potential Legal and Ethical Concerns: While efforts were made to respect robots.txt files and remove sensitive information, there may still be content that individuals did not explicitly consent to include.

Recommendations

Given these considerations, the following recommendations are provided:

  1. Additional Filtering: Users are strongly encouraged to apply additional filtering based on their specific use case and ethical considerations.

  2. Inappropriate Use Cases: The dataset is not recommended for applications involving the processing or generation of personally identifying information, nor for military applications.

  3. Legal Compliance: Users should independently verify compliance with applicable laws before employing MINT-1T for commercial purposes.

  4. Bias Awareness: Researchers and developers should be cognizant of potential biases in the dataset and consider their impact on model training and outputs.

License

We release πŸƒ MINT-1T under a CC-BY-4.0 license, designating it primarily as a research artifact. While the dataset is freely available, users are responsible for ensuring its legal use in commercial settings. Users must independently verify compliance with applicable laws before employing MINT-1T for commercial purposes.

Citation

@article{awadalla2024mint1t,
      title={MINT-1T: Scaling Open-Source Multimodal Data by 10x: A Multimodal Dataset with One Trillion Tokens}, 
      author={Anas Awadalla and Le Xue and Oscar Lo and Manli Shu and Hannah Lee and Etash Kumar Guha and Matt Jordan and Sheng Shen and Mohamed Awadalla and Silvio Savarese and Caiming Xiong and Ran Xu and Yejin Choi and Ludwig Schmidt},
      year={2024}
}
Downloads last month
0

Collection including mlfoundations/MINT-1T-HTML