CoolFace
Datasetpublic

epfml/FineWeb2-embedded

FineWeb2-embedded Dataset summary FineWeb2-embedded is an extension of the FineWeb2 dataset, annotated with document-level XLM-RoBERTa embeddings for 20 languages, making the dataset useful for a variety of tasks, including document clustering, filtering, and other multilingual research. Since XLM-RoBERTa has a sequence length limit of 512 tokens, each document's embeddings are obtained by mean-pooling 512 token chunks of the XLM-RoBERTa output. Therefore, longer… See the full description on the dataset page: https://huggingface.co/datasets/epfml/FineWeb2-embedded.

sourceHugging Faceodc-byupdated 2y agoView on Hugging Face
6likes26kdownloads
Dataset Card

FineWeb2-embedded

Dataset summary

FineWeb2-embedded is an extension of the **FineWeb2** dataset, annotated with document-level **XLM-RoBERTa** embeddings for 20 languages, making the dataset useful for a variety of tasks, including document clustering, filtering, and other multilingual research.

Since XLM-RoBERTa has a sequence length limit of 512 tokens, each document's embeddings are obtained by mean-pooling 512 token chunks of the XLM-RoBERTa output. Therefore, longer texts have more embeddings available (one per 512 tokens).

The embeddings were initially computed as part of our **FineWeb2-HQ** dataset (a high-quality subset of FineWeb2). However, we believe that they can be useful for other multilingual research and applications.

For more details, see our paper Enhancing Multilingual LLM Pretraining with Model-Based Data Selection.

Languages and subsets

Subset nameLanguage nameNumber of documentsDisk size
rus_CyrlRussian605,468,6155.3T
cmn_HaniChinese578,332,1294.4T
deu_LatnGerman427,700,3942.5T
spa_LatnSpanish405,634,3032.3T
jpn_JpanJapanese376,134,7452.4T
fra_LatnFrench332,646,7152.0T
ita_LatnItalian219,117,9211.3T
por_LatnPortuguese189,851,4491.1T
pol_LatnPolish138,337,436794G
nld_LatnDutch133,855,612720G
ind_LatnIndonesian92,992,647537G
tur_LatnTurkish88,769,907487G
ces_LatnCzech62,703,458390G
arb_ArabArabic57,752,149363G
fas_ArabPersian51,043,666322G
hun_LatnHungarian46,879,826328G
swe_LatnSwedish45,329,979261G
ell_GrekGreek44,202,550267G
dan_LatnDanish42,975,661262G
vie_LatnVietnamese40,741,340298G

We might consider adding new languages supported by the XLM-RoBERTa model to an upcoming version of the present dataset.

Dataset structure

Data fields

Each data entry includes the original FineWeb2 data fields with the addition of:

  • embeddings: array of float arrays containing 768-dimensional XLM-RoBERTa embeddings for every 512 token chunk of the tokenized text

Data instance

json
{
  "id": "<urn:uuid:f26003c7-6084-4791-b3fe-240eedc37e76>",
  "text": "Plutonium ist einer der gefährlichsten Stoffe der Welt. Es entsteht als hochgiftiges und radioaktives Nebenprodukt der Energiegewinnung in Atomkraftwerken. Wer nur ein Millionstel Gramm – ein kaum staubkorngroßes Teilchen – der Substanz einatmet, kann daran sterben. In der Natur kommt der Stoff nur in geringsten Mengen vor, wird aber künstlich hergestellt, weil man damit Bomben bauen kann. Je nach Reinheitsgrad reichen für eine Atombombe bereits fünf Kilogramm. Bis zum Beginn der achtziger Jahre des letzten Jahrhunderts hatten die Reaktoren weltweit bereits rund 300.000 Kilogramm erbrütet. Jährlich kommen etwa 20.000 Kilo hinzu. Genau dieser Stoff wird zu Land und zu Wasser um den ganzen Erdball herum transportiert. Legendär sind die Castor-Transporte, bei denen unter strengsten Sicherheitsvorkehrungen und entsprechenden Kosten abgebrannte Brennelemente aus deutschen Kernkraftwerken zur Wiederaufbereitung nach La Hague (Frankreich) oder Sellafield (Großbritannien) gebracht werden. Erst vergangenen Mai hat ein Frachter die größte Menge wiederaufbereiteten Mülls aller Zeiten von Frankreich nach Japan gebracht. Nicht auszudenken, was ein Unfall auf See bedeuten würde.",
  "date": "2014-03-16T08:53:38Z",
  "dump": "CC-MAIN-2014-10",
  "embeddings": [[ ... ]],
  "file_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-10/segments/1394678702159/warc/CC-MAIN-20140313024502-00039-ip-10-183-142-35.ec2.internal.warc.gz",
  "language": "deu",
  "language_score":  0.9983288645744324,
  "language_script": "Latn",
  "minhash_cluster_size": 2,
  "top_langs": {"deu_Latn_score": 0.9983288645744324},
  "url": "http://www.greenpeace.org/austria/de/themen/atom/probleme/atomtransporte/",
}

Usage

You can load the dataset in Python using datasets:

python
from datasets import load_dataset

dataset = load_dataset("epfml/FineWeb2-embedded", "deu_Latn")

Licensing information

Like FineWeb2, this dataset is released under Open Data Commons Attribution License (ODC-By) v1.0 license and is subject to CommonCrawl's Terms of Use.

Dataset origin

Being based on FineWeb2, this data covers websites over the 2013-2024 time period.

FineWeb2 is sourced from the internet at large, it is very likely that some personable identifiable information (PII) will be present, even if the FineWeb2 processing has already anonymized email addresses and public IP addresses. If you find your own PII and would like it removed, please fill out the FineWeb2 PII removal/opt out form.

CommonCrawl respects robots.txt at crawl time, but if you are a webmaster and find your website in FineWeb2 and would like to have it removed, you may also use the FineWeb2 PII removal/opt out form.

Considerations for Using the Data

For the aspects of social impact, discussion of biases, and known limitations, we also refer to the FineWeb2 documentation.

Citation information

If you use this dataset in your research or applications, please use the following citation:

@article{messmer2025multilingdatacomp,
  title={Enhancing Multilingual LLM Pretraining with Model-Based Data Selection}, 
  author={Bettina Messmer and Vinko Sabolčec and Martin Jaggi},
  journal={arXiv},
  year={2025},
  url={https://arxiv.org/abs/2502.10361}, 
}