mfromm commited on
Commit
f226774
·
verified ·
1 Parent(s): 9dd80fe

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +367 -0
README.md ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - text-ranking
4
+ pretty_name: FineWeb2-Edu-scores
5
+ size_categories:
6
+ - n>1T
7
+ language:
8
+ - sq
9
+ - bg
10
+ - ca
11
+ - cs
12
+ - da
13
+ - de
14
+ - es
15
+ - et
16
+ - el
17
+ - eu
18
+ - fi
19
+ - fr
20
+ - gl
21
+ - ga
22
+ - hr
23
+ - hu
24
+ - hy
25
+ - is
26
+ - it
27
+ - lv
28
+ - lt
29
+ - mk
30
+ - nl
31
+ - pl
32
+ - pt
33
+ - ro
34
+ - sl
35
+ - sk
36
+ - sr
37
+ - tr
38
+ - sv
39
+ - nb
40
+ - nn
41
+ configs:
42
+ - config_name: als_Latn
43
+ data_files:
44
+ - split: train
45
+ path: als_Latn/*
46
+ - config_name: bul_Cyrl
47
+ data_files:
48
+ - split: train
49
+ path: bul_Cyrl/*
50
+ - config_name: cat_Latn
51
+ data_files:
52
+ - split: train
53
+ path: cat_Latn/*
54
+ - config_name: ces_Latn
55
+ data_files:
56
+ - split: train
57
+ path: ces_Latn/*
58
+ - config_name: dan_Latn
59
+ data_files:
60
+ - split: train
61
+ path: dan_Latn/*
62
+ - config_name: deu_Latn
63
+ data_files:
64
+ - split: train
65
+ path: deu_Latn/*
66
+ - config_name: ekk_Latn
67
+ data_files:
68
+ - split: train
69
+ path: ekk_Latn/*
70
+ - config_name: ell_Grek
71
+ data_files:
72
+ - split: train
73
+ path: ell_Grek/*
74
+ - config_name: eus_Latn
75
+ data_files:
76
+ - split: train
77
+ path: eus_Latn/*
78
+ - config_name: fin_Latn
79
+ data_files:
80
+ - split: train
81
+ path: fin_Latn/*
82
+ - config_name: fra_Latn
83
+ data_files:
84
+ - split: train
85
+ path: fra_Latn/*
86
+ - config_name: gle_Latn
87
+ data_files:
88
+ - split: train
89
+ path: gle_Latn/*
90
+ - config_name: glg_Latn
91
+ data_files:
92
+ - split: train
93
+ path: glg_Latn/*
94
+ - config_name: hrv_Latn
95
+ data_files:
96
+ - split: train
97
+ path: hrv_Latn/*
98
+ - config_name: hun_Latn
99
+ data_files:
100
+ - split: train
101
+ path: hun_Latn/*
102
+ - config_name: hye_Armn
103
+ data_files:
104
+ - split: train
105
+ path: hye_Armn/*
106
+ - config_name: isl_Latn
107
+ data_files:
108
+ - split: train
109
+ path: isl_Latn/*
110
+ - config_name: ita_Latn
111
+ data_files:
112
+ - split: train
113
+ path: ita_Latn/*
114
+ - config_name: lit_Latn
115
+ data_files:
116
+ - split: train
117
+ path: lit_Latn/*
118
+ - config_name: lvs_Latn
119
+ data_files:
120
+ - split: train
121
+ path: lvs_Latn/*
122
+ - config_name: mkd_Cyrl
123
+ data_files:
124
+ - split: train
125
+ path: mkd_Cyrl/*
126
+ - config_name: nld_Latn
127
+ data_files:
128
+ - split: train
129
+ path: nld_Latn/*
130
+ - config_name: nno_Latn
131
+ data_files:
132
+ - split: train
133
+ path: nno_Latn/*
134
+ - config_name: nob_Latn
135
+ data_files:
136
+ - split: train
137
+ path: nob_Latn/*
138
+ - config_name: pol_Latn
139
+ data_files:
140
+ - split: train
141
+ path: pol_Latn/*
142
+ - config_name: por_Latn
143
+ data_files:
144
+ - split: train
145
+ path: por_Latn/*
146
+ - config_name: ron_Latn
147
+ data_files:
148
+ - split: train
149
+ path: ron_Latn/*
150
+ - config_name: slk_Latn
151
+ data_files:
152
+ - split: train
153
+ path: slk_Latn/*
154
+ - config_name: slv_Latn
155
+ data_files:
156
+ - split: train
157
+ path: slv_Latn/*
158
+ - config_name: spa_Latn
159
+ data_files:
160
+ - split: train
161
+ path: spa_Latn/*
162
+ - config_name: srp_Cyrl
163
+ data_files:
164
+ - split: train
165
+ path: srp_Cyrl/*
166
+ - config_name: srp_Latn
167
+ data_files:
168
+ - split: train
169
+ path: srp_Latn/*
170
+ - config_name: swe_Latn
171
+ data_files:
172
+ - split: train
173
+ path: swe_Latn/*
174
+ - config_name: tur_Latn
175
+ data_files:
176
+ - split: train
177
+ path: tur_Latn/*
178
+ - config_name: ukr_Cyrl
179
+ data_files:
180
+ - split: train
181
+ path: ukr_Cyrl/*
182
+
183
+
184
+
185
+
186
+
187
+ ---
188
+
189
+ # Fineweb2-Edu-scores
190
+
191
+ ## Dataset summary
192
+
193
+ Fineweb2-Edu-scores is a **model-annotated** language subset of [**FineWeb2**](https://huggingface.co/datasets/HuggingFaceFW/fineweb-2), spanning **36 languages**.
194
+ Our model-annotations allow for a filtering that achieves higher-quality training outcomes without excessively aggressive data reduction.
195
+ The original FW2 heuristic filtering method serves as our baseline, providing reference points for both the volume of retained tokens and downstream model performance.
196
+ For example, in the Spanish language case, applying the 0.6 threshold retains over 9% more tokens than FW2 while still surpassing its quality .
197
+
198
+ Fineweb2-Edu-scores was created based on scores assigned by a deep learning classifier trained to identify **educational samples** using [**Snowflake's Arctic-embed-m-v2.0**](https://huggingface.co/Snowflake/snowflake-arctic-embed-m-v2.0) embeddings.
199
+
200
+ For all training ablations, we used dense decoder-only models with **2 billion parameters**, following the LLaMA architecture.
201
+ For more details, see our paper [https://arxiv.org/abs/2505.22232](https://arxiv.org/abs/2505.22232).
202
+
203
+ ## Key features
204
+
205
+ - **Model Annotations**: All documents annotations are available for an individual filtering based on the use-case.
206
+ - **Multilingual coverage**: 36 languages, ensuring diverse linguistic representation
207
+ - **Model-based filtering**: Uses an Snowflake's Arctic-embed-m-v2.0 embedding-based classifier to score documents
208
+ - **Enhanced benchmark performance**: Surpasses FineWeb2 benchmark performance by retaining more tokens than FW2 filtered
209
+
210
+ ## Languages and subsets
211
+
212
+ | Subset name | Language name | Number of documents | Disk size |
213
+ |---------------------|-------------------------|---------------------|------------|
214
+ | als_Latn | Tosk Albanian | 8,597,826 | 18.18GB |
215
+ | als_Latn_removed | Tosk Albanian | 4,055,619 | 12.60GB |
216
+ | bul_Cyrl | Bulgarian | 25,994,731 | 145.75GB |
217
+ | bul_Cyrl_removed | Bulgarian | 31,046,392 | 122.45GB |
218
+ | cat_Latn | Catalan | 17,136,414 | 40.35GB |
219
+ | cat_Latn_removed | Catalan | 20,738,135 | 41.77GB |
220
+ | ces_Latn | Czech | 66,067,904 | 206.33GB |
221
+ | ces_Latn_removed | Czech | 111,866,555 | 342.34GB |
222
+ | dan_Latn | Danish | 45,391,655 | 150.72GB |
223
+ | dan_Latn_removed | Danish | 77,463,538 | 170.06GB |
224
+ | deu_Latn | German | 495,964,485 | 1.51TB |
225
+ | deu_Latn_removed | German | 251,288,231 | 1.16TB |
226
+ | ekk_Latn | Standard Estonian | 10,218,587 | 40.82GB |
227
+ | ekk_Latn_removed | Standard Estonian | 24,279,355 | 38.99GB |
228
+ | ell_Grek | Modern Greek (1453-) | 47,421,073 | 222.05GB |
229
+ | ell_Grek_removed | Modern Greek (1453-) | 74,145,599 | 288.18GB |
230
+ | eus_Latn | Basque | 1,569,434 | 4.30GB |
231
+ | eus_Latn_removed | Basque | 3,938,920 | 7.14GB |
232
+ | fin_Latn | Finnish | 36,710,816 | 143.03GB |
233
+ | fin_Latn_removed | Finnish | 59,179,814 | 146.83GB |
234
+ | fra_Latn | French | 360,058,973 | 1.11TB |
235
+ | fra_Latn_removed | French | 363,004,462 | 1.40TB |
236
+ | gle_Latn | Irish | 646,842 | 2.17GB |
237
+ | gle_Latn_removed | Irish | 940,321 | 2.30GB |
238
+ | glg_Latn | Galician | 2,522,814 | 6.47GB |
239
+ | glg_Latn_removed | Galician | 65,751,416 | 106.33GB |
240
+ | hrv_Latn | Croatian | 6,195,824 | 35.91GB |
241
+ | hrv_Latn_removed | Croatian | 16,193,327 | 101.31GB |
242
+ | hun_Latn | Hungarian | 49,935,986 | 199.69GB |
243
+ | hun_Latn_removed | Hungarian | 62,629,587 | 197.69GB |
244
+ | hye_Armn | Armenian | 1,757,415 | 7.17GB |
245
+ | hye_Armn_removed | Armenian | 6,931,484 | 26.40GB |
246
+ | isl_Latn | Icelandic | 3,014,429 | 10.27GB |
247
+ | isl_Latn_removed | Icelandic | 3,676,854 | 8.46GB |
248
+ | ita_Latn | Italian | 238,984,437 | 739.24GB |
249
+ | ita_Latn_removed | Italian | 177,205,688 | 571.08GB |
250
+ | lit_Latn | Lithuanian | 13,471,965 | 56.50GB |
251
+ | lit_Latn_removed | Lithuanian | 25,435,580 | 56.63GB |
252
+ | lvs_Latn | Standard Latvian | 8,030,316 | 33.36GB |
253
+ | lvs_Latn_removed | Standard Latvian | 22,341,102 | 36.85GB |
254
+ | mkd_Cyrl | Macedonian | 4,150,902 | 14.99GB |
255
+ | mkd_Cyrl_removed | Macedonian | 3,118,895 | 13.18GB |
256
+ | mlt_Latn | Maltese | 489,190 | 1.53GB |
257
+ | mlt_Latn_removed | Maltese | 9,208,704 | 10.80GB |
258
+ | nld_Latn | Dutch | 147,301,270 | 397.51GB |
259
+ | nld_Latn_removed | Dutch | 218,945,327 | 529.40GB |
260
+ | nno_Latn | Norwegian Nynorsk | 1,214,870 | 2.68GB |
261
+ | nno_Latn_removed | Norwegian Nynorsk | 6,239,864 | 6.03GB |
262
+ | nob_Latn | Norwegian Bokmål | 38,144,343 | 172.05GB |
263
+ | nob_Latn_removed | Norwegian Bokmål | 36,686,953 | 107.45GB |
264
+ | pol_Latn | Polish | 151,966,724 | 432.01GB |
265
+ | pol_Latn_removed | Polish | 222,490,734 | 579.65GB |
266
+ | por_Latn | Portuguese | 199,737,979 | 569.24GB |
267
+ | por_Latn_removed | Portuguese | 285,961,147 | 813.17GB |
268
+ | ron_Latn | Romanian | 58,303,671 | 186.19GB |
269
+ | ron_Latn_removed | Romanian | 53,772,396 | 171.60GB |
270
+ | slk_Latn | Slovak | 29,991,521 | 85.43GB |
271
+ | slk_Latn_removed | Slovak | 27,271,017 | 97.69GB |
272
+ | slv_Latn | Slovenian | 12,059,130 | 41.80GB |
273
+ | slv_Latn_removed | Slovenian | 15,624,142 | 42.99GB |
274
+ | spa_Latn | Spanish | 441,287,261 | 1.32TB |
275
+ | spa_Latn_removed | Spanish | 431,159,798 | 1.45TB |
276
+ | srp_Cyrl | Serbian | 4,146,124 | 26.87GB |
277
+ | srp_Cyrl_removed | Serbian | 4,120,140 | 21.06GB |
278
+ | srp_Latn | Serbian | 586,381 | 2.08GB |
279
+ | srp_Latn_removed | Serbian | 593,557 | 1.75GB |
280
+ | swe_Latn | Swedish | 59,485,306 | 202.96GB |
281
+ | swe_Latn_removed | Swedish | 108,352,247 | 314.07GB |
282
+ | tur_Latn | Turkish | 95,129,129 | 284.52GB |
283
+ | tur_Latn_removed | Turkish | 101,406,881 | 317.33GB |
284
+ | ukr_Cyrl | Ukrainian | 53,101,726 | 254.86GB |
285
+ | ukr_Cyrl_removed | Ukrainian | 51,960,229 | 212.79GB |
286
+
287
+
288
+ The approach as described in the paper is easy to extend to other languages as well, and we might consider adding new languages to an upcoming version of the present dataset.
289
+
290
+ We also separately release the computed general-purpose embedding vectors for the the full sets of the original FineWeb2 dataset, in the respective languages, as they can be useful for other applications beyond quality filtering: [FineWeb2-embeddings](https://huggingface.co/datasets/JQL-AI/fw2_embeddings).
291
+
292
+ # Dataset Structure
293
+
294
+ ## Data Fields
295
+ Each data entry includes the original [FineWeb2 data fields](https://huggingface.co/datasets/HuggingFaceFW/fineweb-2#data-fields) with the addition of:
296
+ - `score_Gemma_Snowflake`: Quality score obtained by the Gemma-based Snowflake classifier
297
+ - `score_Llama_Snowflake`: Quality score obtained by the Llama-based Snowflake classifier
298
+ - `score_Mistral_Snowflake`: Quality score obtained by the Mistral-based Snowflake classifier
299
+ - `embeddings`: Stored in a separate HDF5 file, containing [**Snowflake's Arctic-embed-m-v2.0**](https://huggingface.co/Snowflake/snowflake-arctic-embed-m-v2.0) embeddings.
300
+
301
+ ## Data Instance
302
+ ```json
303
+ {
304
+ "id": "0",
305
+ "file_path": "/leonardo_scratch/large/userexternal/mfromm00/data/raw_data/fineweb2/output/embeddings/als_Latn/als_Latn/filtered/000_000_00000.jsonl.h5",
306
+ "document_id": "29d82196d55803ab9c792e45b59919bf_0",
307
+ "source_filename": "als_Latn/als_Latn/filtered/000_000_00000.jsonl.h5",
308
+ "score_Gemma_Snowflake": 0.330078125,
309
+ "score_Llama_Snowflake": -0.34765625,
310
+ "score_Mistral_Snowflake": -0.390625
311
+ }
312
+ ```
313
+
314
+ ## Usage
315
+
316
+ You can load the dataset in Python using `datasets`:
317
+
318
+ ```python
319
+ from datasets import load_dataset
320
+
321
+ dataset = load_dataset("JQL-AI/fw2_edu_scores", "deu_Latn")
322
+ ```
323
+
324
+
325
+ ## Origin of the Dataset
326
+
327
+ This dataset, derived from FineWeb2, includes web content collected from 2013 to 2024. As FineWeb2 is sourced from the broader internet, it may contain some personally identifiable information (PII), despite efforts to anonymize email addresses and public IP addresses during processing. If you discover your own PII in the dataset and wish to have it removed, please complete the FineWeb2 PII Removal/Opt-Out Form.
328
+
329
+ Webmasters who find their website included in FineWeb2 and want it removed can also use the [FineWeb2 PII removal/opt out form](https://forms.gle/VyNT3ZAUPZjPuWp39).. Note that CommonCrawl adheres to robots.txt during crawling.
330
+
331
+
332
+ ## Considerations for Data Usage
333
+
334
+ For information on social impact, potential biases, and known limitations, please refer to the [FineWeb2 documentation](https://huggingface.co/datasets/HuggingFaceFW/fineweb-2).
335
+
336
+
337
+ ## Citation information
338
+ If you use this dataset in your research or applications, please use the following citation:
339
+ ```
340
+ @article{ali2025judging,
341
+ title = {Judging Quality Across Languages: A Multilingual Approach to Pretraining Data Filtering with Language Models},
342
+ author = {
343
+ Mehdi Ali,
344
+ Manuel Brack,
345
+ Max Lübbering,
346
+ Elias Wendt,
347
+ Abbas Goher Khan,
348
+ Richard Rutmann,
349
+ Alex Jude,
350
+ Maurice Kraus,
351
+ Alexander Arno Weber,
352
+ Felix Stollenwerk,
353
+ David Kaczér,
354
+ Florian Mai,
355
+ Lucie Flek,
356
+ Rafet Sifa,
357
+ Nicolas Flores-Herr,
358
+ Joachim Köhler,
359
+ Patrick Schramowski,
360
+ Michael Fromm,
361
+ Kristian Kersting
362
+ },
363
+ year = {2025},
364
+ journal = {arXiv preprint arXiv:2505:22232}
365
+ }
366
+
367
+ ```