sagheerlabs commited on
Commit
62019a8
·
verified ·
1 Parent(s): 308e781

5GB: update README for sharded parquet 50M

Browse files
Files changed (1) hide show
  1. README.md +12 -27
README.md CHANGED
@@ -7,7 +7,7 @@ language:
7
  - en
8
  pretty_name: Arithmetic-Reasoning
9
  size_categories:
10
- - 100K<n<1M
11
  tags:
12
  - math
13
  - reasoning
@@ -19,11 +19,11 @@ configs:
19
  - config_name: default
20
  data_files:
21
  - split: train
22
- path: parquet/train.parquet
23
  - split: validation
24
- path: parquet/val.parquet
25
  - split: test
26
- path: parquet/test.parquet
27
  ---
28
 
29
  ![Banner](best_3440x1440.png)
@@ -32,7 +32,7 @@ configs:
32
 
33
  > A high-quality synthetic arithmetic and elementary mathematics reasoning dataset for training and evaluating small language models - not an "ultimate math" claim, but a clean, verified, tiered reasoning dataset where every answer is programmatically checked.
34
 
35
- This dataset was built to train **100M-ish models** that benefit disproportionately from clean, unambiguous examples. At 150K examples (135K train / 7.5K val / 7.5K test) it is designed as a *reasoning* dataset: every sample has an instruction, a step-by-step reasoning trace, and a final answer, all verified to be mathematically correct.
36
 
37
  ### Why this dataset?
38
 
@@ -56,7 +56,7 @@ We cover 18+ operation families. Each `instruction` is sampled from 20+ phrasing
56
  | 10 | **Geometry** | `What is the area of a rectangle 884 by 752?` | `884*752=664768` | `664768` |
57
  | | *+ 8 more:* `ratios, powers/roots, decimals, halving/doubling, sequences, multi-step, hard arithmetic, quantitative reasoning` - see `operation` field for full list. | | | |
58
 
59
- Full per-operation counts in `150K`:
60
  `word problems 13.6% | multi-step 10.7% | ratios 9.7% | hard arithmetic 5.7% | algebra 7.4% | fractions 4.6% | sequences 5.3% | geometry 5.1% | ...` (see `Per-operation` in generation log)
61
 
62
 
@@ -80,27 +80,12 @@ from huggingface_hub import snapshot_download
80
  snapshot_download("SagheerLab/Arithmetic-Reasoning", repo_type="dataset", local_dir="./arithmetic-reasoning")
81
  ```
82
 
83
- Both `JSON` and `Parquet` are provided (`parquet/train.parquet` + `json/train.json`) - parquet is the default Viewer config, JSON via `data_files` as below.
84
 
85
- ```python
86
- # Parquet (default) - 12.6 MB
87
- from datasets import load_dataset
88
- ds = load_dataset("SagheerLab/Arithmetic-Reasoning") # loads parquet/train.parquet
89
-
90
- # JSON - 42 MB - JSON Lines, load via json builder
91
- from datasets import load_dataset
92
- ds_json = load_dataset("SagheerLab/Arithmetic-Reasoning", data_files={
93
- "train": "json/train.json",
94
- "validation": "json/val.json",
95
- "test": "json/test.json"
96
- })
97
- # or directly: load_dataset("json", data_files="hf://datasets/SagheerLab/Arithmetic-Reasoning/json/train.json")
98
- ```
99
 
100
 
101
  # Dataset Summary
102
 
103
- - **Size:** 150,000 examples (135K train / 7.5K val / 7.5K test), 100% programmatically verified
104
  - **Generation:** deterministic `src/generate_data_v4.py` with `NAMES 120 + OBJECTS 150 + VERBS 100` for lexical variation, de-duplicated (<1% dupes)
105
  - **Tiers:** `easy 30% (1-2 digits, 1 step) | intermediate 35% (3-4 digits, 2-3 steps) | hard 25% (5-6 digits, 3-8 steps) | very hard 10% (competition/GSM8K-style)`
106
  - **License:** Apache 2.0 - see [Licensing](#licensing-information)
@@ -134,11 +119,11 @@ ds_json = load_dataset("SagheerLab/Arithmetic-Reasoning", data_files={
134
  ### Data Splits
135
  | Split | Size | Path |
136
  |-------|------|------|
137
- | train | 135,000 | `parquet/train.parquet` + `json/train.json` |
138
- | validation | 7,500 | `parquet/val.parquet` + `json/val.json` |
139
- | test | 7,500 | `parquet/test.parquet` + `json/test.json` |
140
 
141
- All splits are IID from same generator, `seed 42`, `balanced-sizes`, `max_digits 6`.
142
 
143
  # Dataset Creation
144
 
@@ -164,7 +149,7 @@ Generation uses:
164
  # else drop & regenerate (seen set ensures <1% dupes)
165
  ```
166
  3. Deduplicate `instruction` strings via `seen` set
167
- 4. Shuffle and split 90/5/5, write `JSONL` + `Parquet`, copy `best_3440x1440.png` banner
168
 
169
  ### Personal and Sensitive Information
170
  None - all synthetic. Names are sampled from common first names, no real PII.
 
7
  - en
8
  pretty_name: Arithmetic-Reasoning
9
  size_categories:
10
+ - 10M<n<100M
11
  tags:
12
  - math
13
  - reasoning
 
19
  - config_name: default
20
  data_files:
21
  - split: train
22
+ path: parquet/train-*.parquet
23
  - split: validation
24
+ path: parquet/validation-*.parquet
25
  - split: test
26
+ path: parquet/test-*.parquet
27
  ---
28
 
29
  ![Banner](best_3440x1440.png)
 
32
 
33
  > A high-quality synthetic arithmetic and elementary mathematics reasoning dataset for training and evaluating small language models - not an "ultimate math" claim, but a clean, verified, tiered reasoning dataset where every answer is programmatically checked.
34
 
35
+ This dataset was built to train **100M-ish models** that benefit disproportionately from clean, unambiguous examples. At ~50M examples (~45M train / 2.5M val / 2.5M test, ~5GB parquet) it is designed as a *reasoning* dataset: every sample has an instruction, a step-by-step reasoning trace, and a final answer, all verified to be mathematically correct.
36
 
37
  ### Why this dataset?
38
 
 
56
  | 10 | **Geometry** | `What is the area of a rectangle 884 by 752?` | `884*752=664768` | `664768` |
57
  | | *+ 8 more:* `ratios, powers/roots, decimals, halving/doubling, sequences, multi-step, hard arithmetic, quantitative reasoning` - see `operation` field for full list. | | | |
58
 
59
+ Full per-operation counts in `50M`:
60
  `word problems 13.6% | multi-step 10.7% | ratios 9.7% | hard arithmetic 5.7% | algebra 7.4% | fractions 4.6% | sequences 5.3% | geometry 5.1% | ...` (see `Per-operation` in generation log)
61
 
62
 
 
80
  snapshot_download("SagheerLab/Arithmetic-Reasoning", repo_type="dataset", local_dir="./arithmetic-reasoning")
81
  ```
82
 
 
83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
 
85
 
86
  # Dataset Summary
87
 
88
+ - **Size:** ~50M examples (~45M train / 2.5M val / 2.5M test, ~5GB parquet), 100% programmatically verified
89
  - **Generation:** deterministic `src/generate_data_v4.py` with `NAMES 120 + OBJECTS 150 + VERBS 100` for lexical variation, de-duplicated (<1% dupes)
90
  - **Tiers:** `easy 30% (1-2 digits, 1 step) | intermediate 35% (3-4 digits, 2-3 steps) | hard 25% (5-6 digits, 3-8 steps) | very hard 10% (competition/GSM8K-style)`
91
  - **License:** Apache 2.0 - see [Licensing](#licensing-information)
 
119
  ### Data Splits
120
  | Split | Size | Path |
121
  |-------|------|------|
122
+ | train | ~45M | `parquet/train-*.parquet` (sharded, ~4.5GB) |
123
+ | validation | ~2.5M | `parquet/validation-*.parquet` |
124
+ | test | ~2.5M | `parquet/test-*.parquet` |
125
 
126
+ All splits are IID from same generator, `seed 42`, `balanced-sizes`, `max_digits 6`, sharded for Viewer (`row_group_size=10000`, `write_page_index=True`).
127
 
128
  # Dataset Creation
129
 
 
149
  # else drop & regenerate (seen set ensures <1% dupes)
150
  ```
151
  3. Deduplicate `instruction` strings via `seen` set
152
+ 4. Shuffle and split 90/5/5, write `Parquet` shards (`row_group_size=10000`, `write_page_index=True`), copy `best_3440x1440.png` banner
153
 
154
  ### Personal and Sensitive Information
155
  None - all synthetic. Names are sampled from common first names, no real PII.