Yxanul commited on
Commit
b7f237c
·
verified ·
1 Parent(s): 6671dce

Mephisto-MathCode: 2M rows (1M Code + 1M Math, no_think), English-filtered and globally shuffled

Browse files
.gitattributes CHANGED
@@ -58,3 +58,23 @@ 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/train_000.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ data/train_001.jsonl filter=lfs diff=lfs merge=lfs -text
63
+ data/train_002.jsonl filter=lfs diff=lfs merge=lfs -text
64
+ data/train_003.jsonl filter=lfs diff=lfs merge=lfs -text
65
+ data/train_004.jsonl filter=lfs diff=lfs merge=lfs -text
66
+ data/train_005.jsonl filter=lfs diff=lfs merge=lfs -text
67
+ data/train_006.jsonl filter=lfs diff=lfs merge=lfs -text
68
+ data/train_007.jsonl filter=lfs diff=lfs merge=lfs -text
69
+ data/train_008.jsonl filter=lfs diff=lfs merge=lfs -text
70
+ data/train_009.jsonl filter=lfs diff=lfs merge=lfs -text
71
+ data/train_010.jsonl filter=lfs diff=lfs merge=lfs -text
72
+ data/train_011.jsonl filter=lfs diff=lfs merge=lfs -text
73
+ data/train_012.jsonl filter=lfs diff=lfs merge=lfs -text
74
+ data/train_013.jsonl filter=lfs diff=lfs merge=lfs -text
75
+ data/train_014.jsonl filter=lfs diff=lfs merge=lfs -text
76
+ data/train_015.jsonl filter=lfs diff=lfs merge=lfs -text
77
+ data/train_016.jsonl filter=lfs diff=lfs merge=lfs -text
78
+ data/train_017.jsonl filter=lfs diff=lfs merge=lfs -text
79
+ data/train_018.jsonl filter=lfs diff=lfs merge=lfs -text
80
+ data/train_019.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - text-generation
7
+ tags:
8
+ - sft
9
+ - math
10
+ - code
11
+ - reasoning
12
+ - shuffled
13
+ size_categories:
14
+ - 1M<n<10M
15
+ configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: train
19
+ path: data/train_*.jsonl
20
+ ---
21
+
22
+ # Mephisto-MathCode_2M
23
+
24
+ **2,000,000** non-thinking SFT examples — an even 1M/1M split of math and code
25
+ — drawn from
26
+ [openbmb/UltraData-SFT-2605](https://huggingface.co/datasets/openbmb/UltraData-SFT-2605),
27
+ filtered to English and globally shuffled.
28
+
29
+ This is a **curation** pass, not a generation one: no model produced these
30
+ answers for this dataset. All credit for the content belongs to OpenBMB. What
31
+ is added here is language filtering, an exact 1M/1M balance, and a global
32
+ shuffle so the file can be streamed without a shuffle buffer.
33
+
34
+ | `domain` | rows |
35
+ |---|---:|
36
+ | `Code` | 1,000,000 |
37
+ | `Math` | 1,000,000 |
38
+
39
+ Source config/split: `Code/no_think` and `Math/no_think`.
40
+
41
+ ## Format
42
+
43
+ ```json
44
+ {
45
+ "uid": "...",
46
+ "messages": [
47
+ {"role": "user", "content": "..."},
48
+ {"role": "assistant", "content": "..."}
49
+ ],
50
+ "source": "UltraData-sft-2605",
51
+ "domain": "Code",
52
+ "think_type": "no_think"
53
+ }
54
+ ```
55
+
56
+ The source schema is preserved unchanged. Every row is exactly two turns
57
+ (`user`, `assistant`) and `think_type` is `no_think` throughout — responses are
58
+ direct answers with **no chain-of-thought block**, though math answers do show
59
+ their working as ordinary prose/LaTeX.
60
+
61
+ `domain` distinguishes the two halves, and `uid` maps back to the source row.
62
+
63
+ ## Filtering
64
+
65
+ Only one filter was applied: **Chinese removal**. Rows whose prompt or answer
66
+ is more than 5% CJK characters were dropped.
67
+
68
+ | | scanned | kept | dropped (CJK) |
69
+ |---|---:|---:|---:|
70
+ | Code | 1,000,171 | 1,000,000 | 171 (0.017%) |
71
+ | Math | 1,000,154 | 1,000,000 | 154 (0.015%) |
72
+
73
+ Verified by re-running the filter over the output: 0 CJK rows and 0 duplicate
74
+ `uid`s remained. **No quality, length, or degeneracy filtering was performed** —
75
+ inspect before training.
76
+
77
+ ## Shuffling
78
+
79
+ Shuffled globally across both halves with a seeded Fisher–Yates permutation
80
+ (ChaCha8, seed 42), so every shard and every prefix is representative:
81
+
82
+ | | Code | Math |
83
+ |---|---:|---:|
84
+ | shard 000 | 50.4% | 49.6% |
85
+ | shard 019 | 49.2% | 50.8% |
86
+
87
+ `take(n)` on a streaming load gives an unbiased, balanced sample without an
88
+ extra shuffle buffer.
89
+
90
+ The shuffle was done with a small memory-mapped Rust tool that permutes an
91
+ index of `(file_id, offset, length)` — 16 bytes per row, so 2M rows cost 32 MB
92
+ of RAM regardless of the 10 GB of text behind them, and line bytes go straight
93
+ from mmap to the output without ever entering the process heap. This matters
94
+ if you want to re-shuffle it yourself on a modest machine.
95
+
96
+ ## Caveats
97
+
98
+ - Unfiltered for quality. The source is broadly good but nothing here has been
99
+ checked for correctness, degeneracy, or answer length.
100
+ - Math rows are long (the 1M math rows are ~7.1 GB vs ~2.7 GB for 1M code
101
+ rows), so a token-balanced mix is **not** 50/50 by row count.
102
+ - English-only by construction; the source split is bilingual.
103
+ - No deduplication beyond exact `uid` collisions.
104
+
105
+ ## Provenance and license
106
+
107
+ All content from `openbmb/UltraData-SFT-2605` (Apache-2.0); see the source
108
+ dataset for its terms. Released under Apache-2.0.
data/train_000.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1cd9c3e2d35b202264200387db61dc5810a17ac3270f4ec3afa392688c540ae
3
+ size 529943388
data/train_001.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7dcab545e60be456095340e4fce80ad6fcd94ebf895f2cca4aec32f7f6631e12
3
+ size 525704829
data/train_002.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f85558e0fcb9577958aedf95333331fabfea5efb70b3d9ed02d0aa39d870088
3
+ size 524994580
data/train_003.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b2212f7c1622e491c9205388669966dc2a1c239895a71821ffb412bfc99ddd2
3
+ size 517858943
data/train_004.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cee2615a62b044f26d0205a9ca7e65fdac8835ead54ccdc651e109d7fcd2273e
3
+ size 526399656
data/train_005.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2159f27f265d7c0ab81b6388c00ff6a4f8ee2ae450fe298bb7b927ccfdfd69d
3
+ size 519353903
data/train_006.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:313e0a12e3ec9e7a5633d35ed8c85c49b33ddffc46d5e43d37ffcf7dce174bea
3
+ size 524190903
data/train_007.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5bb44428420bd63e8a33a872bc539c5296a198634a5b75dc7d1f23209e5c6f0e
3
+ size 518750265
data/train_008.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c208c52fe0eb3c3c99f034a3a7fccd77b42e03d3af3bb833c5050a0646bc514
3
+ size 526335774
data/train_009.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8190f23a97977e6c1b616b359d14aa96668e5f1a07ab12da58bdf5c4781de11
3
+ size 527995533
data/train_010.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:147e04b545d15b5877738136192c74b26eeb7590d81114b8a1edcdb9976ecba6
3
+ size 528271176
data/train_011.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:190a6eb3eadefbcd1e194cea10f8216e2f90b2327794770dd709d6e72305aeea
3
+ size 522933165
data/train_012.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:055ddcd977b5381b7e2d183ea9d7be2daf21f1b3d7fe5afdba99a357164ae74b
3
+ size 525128377
data/train_013.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d163de5fe8e32d1a6e606cf5f0e1d2fccfd06156e6356b6aa140d4dd2984a93
3
+ size 526871496
data/train_014.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7acca022c7c1f0ea0797bb1a691d71b8958558eadfd5b0a8ba84d58ca89321d7
3
+ size 526431146
data/train_015.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:898c03b5259243e975bb29fd1377de38fc047b1791aeab77daa98bdc59d95693
3
+ size 522184098
data/train_016.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc5d4a45fa158c3c340c0bfae41e709d6c0b9f147b287b9416c93da19dcdcd2c
3
+ size 530271594
data/train_017.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5c06e85a1296ea51cfe09c6e774b95e836f60bdd283bf626b116064eda32edc
3
+ size 529867971
data/train_018.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a299aa006a4ce35d00fe0ee4af0f69a3ffcf81be8dff81b8f173cbe0523d721
3
+ size 521550367
data/train_019.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f643e98886a68cd913e6e3c6d1bc31511e097c58f94409041467943cbbd3fb6
3
+ size 525808553