birgermoell commited on
Commit
37efd5a
·
verified ·
1 Parent(s): 7874bed

Upload European defect repair SFT dataset v0.1

Browse files
.gitattributes CHANGED
@@ -58,3 +58,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ data/all.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ data/train.jsonl filter=lfs diff=lfs merge=lfs -text
63
+ metadata/all_metadata.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ pretty_name: OpenEuroLLM Defect Repair SFT v1
4
+ license: cc-by-sa-4.0
5
+ ---
6
+
7
+ # oellm-eu-defect-repair-sft-v1
8
+
9
+ Monolingual SFT repair data for European-language generation defects observed
10
+ after Qwen 2B/4B/9B post-training. This dataset is designed to repair
11
+ degeneration, repetition loops, short answers, morphology damage, and
12
+ Bulgarian/Russian language leakage.
13
+
14
+ ## Strict SFT Schema
15
+
16
+ Each row in `data/*.jsonl` uses exactly:
17
+
18
+ ```json
19
+ {"messages":[{"role":"user","content":"..."},{"role":"assistant","content":"..."}],"lang":"is"}
20
+ ```
21
+
22
+ Provenance, source URL, license, source id, quality statistics, and hashes are
23
+ kept in `metadata/all_metadata.jsonl`, `source_registry.json`,
24
+ `metadata/quality_report.json`, and `manifest.json`.
25
+
26
+ ## Source Policy
27
+
28
+ Version `v0.1.0` is built from native Wikipedia text via
29
+ `wikimedia/wikipedia` 2023-11-01 snapshots. Rows are not raw machine
30
+ translations. Prompt templates are short target-language instructions and
31
+ assistant turns are human-authored native article passages.
32
+
33
+ License: Wikimedia text is redistributed under CC-BY-SA terms, with attribution
34
+ and share-alike requirements. Keep the sidecar provenance files when using or
35
+ redistributing filtered subsets.
36
+
37
+ ## Counts
38
+
39
+ - `bg`: 2000
40
+ - `da`: 3000
41
+ - `et`: 8000
42
+ - `fi`: 1000
43
+ - `ga`: 8000
44
+ - `hr`: 3000
45
+ - `hu`: 3000
46
+ - `is`: 8000
47
+ - `lt`: 3000
48
+ - `lv`: 3000
49
+ - `mt`: 7352
50
+ - `pl`: 1000
51
+ - `ro`: 1000
52
+ - `sk`: 3000
53
+ - `sl`: 3000
54
+
55
+ Total strict SFT rows: `57352`.
56
+
57
+ ## Intended Use
58
+
59
+ Use as an upweighted repair shard in SFT:
60
+
61
+ - Tier 1 (`is`, `ga`, `mt`, `et`): high upweight for fluency and answer length.
62
+ - Tier 2 (`hr`, `sl`, `lt`, `lv`, `da`, `hu`, `sk`): medium upweight for loop repair.
63
+ - `bg`: anti-Russian leakage shard with Russian-marker filters.
64
+ - Tier 4 (`ro`, `pl`, `fi`): light touch-up.
65
+
66
+ Run `scripts/validate_defect_repair_sft.py --dataset-dir data/defect_repair/oellm-eu-defect-repair-sft-v1` before
67
+ packing to parquet or mixing into SFT.
data/all.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f00728ebb48932cb51bdb3eab3977cbd1afd608f8d27bb3cb400e8576e347c06
3
+ size 124077794
data/train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcb7394f8aac55831c829df6f182391305d64577fe868a632a49bae4fde5873e
3
+ size 121712262
data/validation.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
manifest.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "oellm-eu-defect-repair-sft-v1",
3
+ "version": "v0.1.0",
4
+ "schema": "chat_messages_strict_sft",
5
+ "created_by": "build_defect_repair_sft.py",
6
+ "total_rows": 57352,
7
+ "counts_by_split": {
8
+ "train": 56239,
9
+ "validation": 1113
10
+ },
11
+ "counts_by_language": {
12
+ "bg": 2000,
13
+ "da": 3000,
14
+ "et": 8000,
15
+ "fi": 1000,
16
+ "ga": 8000,
17
+ "hr": 3000,
18
+ "hu": 3000,
19
+ "is": 8000,
20
+ "lt": 3000,
21
+ "lv": 3000,
22
+ "mt": 7352,
23
+ "pl": 1000,
24
+ "ro": 1000,
25
+ "sk": 3000,
26
+ "sl": 3000
27
+ },
28
+ "target_counts_by_language": {
29
+ "is": 8000,
30
+ "ga": 8000,
31
+ "mt": 8000,
32
+ "et": 8000,
33
+ "hr": 3000,
34
+ "sl": 3000,
35
+ "lt": 3000,
36
+ "lv": 3000,
37
+ "da": 3000,
38
+ "hu": 3000,
39
+ "sk": 3000,
40
+ "bg": 2000,
41
+ "ro": 1000,
42
+ "pl": 1000,
43
+ "fi": 1000
44
+ },
45
+ "source_ids": [
46
+ "wikimedia_wikipedia_20231101"
47
+ ],
48
+ "license_categories": [
49
+ "sharealike"
50
+ ],
51
+ "strict_export_files": [
52
+ "data/train.jsonl",
53
+ "data/validation.jsonl",
54
+ "data/all.jsonl"
55
+ ],
56
+ "metadata_files": [
57
+ "metadata/all_metadata.jsonl",
58
+ "metadata/quality_report.json"
59
+ ]
60
+ }
metadata/all_metadata.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7da2e2d1dff27d17f952ea7e90c35b3b2eb00a2525d0d7fc5ce5988b41d7e09d
3
+ size 50798912
metadata/quality_report.json ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "oellm-eu-defect-repair-sft-v1",
3
+ "version": "v0.1.0",
4
+ "parameters": {
5
+ "min_assistant_words": 80,
6
+ "max_assistant_words": 400,
7
+ "validation_fraction": 0.02,
8
+ "target_scale": 1.0,
9
+ "source_scan_multiplier": 18,
10
+ "max_source_rows_per_language": null
11
+ },
12
+ "accepted_by_language": {
13
+ "bg": 2000,
14
+ "da": 3000,
15
+ "et": 8000,
16
+ "fi": 1000,
17
+ "ga": 8000,
18
+ "hr": 3000,
19
+ "hu": 3000,
20
+ "is": 8000,
21
+ "lt": 3000,
22
+ "lv": 3000,
23
+ "mt": 7352,
24
+ "pl": 1000,
25
+ "ro": 1000,
26
+ "sk": 3000,
27
+ "sl": 3000
28
+ },
29
+ "seen_articles_by_language": {
30
+ "bg": 1232,
31
+ "da": 3603,
32
+ "et": 12445,
33
+ "fi": 706,
34
+ "ga": 14202,
35
+ "hr": 3542,
36
+ "hu": 2287,
37
+ "is": 14809,
38
+ "lt": 3042,
39
+ "lv": 3463,
40
+ "mt": 5743,
41
+ "pl": 878,
42
+ "ro": 994,
43
+ "sk": 3197,
44
+ "sl": 4162
45
+ },
46
+ "rejections_by_language": {
47
+ "bg": {
48
+ "assistant_too_long": 31,
49
+ "bg_russian_marker": 13,
50
+ "no_usable_chunk": 60,
51
+ "repeated_4gram": 67,
52
+ "script_ratio_low": 8
53
+ },
54
+ "da": {
55
+ "assistant_too_long": 1,
56
+ "bad_title": 27,
57
+ "missing_native_marker_chars": 1,
58
+ "no_usable_chunk": 1441,
59
+ "repeated_4gram": 41
60
+ },
61
+ "et": {
62
+ "assistant_too_long": 13,
63
+ "bad_title": 16,
64
+ "missing_native_marker_chars": 5,
65
+ "no_usable_chunk": 6287,
66
+ "repeated_4gram": 235,
67
+ "script_ratio_low": 7
68
+ },
69
+ "fi": {
70
+ "no_usable_chunk": 100,
71
+ "repeated_4gram": 7
72
+ },
73
+ "ga": {
74
+ "assistant_too_long": 15,
75
+ "bad_title": 14,
76
+ "no_usable_chunk": 7723,
77
+ "repeated_4gram": 175
78
+ },
79
+ "hr": {
80
+ "assistant_too_long": 6,
81
+ "no_usable_chunk": 1481,
82
+ "repeated_4gram": 40
83
+ },
84
+ "hu": {
85
+ "assistant_too_long": 4,
86
+ "bad_title": 5,
87
+ "no_usable_chunk": 389,
88
+ "repeated_4gram": 77
89
+ },
90
+ "is": {
91
+ "assistant_too_long": 5,
92
+ "bad_title": 44,
93
+ "no_usable_chunk": 8491,
94
+ "repeated_4gram": 134,
95
+ "script_ratio_low": 1
96
+ },
97
+ "lt": {
98
+ "assistant_too_long": 39,
99
+ "no_usable_chunk": 796,
100
+ "repeated_4gram": 419,
101
+ "script_ratio_low": 1
102
+ },
103
+ "lv": {
104
+ "assistant_too_long": 3,
105
+ "no_usable_chunk": 1206,
106
+ "repeated_4gram": 69,
107
+ "script_ratio_low": 1
108
+ },
109
+ "mt": {
110
+ "assistant_too_long": 9,
111
+ "bad_title": 5,
112
+ "duplicate_answer": 6,
113
+ "missing_native_marker_chars": 9,
114
+ "no_usable_chunk": 1401,
115
+ "repeated_4gram": 509,
116
+ "script_ratio_low": 4
117
+ },
118
+ "pl": {
119
+ "assistant_too_long": 1,
120
+ "no_usable_chunk": 215,
121
+ "repeated_4gram": 29
122
+ },
123
+ "ro": {
124
+ "assistant_too_long": 1,
125
+ "bad_title": 1,
126
+ "no_usable_chunk": 328,
127
+ "repeated_4gram": 62
128
+ },
129
+ "sk": {
130
+ "assistant_too_long": 7,
131
+ "no_usable_chunk": 1199,
132
+ "repeated_4gram": 54,
133
+ "script_ratio_low": 1
134
+ },
135
+ "sl": {
136
+ "assistant_too_long": 21,
137
+ "bad_title": 9,
138
+ "missing_native_marker_chars": 1,
139
+ "no_usable_chunk": 2098,
140
+ "repeated_4gram": 47
141
+ }
142
+ },
143
+ "assistant_word_stats_by_language": {
144
+ "is": {
145
+ "min": 80,
146
+ "max": 400,
147
+ "mean": 244.5
148
+ },
149
+ "ga": {
150
+ "min": 80,
151
+ "max": 400,
152
+ "mean": 241.89
153
+ },
154
+ "mt": {
155
+ "min": 80,
156
+ "max": 400,
157
+ "mean": 290.21
158
+ },
159
+ "et": {
160
+ "min": 80,
161
+ "max": 400,
162
+ "mean": 267.78
163
+ },
164
+ "hr": {
165
+ "min": 80,
166
+ "max": 400,
167
+ "mean": 279.63
168
+ },
169
+ "sl": {
170
+ "min": 80,
171
+ "max": 400,
172
+ "mean": 273.7
173
+ },
174
+ "lt": {
175
+ "min": 80,
176
+ "max": 400,
177
+ "mean": 283.19
178
+ },
179
+ "lv": {
180
+ "min": 80,
181
+ "max": 400,
182
+ "mean": 269.66
183
+ },
184
+ "da": {
185
+ "min": 80,
186
+ "max": 400,
187
+ "mean": 274.98
188
+ },
189
+ "hu": {
190
+ "min": 80,
191
+ "max": 400,
192
+ "mean": 298.02
193
+ },
194
+ "sk": {
195
+ "min": 80,
196
+ "max": 400,
197
+ "mean": 285.24
198
+ },
199
+ "bg": {
200
+ "min": 80,
201
+ "max": 400,
202
+ "mean": 316.27
203
+ },
204
+ "ro": {
205
+ "min": 80,
206
+ "max": 400,
207
+ "mean": 299.79
208
+ },
209
+ "pl": {
210
+ "min": 80,
211
+ "max": 400,
212
+ "mean": 294.56
213
+ },
214
+ "fi": {
215
+ "min": 80,
216
+ "max": 400,
217
+ "mean": 322.23
218
+ }
219
+ },
220
+ "hard_filters": [
221
+ "assistant_80_to_400_words_by_default",
222
+ "no_4gram_repeated_more_than_3_times",
223
+ "target_script_ratio",
224
+ "language_marker_char_presence",
225
+ "bg_russian_marker_ban",
226
+ "url_ban"
227
+ ]
228
+ }
source_registry.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "wikimedia_wikipedia_20231101": {
3
+ "source_id": "wikimedia_wikipedia_20231101",
4
+ "name": "Wikimedia Wikipedia 2023-11-01 dumps",
5
+ "source_url": "https://huggingface.co/datasets/wikimedia/wikipedia",
6
+ "source_license": "CC-BY-SA-4.0 / GFDL under Wikimedia Terms of Use; verify imported-page attribution when needed",
7
+ "license_id": "cc-by-sa-4.0",
8
+ "license_category": "sharealike",
9
+ "license_filter_tags": [
10
+ "attribution_required",
11
+ "sharealike",
12
+ "native_wikipedia"
13
+ ],
14
+ "redistribution_status": "redistributable_sharealike"
15
+ }
16
+ }