Datasets:
File size: 4,281 Bytes
305a35b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | ---
license: cc0-1.0
language:
- en
task_categories:
- text-generation
- question-answering
tags:
- arithmetic
- addition
- synthetic
- tiny-model
- math
pretty_name: Tiny Addition Dataset for 1M Models
size_categories:
- 10K<n<100K
---
# Tiny Addition Dataset for 1M Models
BROOOOOOOOOOOOOO ππππ
A tiny synthetic arithmetic dataset designed for training or fine-tuning very small language models around **1M parameters** on basic addition patterns.
The dataset focuses on simple additions such as:
```text
1+1=2
5+5=10
12+8=20
```
It is intentionally narrow, repetitive, and clean so that small models can learn the task without needing a large vocabulary or complex reasoning corpus.
## Dataset Summary
This dataset contains short instruction-response examples for basic addition from **0 to 20**.
It includes multiple prompt styles:
- direct equation format
- question-answer format
- instruction format
- short explanation format
Example:
```json
{"text":"### Instruction:\nWhat is 5+5?\n\n### Response:\n10"}
```
## Files
| File | Description |
|---|---|
| `train.jsonl` | Training split with 12,000 examples |
| `validation.jsonl` | Validation split with 1,200 examples |
| `README.md` | Dataset card and documentation |
## Dataset Structure
Each row is a JSON object with a single `text` field.
```json
{
"text": "### Instruction:\n1+1=\n\n### Response:\n2"
}
```
## Example Rows
```json
{"text":"### Instruction:\n1+1=\n\n### Response:\n2"}
{"text":"### Instruction:\nWhat is 5+5?\n\n### Response:\n10"}
{"text":"### Instruction:\nExplain 2+3.\n\n### Response:\n2+3 means start with 2 and add 3. The answer is 5."}
```
## Intended Use
This dataset is intended for:
- toy language model training
- tiny transformer experiments
- testing arithmetic pattern learning
- quick fine-tuning experiments
- educational ML demos
- small-scale instruction tuning
Recommended model scale:
| Model Size | Expected Result |
|---:|---|
| ~1M parameters | Can learn narrow addition patterns |
| ~10M parameters | More stable and less fragile |
| ~30M parameters | Better generalization on simple arithmetic formats |
## Recommended Training Setup
For a very small model, keep the setup simple:
```text
context_length: 64 or 128
vocab_size: small tokenizer preferred
task: causal language modeling
epochs: 3 to 10
learning_rate: 1e-4 to 5e-4
batch_size: as large as your GPU/CPU allows
```
A 1M parameter model should train on this dataset as a narrow pattern-learning task, not as a general math reasoning model.
## Limitations
This dataset is extremely small and narrow.
It does **not** teach:
- advanced arithmetic
- subtraction
- multiplication
- division
- multi-step reasoning
- word problems
- robust out-of-distribution math
The model may memorize patterns instead of learning true arithmetic. That is expected for tiny models.
## Biases and Risks
The dataset is synthetic and contains only basic arithmetic examples. It has very low social or demographic bias risk, but it can create overconfidence if used to claim that a model has broad mathematical reasoning ability.
## Data Generation
The dataset was generated synthetically using Python.
Numbers were sampled from the range:
```text
0 to 20
```
Prompt styles were randomly mixed to create format variety while keeping the task simple.
## License
This dataset is released under the **Creative Commons Zero v1.0 Universal license**.
You may use, copy, modify, distribute, and train models on this dataset without asking permission.
License keyword:
```yaml
license: cc0-1.0
```
## Citation
If you use this dataset, citation is optional because it is released under CC0.
Optional citation format:
```bibtex
@dataset{tiny_addition_1m,
title = {Tiny Addition Dataset for 1M Models},
author = {Synthetic Dataset},
year = {2024},
license = {CC0-1.0}
}
```
## Quick Loading Example
```python
from datasets import load_dataset
dataset = load_dataset("json", data_files={
"train": "train.jsonl",
"validation": "validation.jsonl"
})
print(dataset["train"][0]["text"])
```
## Suggested Prompt Format
```text
### Instruction:
What is 5+5?
### Response:
10
```
## Final Note
This dataset is intentionally simple. For a tiny model, simple is powerful.
|