Cukinator commited on
Commit
fb402d0
Β·
verified Β·
1 Parent(s): c0e3461

README: Round 3 split by scale (50M and 10M each get their own R1/R2/R3)

Browse files
Files changed (1) hide show
  1. README.md +31 -36
README.md CHANGED
@@ -38,8 +38,6 @@ Two checkpoint flavours are stored per run:
38
 
39
  ## Architecture overview
40
 
41
- Two model scales are studied:
42
-
43
  | Scale | `d_model` | `n_layers` | `d_ff` | `n_heads` | Params |
44
  |---|---|---|---|---|---|
45
  | **50M** (runs 01–10) | 512 | 12 | 1376 | 8 | ~50M |
@@ -47,16 +45,14 @@ Two model scales are studied:
47
 
48
  All runs use:
49
  - **1.58-bit ternary weights** (`BitLinear` / `BitEmbedding`) by default β€” FP16 runs are explicit baselines
50
- - **Byte-level patch tokenisation** (patch_size=4) except `run_01` and `run_13` which use BPE
51
- - **CE-only training signal** on FineWeb (50M) or `Cukinator/cpu1-ablation-dataset` (10M runs 13–15)
52
- - **Chinchilla-scaled training budget**: 2 tok/param (r1), 15 tok/param (r2), 50 tok/param (r3)
53
 
54
  ---
55
 
56
- ## 50M-parameter ablation chain
57
 
58
- Each run adds **exactly one component** to the previous, so any Ξ”ppl is unambiguously attributable
59
- to a single design decision.
60
 
61
  ```
62
  run_01 Transformer + BPE 16K + FP16 ← absolute baseline
@@ -73,8 +69,8 @@ run_01 Transformer + BPE 16K + FP16 ← absolute baseline
73
  β”‚ └─ run_09 + PFNet (pfnet_hidden=32)
74
  β”‚ └─ run_10 + per-channel decay
75
  β”‚
76
- β”œβ”€ r2 re-runs at 15 tok/param: run_04_r2, run_07_r2
77
- └─ r3 step-by-step checkpoints (v3 run): run_XX_v3/
78
  ```
79
 
80
  ### Round 1 β€” 2 tok/param
@@ -94,19 +90,36 @@ run_01 Transformer + BPE 16K + FP16 ← absolute baseline
94
  | `run_09` | `cpu1_pfnet` | 21 | 640 | 9.9 MB | 75.3 MB | 1591 MB | +PFNet (pfnet_hidden=32): cache-resident nonlinear residual per block. |
95
  | `run_10` | `cpu1_decay_learned` | 21 | 640 | 9.9 MB | 75.3 MB | 1592 MB | +Per-channel learnable decay in MLGRU (RWKV/HGRN2-style). Chain terminus. |
96
 
97
- ### Round 2 β€” 15 tok/param (same architecture, longer budget)
98
 
99
  | Run | Steps saved | Max step | `_final` size | Step ckpt size | Total | Description |
100
  |---|---|---|---|---|---|---|
101
  | `run_04_r2` | 21 | 4,840 | 9.4 MB | 74.2 MB | 1567 MB | run_04 architecture at 15 tok/param β€” ternary MLGRU baseline with real budget. |
102
  | `run_07_r2` | 21 | 4,860 | β€” (no final) | 74.5 MB | 1565 MB | run_07 (CPU-1 COMPLETE) at 15 tok/param. No `_final` β€” training stopped early. ⭐ |
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  ---
105
 
106
- ## 10M-parameter runs
107
 
108
- All use **CPU-1 COMPLETE architecture** (`d_model=320, n_layers=8`).
109
- Training strategy is the only variable across runs.
110
 
111
  **Datasets:**
112
  - `run_13`, `run_14`, `run_15`: `Cukinator/cpu1-ablation-dataset` (~37.5M tokens, Qwen2.5-3B teacher logprobs + hidden states)
@@ -130,31 +143,17 @@ Training strategy is the only variable across runs.
130
  | `run_15_r2` | 21 | 1,340 | 2.9 MB | 20.5 MB | 434 MB | run_15 at 15 tok/param β€” byte + hidden distillation with sufficient budget. |
131
  | `run_16_r2` | 21 | 1,320 | 2.8 MB | 20.5 MB | 432 MB | run_16 at 15 tok/param β€” zero-teacher bytes with sufficient budget. |
132
 
133
- ---
134
-
135
- ## Round 3 β€” step-by-step checkpoints (`_v3` folders)
136
 
137
- Dense step-by-step checkpoints saved during the v3 training run.
138
- Each file contains the full **bf16 model + bf16 optimizer state** β€” suitable for resuming
139
- training at any logged step or inspecting the loss landscape at fine granularity.
140
- No `_final.pt` files here: these are pure training-resume archives.
141
 
142
  | Folder | Step checkpoints | Max step | Per-file size | Total size |
143
  |---|---|---|---|---|
144
- | `run_01_v3/` | 72 | 12,173 | 313.3 MB | 22560 MB |
145
- | `run_02_v3/` | 73 | 10,963 | 222.3 MB | 16231 MB |
146
- | `run_02a_byte_only_heads_v3/` | 75 | 16,327 | 220.5 MB | 16534 MB |
147
- | `run_03_v3/` | 71 | 6,187 | 222.4 MB | 15788 MB |
148
- | `run_04_v3/` | 71 | 6,074 | 222.5 MB | 15800 MB |
149
- | `run_05_v3/` | 71 | 4,390 | 223.4 MB | 15861 MB |
150
- | `run_05b_kernel_strict_v3/` | 71 | 2,573 | 205.3 MB | 14579 MB |
151
- | `run_06_v3/` | 71 | 4,237 | 223.4 MB | 15862 MB |
152
- | `run_08_v3/` | 71 | 3,858 | 222.5 MB | 15799 MB |
153
  | `run_13_v3/` | 72 | 9,290 | 71.9 MB | 5175 MB |
154
  | `run_14_v3/` | 75 | 9,775 | 61.3 MB | 4597 MB |
155
  | `run_15_v3/` | 70 | 2,350 | 61.5 MB | 4307 MB |
156
 
157
- > **Round 3 total storage:** 159.3 GB
158
 
159
  ---
160
 
@@ -168,7 +167,6 @@ sys.path.insert(0, "/path/to/1.58bits")
168
  from train_ablation_amd import load_ablation_checkpoint, build_ablation_model, generate
169
  import torch
170
 
171
- # Load any _final.pt checkpoint
172
  state, config = load_ablation_checkpoint("run_07/checkpoint_run_07_final.pt")
173
  model = build_ablation_model(config)
174
  model.load_state_dict(state, strict=False)
@@ -180,9 +178,7 @@ print(output)
180
 
181
  ### Resume training from a step checkpoint
182
 
183
- ```python
184
- # Step checkpoints contain model + optimizer state
185
- # Pass the checkpoint path to --resume_from in train_ablation_amd.py
186
  python train_ablation_amd.py --run run_07 --resume_from run_07/checkpoint_run_07_step640.pt
187
  ```
188
 
@@ -191,7 +187,6 @@ python train_ablation_amd.py --run run_07 --resume_from run_07/checkpoint_run_07
191
  ```python
192
  from huggingface_hub import hf_hub_download
193
 
194
- # Download a specific checkpoint
195
  path = hf_hub_download(
196
  repo_id="Cukinator/cpu1-ablation-checkpoints",
197
  filename="run_07/checkpoint_run_07_final.pt",
 
38
 
39
  ## Architecture overview
40
 
 
 
41
  | Scale | `d_model` | `n_layers` | `d_ff` | `n_heads` | Params |
42
  |---|---|---|---|---|---|
43
  | **50M** (runs 01–10) | 512 | 12 | 1376 | 8 | ~50M |
 
45
 
46
  All runs use:
47
  - **1.58-bit ternary weights** (`BitLinear` / `BitEmbedding`) by default β€” FP16 runs are explicit baselines
48
+ - **Byte-level patch tokenisation** (patch_size=4) except `run_01` / `run_13` which use BPE
49
+ - **Chinchilla-scaled training budget**: 2 tok/param (r1), 15 tok/param (r2), dense step checkpoints (r3)
 
50
 
51
  ---
52
 
53
+ ## 50M-parameter ablation chain (`d_model=512, n_layers=12`)
54
 
55
+ Each run adds **exactly one component** to the previous:
 
56
 
57
  ```
58
  run_01 Transformer + BPE 16K + FP16 ← absolute baseline
 
69
  β”‚ └─ run_09 + PFNet (pfnet_hidden=32)
70
  β”‚ └─ run_10 + per-channel decay
71
  β”‚
72
+ β”œβ”€ Round 2: run_04_r2, run_07_r2 (same architecture, 15 tok/param)
73
+ └─ Round 3: run_XX_v3/ (dense step-by-step checkpoints)
74
  ```
75
 
76
  ### Round 1 β€” 2 tok/param
 
90
  | `run_09` | `cpu1_pfnet` | 21 | 640 | 9.9 MB | 75.3 MB | 1591 MB | +PFNet (pfnet_hidden=32): cache-resident nonlinear residual per block. |
91
  | `run_10` | `cpu1_decay_learned` | 21 | 640 | 9.9 MB | 75.3 MB | 1592 MB | +Per-channel learnable decay in MLGRU (RWKV/HGRN2-style). Chain terminus. |
92
 
93
+ ### Round 2 β€” 15 tok/param
94
 
95
  | Run | Steps saved | Max step | `_final` size | Step ckpt size | Total | Description |
96
  |---|---|---|---|---|---|---|
97
  | `run_04_r2` | 21 | 4,840 | 9.4 MB | 74.2 MB | 1567 MB | run_04 architecture at 15 tok/param β€” ternary MLGRU baseline with real budget. |
98
  | `run_07_r2` | 21 | 4,860 | β€” (no final) | 74.5 MB | 1565 MB | run_07 (CPU-1 COMPLETE) at 15 tok/param. No `_final` β€” training stopped early. ⭐ |
99
 
100
+ ### Round 3 β€” step-by-step checkpoints (50M)
101
+
102
+ Dense step-by-step checkpoints from the v3 training run. Full **bf16 model + bf16 optimizer state** per step β€” no `_final.pt`.
103
+
104
+ | Folder | Step checkpoints | Max step | Per-file size | Total size |
105
+ |---|---|---|---|---|
106
+ | `run_01_v3/` | 72 | 12,173 | 313.3 MB | 22560 MB |
107
+ | `run_02_v3/` | 73 | 10,963 | 222.3 MB | 16231 MB |
108
+ | `run_02a_byte_only_heads_v3/` | 75 | 16,327 | 220.5 MB | 16534 MB |
109
+ | `run_03_v3/` | 71 | 6,187 | 222.4 MB | 15788 MB |
110
+ | `run_04_v3/` | 71 | 6,074 | 222.5 MB | 15800 MB |
111
+ | `run_05_v3/` | 71 | 4,390 | 223.4 MB | 15861 MB |
112
+ | `run_05b_kernel_strict_v3/` | 71 | 2,573 | 205.3 MB | 14579 MB |
113
+ | `run_06_v3/` | 71 | 4,237 | 223.4 MB | 15862 MB |
114
+ | `run_08_v3/` | 71 | 3,858 | 222.5 MB | 15799 MB |
115
+
116
+ > **Round 3 total (9 folders):** 145.5 GB
117
+
118
  ---
119
 
120
+ ## 10M-parameter runs (`d_model=320, n_layers=8`)
121
 
122
+ All use **CPU-1 COMPLETE architecture**. Training strategy is the only variable.
 
123
 
124
  **Datasets:**
125
  - `run_13`, `run_14`, `run_15`: `Cukinator/cpu1-ablation-dataset` (~37.5M tokens, Qwen2.5-3B teacher logprobs + hidden states)
 
143
  | `run_15_r2` | 21 | 1,340 | 2.9 MB | 20.5 MB | 434 MB | run_15 at 15 tok/param β€” byte + hidden distillation with sufficient budget. |
144
  | `run_16_r2` | 21 | 1,320 | 2.8 MB | 20.5 MB | 432 MB | run_16 at 15 tok/param β€” zero-teacher bytes with sufficient budget. |
145
 
146
+ ### Round 3 β€” step-by-step checkpoints (10M)
 
 
147
 
148
+ Dense step-by-step checkpoints from the v3 training run. Full **bf16 model + bf16 optimizer state** per step β€” no `_final.pt`.
 
 
 
149
 
150
  | Folder | Step checkpoints | Max step | Per-file size | Total size |
151
  |---|---|---|---|---|
 
 
 
 
 
 
 
 
 
152
  | `run_13_v3/` | 72 | 9,290 | 71.9 MB | 5175 MB |
153
  | `run_14_v3/` | 75 | 9,775 | 61.3 MB | 4597 MB |
154
  | `run_15_v3/` | 70 | 2,350 | 61.5 MB | 4307 MB |
155
 
156
+ > **Round 3 total (3 folders):** 13.7 GB
157
 
158
  ---
159
 
 
167
  from train_ablation_amd import load_ablation_checkpoint, build_ablation_model, generate
168
  import torch
169
 
 
170
  state, config = load_ablation_checkpoint("run_07/checkpoint_run_07_final.pt")
171
  model = build_ablation_model(config)
172
  model.load_state_dict(state, strict=False)
 
178
 
179
  ### Resume training from a step checkpoint
180
 
181
+ ```bash
 
 
182
  python train_ablation_amd.py --run run_07 --resume_from run_07/checkpoint_run_07_step640.pt
183
  ```
184
 
 
187
  ```python
188
  from huggingface_hub import hf_hub_download
189
 
 
190
  path = hf_hub_download(
191
  repo_id="Cukinator/cpu1-ablation-checkpoints",
192
  filename="run_07/checkpoint_run_07_final.pt",