jhu-clsp/mmbert-pretrain-p1-fineweb2-langs

Dataset

7

stars

501

commits

3

linked in READMEs

Oct 13, 2025

updated

encoder
feature-extraction
language-modeling
multilingual
pretraining

README

mmBERT Pre-training Data P1

License: MIT Paper Models GitHub

Phase 1 of 3: Diverse multilingual pre-training data mixture (trained for 2.3T tokens) used to train the mmBERT model suite.

NOTE: this is only P1 of the pre-training data due to HF limits, you need to download and combine all three into one folder

This dataset contains the pre-training phase data used to train all mmBERT encoder models. The data is provided in MDS format ready for use with Composer and the ModernBERT training repository.

πŸ“Š Data Composition

Data SourceTokens (B)PercentageDescription
FineWeb21,196.660.2%High-quality multilingual web crawl data
DCLM600.030.2%High-quality English web crawl data
Starcoder100.65.1%Code repositories and files
Arxiv27.81.4%Academic preprints
StackExchange18.60.9%Q&A forums
Tulu Flan15.30.8%Instruction-following data
Dolmino Math11.20.6%Mathematical content
PeS2o8.40.4%Scientific papers
Wikipedia (MegaWika)4.70.2%Encyclopedia articles
Books4.30.2%Literature and reference books
StackExchange (Dolmino)1.40.1%Curated Q&A content
Total1,989.0100.0%Diverse mixture for foundation training

🌍 Language Coverage

This phase covers 60 languages plus code, with an inverse temperature sampling schedule starting at Ο„=0.7. Languages include:

  • High-resource: English (34.5%), Russian (5.8%), German (4.4%), Spanish (4.5%), French (4.0%), Chinese (5.2%)
  • Mid-resource: Italian, Portuguese, Japanese, Dutch, Polish, and 45 others
  • Scripts: Latin, Cyrillic, Arabic, Chinese, Japanese, Thai, and many more

πŸš€ Usage

For pre-training, see the ModernBERT repo: https://github.com/AnswerDotAI/ModernBERT

Direct Access

Use the script at this link to load any section of the dataset on the fly. This will fail if you try to access too many samples though, due to HF rate-limiting. To download the full dataset, use HF Hub's Snapshot Download.

Citation

@misc{marone2025mmbertmodernmultilingualencoder,
      title={mmBERT: A Modern Multilingual Encoder with Annealed Language Learning}, 
      author={Marc Marone and Orion Weller and William Fleshman and Eugene Yang and Dawn Lawrie and Benjamin Van Durme},
      year={2025},
      eprint={2509.06888},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2509.06888}, 
}

Contributors

orionweller

500 commits

nielsr

1 commits

jhu-clsp/mmbert-pretrain-p1-fineweb2-langs

Dataset

7

stars

501

commits

3

linked in READMEs

Oct 13, 2025

updated

encoder
feature-extraction
language-modeling
multilingual
pretraining

README

mmBERT Pre-training Data P1

License: MIT Paper Models GitHub

Phase 1 of 3: Diverse multilingual pre-training data mixture (trained for 2.3T tokens) used to train the mmBERT model suite.

NOTE: this is only P1 of the pre-training data due to HF limits, you need to download and combine all three into one folder

This dataset contains the pre-training phase data used to train all mmBERT encoder models. The data is provided in MDS format ready for use with Composer and the ModernBERT training repository.

πŸ“Š Data Composition

Data SourceTokens (B)PercentageDescription
FineWeb21,196.660.2%High-quality multilingual web crawl data
DCLM600.030.2%High-quality English web crawl data
Starcoder100.65.1%Code repositories and files
Arxiv27.81.4%Academic preprints
StackExchange18.60.9%Q&A forums
Tulu Flan15.30.8%Instruction-following data
Dolmino Math11.20.6%Mathematical content
PeS2o8.40.4%Scientific papers
Wikipedia (MegaWika)4.70.2%Encyclopedia articles
Books4.30.2%Literature and reference books
StackExchange (Dolmino)1.40.1%Curated Q&A content
Total1,989.0100.0%Diverse mixture for foundation training

🌍 Language Coverage

This phase covers 60 languages plus code, with an inverse temperature sampling schedule starting at Ο„=0.7. Languages include:

  • High-resource: English (34.5%), Russian (5.8%), German (4.4%), Spanish (4.5%), French (4.0%), Chinese (5.2%)
  • Mid-resource: Italian, Portuguese, Japanese, Dutch, Polish, and 45 others
  • Scripts: Latin, Cyrillic, Arabic, Chinese, Japanese, Thai, and many more

πŸš€ Usage

For pre-training, see the ModernBERT repo: https://github.com/AnswerDotAI/ModernBERT

Direct Access

Use the script at this link to load any section of the dataset on the fly. This will fail if you try to access too many samples though, due to HF rate-limiting. To download the full dataset, use HF Hub's Snapshot Download.

Citation

@misc{marone2025mmbertmodernmultilingualencoder,
      title={mmBERT: A Modern Multilingual Encoder with Annealed Language Learning}, 
      author={Marc Marone and Orion Weller and William Fleshman and Eugene Yang and Dawn Lawrie and Benjamin Van Durme},
      year={2025},
      eprint={2509.06888},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2509.06888}, 
}

Contributors

orionweller

500 commits

nielsr

1 commits