Datasets:
Add replayed recursive-arithmetic training frames (3.52M sequences)
Browse filesFiles changed (46)
- README.mdAdded+140
- allk_finetune/stats.jsonAdded+17
- allk_finetune/train-00000-of-00007.jsonl.gzAdded+3
- allk_finetune/train-00001-of-00007.jsonl.gzAdded+3
- allk_finetune/train-00002-of-00007.jsonl.gzAdded+3
- allk_finetune/train-00003-of-00007.jsonl.gzAdded+3
- allk_finetune/train-00004-of-00007.jsonl.gzAdded+3
- allk_finetune/train-00005-of-00007.jsonl.gzAdded+3
- allk_finetune/train-00006-of-00007.jsonl.gzAdded+3
- combine_finetune/stats.jsonAdded+17
- combine_finetune/train-00000-of-00007.jsonl.gzAdded+3
- combine_finetune/train-00001-of-00007.jsonl.gzAdded+3
- combine_finetune/train-00002-of-00007.jsonl.gzAdded+3
- combine_finetune/train-00003-of-00007.jsonl.gzAdded+3
- combine_finetune/train-00004-of-00007.jsonl.gzAdded+3
- combine_finetune/train-00005-of-00007.jsonl.gzAdded+3
- combine_finetune/train-00006-of-00007.jsonl.gzAdded+3
- combine_k2_finetune/stats.jsonAdded+17
- combine_k2_finetune/train-00000-of-00007.jsonl.gzAdded+3
- combine_k2_finetune/train-00001-of-00007.jsonl.gzAdded+3
- combine_k2_finetune/train-00002-of-00007.jsonl.gzAdded+3
- combine_k2_finetune/train-00003-of-00007.jsonl.gzAdded+3
- combine_k2_finetune/train-00004-of-00007.jsonl.gzAdded+3
- combine_k2_finetune/train-00005-of-00007.jsonl.gzAdded+3
- combine_k2_finetune/train-00006-of-00007.jsonl.gzAdded+3
- preview/router_finetune_256.jsonlAdded
- router_finetune/stats.jsonAdded+17
- router_finetune/train-00000-of-00007.jsonl.gzAdded+3
- router_finetune/train-00001-of-00007.jsonl.gzAdded+3
- router_finetune/train-00002-of-00007.jsonl.gzAdded+3
- router_finetune/train-00003-of-00007.jsonl.gzAdded+3
- router_finetune/train-00004-of-00007.jsonl.gzAdded+3
- router_finetune/train-00005-of-00007.jsonl.gzAdded+3
- router_finetune/train-00006-of-00007.jsonl.gzAdded+3
- sampling_recipe.jsonAdded+101
- scratch_pretrain/stats.jsonAdded+20
- scratch_pretrain/train-00000-of-00010.jsonl.gzAdded+3
- scratch_pretrain/train-00001-of-00010.jsonl.gzAdded+3
- scratch_pretrain/train-00002-of-00010.jsonl.gzAdded+3
- scratch_pretrain/train-00003-of-00010.jsonl.gzAdded+3
- scratch_pretrain/train-00004-of-00010.jsonl.gzAdded+3
- scratch_pretrain/train-00005-of-00010.jsonl.gzAdded+3
- scratch_pretrain/train-00006-of-00010.jsonl.gzAdded+3
- scratch_pretrain/train-00007-of-00010.jsonl.gzAdded+3
- scratch_pretrain/train-00008-of-00010.jsonl.gzAdded+3
- scratch_pretrain/train-00009-of-00010.jsonl.gzAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140---license: mitpretty_name: Recursive Arithmetic Transformer Training Framestask_categories:- text-generationlanguage:- entags:- arithmetic- multiplication- transformers- syntheticsize_categories:- 1M<n<10Mconfigs: - config_name: router_finetune default: true data_files: - split: train path: router_finetune/train-*.jsonl.gz - config_name: allk_finetune data_files: - split: train path: allk_finetune/train-*.jsonl.gz - config_name: combine_k2_finetune data_files: - split: train path: combine_k2_finetune/train-*.jsonl.gz - config_name: combine_finetune data_files: - split: train path: combine_finetune/train-*.jsonl.gz - config_name: scratch_pretrain data_files: - split: train path: scratch_pretrain/train-*.jsonl.gz---
# Recursive Arithmetic Transformer training frames
There was **no static training file**. The model sampled integers online everystep. This dataset **replays that sampler** with the same Python RNGs used in`train_recursive`:
| RNG | Seed | What it draws ||-----|------|----------------|| `mix_rng` | `seed + 91` | task mix, operand lengths, integers || `offset_rng` | `seed + 17` | Position Coupling origin |
`seed = 42` for every run. Each `train()` call **resets** both RNGs, so laterfinetunes are not a continuation of earlier streams.
Code: [Amartya-Roy/recursive-arithmetic-transformer](https://github.com/Amartya-Roy/recursive-arithmetic-transformer)
Regenerate locally:
```bashpython export_training_data.py --output data/hf```
## What a row is
One **frame** the transformer saw, not a full n-digit multiply.
Digits are **least-significant first**. Only `completion` is trained (`label_mask`).
| `task` | Supervised target | Operands ||--------|-------------------|----------|| `base` | scratchpad + 1×1 / 2×2 product | lengths 1–2 || `split` | `SPLIT`, `k`, four copied half-pairs | lengths 3–12 (15% up to 32) || `combine` | digits of `P_ll + (P_lh+P_hl)·10^k + P_hh·10^{2k}` | templated `COMBINE` prompt |
The unique multiply curriculum is **only 1- and 2-digit pairs**. Longer digitstrings appear as copy (split) or add (combine).
### Example (`base`)
```<bos> 3 2 * 7 4 = 1 4 1 + 8 6 1 = 1 8 0 1 <eos>```
`23 × 47 = 1081`. First supervised token is a digit, never `SPLIT`.
### Example (`split`, learned router)
```<bos> 4 3 2 1 * 8 7 6 5 = SPLIT 2 CALL 1 4 3 | 8 7 CALL 2 4 3 | 6 5 CALL 3 2 1 | 8 7 CALL 4 2 1 | 6 5 <eos>```
`1234 × 5678`, `k=2`. The net copies halves; it does not emit the 8-digit product.
### Example (`combine`)
```<bos> COMBINE 2 | 2 5 6 2 | 4 0 9 1 | 6 3 9 | 2 7 6 = 2 5 6 6 0 0 7 <eos>```
`7006652` LSD-first. Place IDs (column `position_ids`) encode the `10^k` / `10^{2k}` shifts.
## Configs (sequential trainings)
| Config | Steps × batch | Mix base/split/combine | `SPLIT` in | Bit-identical to the run? ||--------|---------------|------------------------|------------|---------------------------|| `scratch_pretrain` | 15k × 64 | 0.40 / 0.30 / 0.30 | prompt | no — current sampler replay || `combine_finetune` | 10k × 64 | 0.10 / 0.10 / 0.80 | prompt | no || `combine_k2_finetune` | 10k × 64 | 0.10 / 0.10 / 0.80 | prompt | no || `allk_finetune` | 10k × 64 | 0.15 / 0.10 / 0.75 | prompt | no — last length-gated ckpt || **`router_finetune`** | **10k × 64** | **0.25 / 0.40 / 0.35** | **target** | **yes** — `recursive_block_router.pt` |
`router_finetune` is the dump that matches `checkpoints/recursive_block_router.pt`(8×8 exact 977/1000). `split_train_max=12`. First supervised token on splitframes is `SPLIT`.
Earlier configs used a length-gated controller (`SPLIT` already in the prompt).Those dumps are **replayed with the current sampler**. Combine sampling evolvedduring development, so those rows show the recipe, not a guaranteed byte matchto the original GPU stream.
## Columns
Operands and products are **strings** so JSON does not round large integers.
| Column | Meaning ||--------|---------|| `run` | which train() call || `step`, `index_in_batch`, `global_index` | where in the 10k/15k stream || `task` | `base` / `split` / `combine` || `left`, `right`, `length` | multiply operands (0 on combine) || `k`, `r1`–`r4` | combine parts (`k` also set on split) || `target` | product, combine sum, or `SPLIT k a\|b ...` || `text` | full token string || `prompt` / `completion` | unsupervised prefix vs trained suffix || `first_supervised_token` | `SPLIT` or a digit || `position_offset`, `position_ids` | Place-value IDs || `label_mask` | `1` = trained token || `exact_replay` | true only for `router_finetune` |
## License
MIT, same as the code repo.1234567891011121314151617{ "rows": 640000, "task_counts": { "combine": 480183, "base": 95978, "split": 63839 }, "shards": [ "train-00000-of-00007.jsonl.gz", "train-00001-of-00007.jsonl.gz", "train-00002-of-00007.jsonl.gz", "train-00003-of-00007.jsonl.gz", "train-00004-of-00007.jsonl.gz", "train-00005-of-00007.jsonl.gz", "train-00006-of-00007.jsonl.gz" ]}123version https://git-lfs.github.com/spec/v1oid sha256:3367d91ffc2a138e16c78abb300a6d14e416c15c944bcb82caaf12ef24aa616dsize 13681778123version https://git-lfs.github.com/spec/v1oid sha256:7393cf11446f0fda0f6c6424d6a5d8cf2655ef9d9653cf52531dff6da7b434e7size 13721177123version https://git-lfs.github.com/spec/v1oid sha256:a579b1a8fa470a8478bcb6d12e6982b9b9db09085ca8a79afd4023cc49f94417size 13685054123version https://git-lfs.github.com/spec/v1oid sha256:95c3313c3c3cd10bf95adb689cede5a436fee3fdfeffcac34ba6ff338a577ffasize 13707640123version https://git-lfs.github.com/spec/v1oid sha256:d8db0fd8561a1758e73bb2539681b64c6a71c9dd7320e124744eb9ff169efd00size 13709110123version https://git-lfs.github.com/spec/v1oid sha256:3d497f50378b84e123a5c3cba159be3174d8a0136c4fa5d977d3efc73256be8fsize 13674041123version https://git-lfs.github.com/spec/v1oid sha256:36049b044aba4158c6e053141915ab94b7aef869839a634aea228faa05b704cbsize 54762371234567891011121314151617{ "rows": 640000, "task_counts": { "combine": 511841, "base": 63960, "split": 64199 }, "shards": [ "train-00000-of-00007.jsonl.gz", "train-00001-of-00007.jsonl.gz", "train-00002-of-00007.jsonl.gz", "train-00003-of-00007.jsonl.gz", "train-00004-of-00007.jsonl.gz", "train-00005-of-00007.jsonl.gz", "train-00006-of-00007.jsonl.gz" ]}123version https://git-lfs.github.com/spec/v1oid sha256:b4db8be30e9b51659968f620ef5dd2a2300930bdf443f8b04e3857f8511c597bsize 12932993123version https://git-lfs.github.com/spec/v1oid sha256:68ee2db55ff856e0828651faf514b65a0dc33dd9935ae5784d25dba05b00d195size 12916552123version https://git-lfs.github.com/spec/v1oid sha256:1d8b18d47754224ca207d66aa9912db1ef5e1ea26acd5a2e74fca337ce380f62size 12951626123version https://git-lfs.github.com/spec/v1oid sha256:77ac6891654f88d5b9af03a1f93845772eed016691fb816f4abc6143436b8bccsize 12944348123version https://git-lfs.github.com/spec/v1oid sha256:3b6fef8bc0b4b0e2d65b03e66b260d1d538761834eba5780878f4da8fc0d251dsize 12921700123version https://git-lfs.github.com/spec/v1oid sha256:7dc83979c6d7e8c8b93fbefda23f0d369dbfcf328a0cc4787665a072b4b7d834size 12952932123version https://git-lfs.github.com/spec/v1oid sha256:be172261b26151954c42cd2eedeff1f9c40ba845081b5a65877e11ec5a48bcddsize 51963041234567891011121314151617{ "rows": 640000, "task_counts": { "combine": 512047, "base": 63896, "split": 64057 }, "shards": [ "train-00000-of-00007.jsonl.gz", "train-00001-of-00007.jsonl.gz", "train-00002-of-00007.jsonl.gz", "train-00003-of-00007.jsonl.gz", "train-00004-of-00007.jsonl.gz", "train-00005-of-00007.jsonl.gz", "train-00006-of-00007.jsonl.gz" ]}123version https://git-lfs.github.com/spec/v1oid sha256:3163010f699b96d5bfc125d6b582d468f6d9123ac01652b60af18ad6948800a3size 14093764123version https://git-lfs.github.com/spec/v1oid sha256:904fde927078c62440ce144707b1975bf2ae38109231ddb1a6b1decec6f8d152size 14097690123version https://git-lfs.github.com/spec/v1oid sha256:2efd0a14b9b9e7a3ffe7d708cdaf5d17dc567c3d9f245594f10aad03f2da19cfsize 14074623123version https://git-lfs.github.com/spec/v1oid sha256:a297a4e625a724c282dd59be1c719d1081330194b1339ca6622788e3231afbb2size 14106439123version https://git-lfs.github.com/spec/v1oid sha256:e4ca7e04c8f564ccee3f53198f02d8b4d03d77b46005daf9aac367e48844aa8esize 14088391123version https://git-lfs.github.com/spec/v1oid sha256:fc276bedd048bdafe32239d1baacfa80ef975e18c97d82540373d5e9dcababcesize 14116975123version https://git-lfs.github.com/spec/v1oid sha256:2eabe799ec78dc7a254149518a649fc741e279775a2a426f520bb0e15dd0b256size 56455761234567891011121314151617{ "rows": 640000, "task_counts": { "split": 255900, "combine": 223875, "base": 160225 }, "shards": [ "train-00000-of-00007.jsonl.gz", "train-00001-of-00007.jsonl.gz", "train-00002-of-00007.jsonl.gz", "train-00003-of-00007.jsonl.gz", "train-00004-of-00007.jsonl.gz", "train-00005-of-00007.jsonl.gz", "train-00006-of-00007.jsonl.gz" ]}123version https://git-lfs.github.com/spec/v1oid sha256:0ebbaa4db2f5a47c28cf5283e00ab27860139c0ca606799bcd0d548744135618size 12741837123version https://git-lfs.github.com/spec/v1oid sha256:00bac0eb16558449664b793006148d06460858dbaa874733683bc9c0abb847d5size 12790021123version https://git-lfs.github.com/spec/v1oid sha256:cd6b7111baef3021f2ccd197cd356a12e7ae810b5db90893bc222cf9794d8c0fsize 12752660123version https://git-lfs.github.com/spec/v1oid sha256:4cb0f8ea40e881066bc1e29ce4d8d2fcb1d76e6d2860cc646feb4be61c440005size 12810443123version https://git-lfs.github.com/spec/v1oid sha256:e9c332af51728661e5bec0e8c076ed22f547380fcf5c853f05a6795162731dcbsize 12738032123version https://git-lfs.github.com/spec/v1oid sha256:e220a2bad771584a2f12c03cdd65f361e01b62c18fdd588cd1f81d7e26b14ce8size 12751571123version https://git-lfs.github.com/spec/v1oid sha256:be9694f45abaa188003f1db1bd82c90bd5405b400ae9fb2f0550b7c1792c89a3size 5090818123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101{ "protocol": "recursive_block_multiply", "seed_operands": "seed + 91", "seed_offsets": "seed + 17", "base_cutoff": 2, "max_position_id": 512, "digit_order": "least-significant first", "runs": { "scratch_pretrain": { "updates": 15000, "batch_size": 64, "seed": 42, "mix_weights": [ 0.4, 0.3, 0.3 ], "split_train_max": 8, "split_copy_max": 32, "combine_k_max": 16, "combine_r_max": 12, "learned_router": false, "exact_replay": false, "checkpoint": "checkpoints/recursive_block.pt (later overwritten by allk)", "notes": "First 15k steps from random init. Replay uses the current sampler; early combine / split encoding lived in salt_cert_recursive.py and may not be bit-identical." }, "combine_finetune": { "updates": 10000, "batch_size": 64, "seed": 42, "mix_weights": [ 0.1, 0.1, 0.8 ], "split_train_max": 8, "split_copy_max": 32, "combine_k_max": 16, "combine_r_max": 12, "learned_router": false, "exact_replay": false, "checkpoint": "runs/mult_transformer/recursive_block_combine.pt", "notes": "Combine-heavy finetune. Replay uses the current sampler." }, "combine_k2_finetune": { "updates": 10000, "batch_size": 64, "seed": 42, "mix_weights": [ 0.1, 0.1, 0.8 ], "split_train_max": 8, "split_copy_max": 32, "combine_k_max": 16, "combine_r_max": 32, "learned_router": false, "exact_replay": false, "checkpoint": "runs/mult_transformer/recursive_block_combine_k2.pt", "notes": "Same mix as combine_finetune with longer combine operands (r_max=32)." }, "allk_finetune": { "updates": 10000, "batch_size": 64, "seed": 42, "mix_weights": [ 0.15, 0.1, 0.75 ], "split_train_max": 8, "split_copy_max": 32, "combine_k_max": 16, "combine_r_max": 32, "learned_router": false, "exact_replay": false, "checkpoint": "checkpoints/recursive_block.pt", "notes": "Last length-gated checkpoint (SPLIT already in the split prompt). Init for the router run. Replay uses the current sampler." }, "router_finetune": { "updates": 10000, "batch_size": 64, "seed": 42, "mix_weights": [ 0.25, 0.4, 0.35 ], "split_train_max": 12, "split_copy_max": 32, "combine_k_max": 16, "combine_r_max": 32, "learned_router": true, "exact_replay": true, "checkpoint": "checkpoints/recursive_block_router.pt", "notes": "10k finetune from recursive_block.pt. Same code path as train_recursive after the learned-router change. This is the dump that matches the public 8x8 97.7% checkpoint." } }, "regenerate": "python export_training_data.py --output data/hf"}1234567891011121314151617181920{ "rows": 960000, "task_counts": { "split": 288294, "combine": 287935, "base": 383771 }, "shards": [ "train-00000-of-00010.jsonl.gz", "train-00001-of-00010.jsonl.gz", "train-00002-of-00010.jsonl.gz", "train-00003-of-00010.jsonl.gz", "train-00004-of-00010.jsonl.gz", "train-00005-of-00010.jsonl.gz", "train-00006-of-00010.jsonl.gz", "train-00007-of-00010.jsonl.gz", "train-00008-of-00010.jsonl.gz", "train-00009-of-00010.jsonl.gz" ]}123version https://git-lfs.github.com/spec/v1oid sha256:0b33c3c79b5531a9451f4167576e6c6394f59336f8266491fb3451ccc74921f8size 10727970123version https://git-lfs.github.com/spec/v1oid sha256:5e22b0f39ae458260c5946fdeaf7f80496c8bce236946c2c037fd966dbb6e563size 10720202123version https://git-lfs.github.com/spec/v1oid sha256:024f549e6e72fc12ca5298b962469c4c02190b3c11053afa0d73f833dbfc35b4size 10699201123version https://git-lfs.github.com/spec/v1oid sha256:5de3b9f9bdf2ba4c617ca072343c9bffb7debeb2d9686cf5518230bc11e043b6size 10742256123version https://git-lfs.github.com/spec/v1oid sha256:78a06a8b5d64dcdbbc2c3039f9b457e8e530566827e541e61cd0eb844d2224adsize 10704452123version https://git-lfs.github.com/spec/v1oid sha256:db1743301ed4ff7ac33459ed1de2c20f17125b88c59e0923425bc0d338b0a7e3size 10697940123version https://git-lfs.github.com/spec/v1oid sha256:e14b08d9ee305310ca120722d1c36f86f026041fcc665e914bea586f7803b789size 10687456123version https://git-lfs.github.com/spec/v1oid sha256:c418d0c776985f26e82f5e45e38d25264ede55c4c0f51d602d91870bcc3647a0size 10686819123version https://git-lfs.github.com/spec/v1oid sha256:72e9bbb23fb508ee77677bd88bb6e91a1f89c3ef595787d6351179fac8aa9b5fsize 10717237123version https://git-lfs.github.com/spec/v1oid sha256:268c8cdff4214801b3c0b92aa7968d08e26b96b0393bdea7a5786da6c67f13bdsize 6416660README.mdAdded+140
allk_finetune/stats.jsonAdded+17
allk_finetune/train-00000-of-00007.jsonl.gzAdded+3
allk_finetune/train-00001-of-00007.jsonl.gzAdded+3
allk_finetune/train-00002-of-00007.jsonl.gzAdded+3
allk_finetune/train-00003-of-00007.jsonl.gzAdded+3
allk_finetune/train-00004-of-00007.jsonl.gzAdded+3
allk_finetune/train-00005-of-00007.jsonl.gzAdded+3
allk_finetune/train-00006-of-00007.jsonl.gzAdded+3
combine_finetune/stats.jsonAdded+17
combine_finetune/train-00000-of-00007.jsonl.gzAdded+3
combine_finetune/train-00001-of-00007.jsonl.gzAdded+3
combine_finetune/train-00002-of-00007.jsonl.gzAdded+3
combine_finetune/train-00003-of-00007.jsonl.gzAdded+3
combine_finetune/train-00004-of-00007.jsonl.gzAdded+3
combine_finetune/train-00005-of-00007.jsonl.gzAdded+3
combine_finetune/train-00006-of-00007.jsonl.gzAdded+3
combine_k2_finetune/stats.jsonAdded+17
combine_k2_finetune/train-00000-of-00007.jsonl.gzAdded+3
combine_k2_finetune/train-00001-of-00007.jsonl.gzAdded+3
combine_k2_finetune/train-00002-of-00007.jsonl.gzAdded+3
combine_k2_finetune/train-00003-of-00007.jsonl.gzAdded+3
combine_k2_finetune/train-00004-of-00007.jsonl.gzAdded+3
combine_k2_finetune/train-00005-of-00007.jsonl.gzAdded+3
combine_k2_finetune/train-00006-of-00007.jsonl.gzAdded+3
preview/router_finetune_256.jsonlAdded
router_finetune/stats.jsonAdded+17
router_finetune/train-00000-of-00007.jsonl.gzAdded+3
router_finetune/train-00001-of-00007.jsonl.gzAdded+3
router_finetune/train-00002-of-00007.jsonl.gzAdded+3
router_finetune/train-00003-of-00007.jsonl.gzAdded+3
router_finetune/train-00004-of-00007.jsonl.gzAdded+3
router_finetune/train-00005-of-00007.jsonl.gzAdded+3
router_finetune/train-00006-of-00007.jsonl.gzAdded+3
sampling_recipe.jsonAdded+101
scratch_pretrain/stats.jsonAdded+20
scratch_pretrain/train-00000-of-00010.jsonl.gzAdded+3
scratch_pretrain/train-00001-of-00010.jsonl.gzAdded+3
scratch_pretrain/train-00002-of-00010.jsonl.gzAdded+3
scratch_pretrain/train-00003-of-00010.jsonl.gzAdded+3
scratch_pretrain/train-00004-of-00010.jsonl.gzAdded+3
scratch_pretrain/train-00005-of-00010.jsonl.gzAdded+3
scratch_pretrain/train-00006-of-00010.jsonl.gzAdded+3
scratch_pretrain/train-00007-of-00010.jsonl.gzAdded+3
scratch_pretrain/train-00008-of-00010.jsonl.gzAdded+3
scratch_pretrain/train-00009-of-00010.jsonl.gzAdded+3