File size: 28,569 Bytes
d05f60c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
# Plan / progress notes (started 2026-10-26 16:05 UTC; deadline ~15:35 UTC next day)

## Setup findings
- GPU image: torch 2.10, flash-attn 2.8.1, H100 80GB. Inter-node NCCL: 3.2GB all-reduce 14ms (425 GB/s bus) -> 2-node DDP is cheap.
- /workspace is 382 GB (not 5TB). Keep raw downloads + tokens under that.
- Downloads ~350 MB/s aggregate from HF and olmo-data.org.

## Data (Dolma v1.7 shards + DCLM-baseline parquet + FineWeb(-Edu) parquet)
- Dolma starcoder shards are sorted by language: 0000 c#, 0005 cpp, 0010 git-commits, 0020 java, 0025 js, 0030/0035 markdown, 0040 python, 0045 ?
- Tokenizer: byte-level BPE, Llama-3 regex, 65536 vocab, trained on 2.7GB mixed sample. ~4.3-4.7 bytes/token on web text.
- Tokenization throughput ~4M tok/s on 16 cores (bottleneck). ~34B tokens target.

## Model
- NanoLM: pre-norm, RMSNorm, QK-norm, RoPE, SwiGLU, untied embeddings, softcap 30, doc-masked varlen flash attention w/ position reset.
- HF export: custom code (configuration_nanolm.py / modeling_nanolm.py), validated with evaluate.py on CPU (tiny model): valid.
- Optimizer: Muon (lr 0.02, wd 0.01, momentum 0.95 nesterov; Keller scaling) + AdamW for embed (1e-3), head (3e-4), norms (3e-4).
- Schedule: warmup 500 steps, constant, linear decay to 0 over last 30% of a *time* budget.

## TODO
- smoke test on 1 GPU (job 1003) -> ablation (Muon vs AdamW, 8 GPUs) -> throughput test at target size -> main run on 16 GPUs
# Plan / progress notes (started 2026-10-26 16:05 UTC; deadline ~15:35 UTC next day)

## Setup findings
- GPU image: torch 2.10, flash-attn 2.8.1, H100 80GB. Inter-node NCCL: 3.2GB all-reduce 14ms (425 GB/s bus) -> 2-node DDP is cheap.
- /workspace is 382 GB (not 5TB). Keep raw downloads + tokens under that.
- Downloads ~350 MB/s aggregate from HF and olmo-data.org.

## Data (Dolma v1.7 shards + DCLM-baseline parquet + FineWeb(-Edu) parquet)
- Dolma starcoder shards are sorted by language: 0000 c#, 0005 cpp, 0010 git-commits, 0020 java, 0025 js, 0030/0035 markdown, 0040 python, 0045 ?
- Tokenizer: byte-level BPE, Llama-3 regex, 65536 vocab, trained on 2.7GB mixed sample. ~4.3-4.7 bytes/token on web text.
- Tokenization throughput ~4M tok/s on 16 cores (bottleneck). ~34B tokens target.

## Model
- NanoLM: pre-norm, RMSNorm, QK-norm, RoPE, SwiGLU, untied embeddings, softcap 30, doc-masked varlen flash attention w/ position reset.
- HF export: custom code (configuration_nanolm.py / modeling_nanolm.py), validated with evaluate.py on CPU (tiny model): valid.
- Optimizer: Muon (lr 0.02, wd 0.01, momentum 0.95 nesterov; Keller scaling) + AdamW for embed (1e-3), head (3e-4), norms (3e-4).
- Schedule: warmup 500 steps, constant, linear decay to 0 over last 30% of a *time* budget.

## TODO
- smoke test on 1 GPU (job 1003) -> ablation (Muon vs AdamW, 8 GPUs) -> throughput test at target size -> main run on 16 GPUs

## Progress log
- 16:50 smoke test (1 GPU, 93M model) passed: train/ckpt/resume/export/evaluate.py valid (fp32 and bf16 identical BPB).
- 16:52 ablations (8 GPUs each, 350M model, 12 min, fineweb_edu): Muon(lr .02) vs AdamW(2e-3). step 600: 4.17 vs 4.49.
- memory: 16 seqs x 2048 w/ 65K vocab -> 34GB at 350M (logits dominate). Main run: batch_seqs 8, grad_accum 4.
# Plan / progress notes (started 2026-10-26 16:05 UTC; deadline ~15:35 UTC next day)

## Setup findings
- GPU image: torch 2.10, flash-attn 2.8.1, H100 80GB. Inter-node NCCL: 3.2GB all-reduce 14ms (425 GB/s bus) -> 2-node DDP is cheap.
- /workspace is 382 GB (not 5TB). Keep raw downloads + tokens under that.
- Downloads ~350 MB/s aggregate from HF and olmo-data.org.

## Data (Dolma v1.7 shards + DCLM-baseline parquet + FineWeb(-Edu) parquet)
- Dolma starcoder shards are sorted by language: 0000 c#, 0005 cpp, 0010 git-commits, 0020 java, 0025 js, 0030/0035 markdown, 0040 python, 0045 ?
- Tokenizer: byte-level BPE, Llama-3 regex, 65536 vocab, trained on 2.7GB mixed sample. ~4.3-4.7 bytes/token on web text.
- Tokenization throughput ~4M tok/s on 16 cores (bottleneck). ~34B tokens target.

## Model
- NanoLM: pre-norm, RMSNorm, QK-norm, RoPE, SwiGLU, untied embeddings, softcap 30, doc-masked varlen flash attention w/ position reset.
- HF export: custom code (configuration_nanolm.py / modeling_nanolm.py), validated with evaluate.py on CPU (tiny model): valid.
- Optimizer: Muon (lr 0.02, wd 0.01, momentum 0.95 nesterov; Keller scaling) + AdamW for embed (1e-3), head (3e-4), norms (3e-4).
- Schedule: warmup 500 steps, constant, linear decay to 0 over last 30% of a *time* budget.

## TODO
- smoke test on 1 GPU (job 1003) -> ablation (Muon vs AdamW, 8 GPUs) -> throughput test at target size -> main run on 16 GPUs

## Progress log
- 16:50 smoke test (1 GPU, 93M model) passed: train/ckpt/resume/export/evaluate.py valid (fp32 and bf16 identical BPB).
- 16:52 ablations (8 GPUs each, 350M model, 12 min, fineweb_edu): Muon(lr .02) vs AdamW(2e-3). step 600: 4.17 vs 4.49.
- memory: 16 seqs x 2048 w/ 65K vocab -> 34GB at 350M (logits dominate). Main run: batch_seqs 8, grad_accum 4.
- 17:10 ablation result @step3000 (end of decay): Muon 0.9722 bpb vs AdamW 0.9975 (fineweb_edu val). Muon chosen.
- BUG found+fixed: time-based stop/LR/ckpt decisions were per-rank -> ranks desynced at end (hang) + replica drift. Now rank 0 broadcasts elapsed & ckpt flag each step.
- Operational: while local prep processes hold files open, /workspace view here is stale (gpu sync refuses). Use gpu exec in a dev job to read live files, but a dev job blocks 16-GPU launches.
# Plan / progress notes (started 2026-10-26 16:05 UTC; deadline ~15:35 UTC next day)

## Setup findings
- GPU image: torch 2.10, flash-attn 2.8.1, H100 80GB. Inter-node NCCL: 3.2GB all-reduce 14ms (425 GB/s bus) -> 2-node DDP is cheap.
- /workspace is 382 GB (not 5TB). Keep raw downloads + tokens under that.
- Downloads ~350 MB/s aggregate from HF and olmo-data.org.

## Data (Dolma v1.7 shards + DCLM-baseline parquet + FineWeb(-Edu) parquet)
- Dolma starcoder shards are sorted by language: 0000 c#, 0005 cpp, 0010 git-commits, 0020 java, 0025 js, 0030/0035 markdown, 0040 python, 0045 ?
- Tokenizer: byte-level BPE, Llama-3 regex, 65536 vocab, trained on 2.7GB mixed sample. ~4.3-4.7 bytes/token on web text.
- Tokenization throughput ~4M tok/s on 16 cores (bottleneck). ~34B tokens target.

## Model
- NanoLM: pre-norm, RMSNorm, QK-norm, RoPE, SwiGLU, untied embeddings, softcap 30, doc-masked varlen flash attention w/ position reset.
- HF export: custom code (configuration_nanolm.py / modeling_nanolm.py), validated with evaluate.py on CPU (tiny model): valid.
- Optimizer: Muon (lr 0.02, wd 0.01, momentum 0.95 nesterov; Keller scaling) + AdamW for embed (1e-3), head (3e-4), norms (3e-4).
- Schedule: warmup 500 steps, constant, linear decay to 0 over last 30% of a *time* budget.

## TODO
- smoke test on 1 GPU (job 1003) -> ablation (Muon vs AdamW, 8 GPUs) -> throughput test at target size -> main run on 16 GPUs

## Progress log
- 16:50 smoke test (1 GPU, 93M model) passed: train/ckpt/resume/export/evaluate.py valid (fp32 and bf16 identical BPB).
- 16:52 ablations (8 GPUs each, 350M model, 12 min, fineweb_edu): Muon(lr .02) vs AdamW(2e-3). step 600: 4.17 vs 4.49.
- memory: 16 seqs x 2048 w/ 65K vocab -> 34GB at 350M (logits dominate). Main run: batch_seqs 8, grad_accum 4.
- 17:10 ablation result @step3000 (end of decay): Muon 0.9722 bpb vs AdamW 0.9975 (fineweb_edu val). Muon chosen.
- BUG found+fixed: time-based stop/LR/ckpt decisions were per-rank -> ranks desynced at end (hang) + replica drift. Now rank 0 broadcasts elapsed & ckpt flag each step.
- Operational: while local prep processes hold files open, /workspace view here is stale (gpu sync refuses). Use gpu exec in a dev job to read live files, but a dev job blocks 16-GPU launches.
- 17:30 profile: 1-GPU fwd 107ms + bwd 234ms per 16K tokens (~43% MFU); data loading from network FS was the 2-node bottleneck -> loader now uses os.pread + 4 prefetch threads: 8 GPUs 0.345M tok/s (43K/GPU). Whole-model torch.compile recompiles every step with varlen attention -> keep partial compile.
- lr ablation (350M, 0.8B tok, 12 min): muon lr 0.01 -> 0.9741, lr 0.02 -> 0.9722 (wash). Main run: lr 0.015, wd 0.01.
- Plan main run: 1.5B (d2048 L24 ffn5632 h16x128), 16 GPUs, ~14.5h, ~35B tokens, batch 1.05M tok, warmup 500, decay last 30%.
# Plan / progress notes (started 2026-10-26 16:05 UTC; deadline ~15:35 UTC next day)

## Setup findings
- GPU image: torch 2.10, flash-attn 2.8.1, H100 80GB. Inter-node NCCL: 3.2GB all-reduce 14ms (425 GB/s bus) -> 2-node DDP is cheap.
- /workspace is 382 GB (not 5TB). Keep raw downloads + tokens under that.
- Downloads ~350 MB/s aggregate from HF and olmo-data.org.

## Data (Dolma v1.7 shards + DCLM-baseline parquet + FineWeb(-Edu) parquet)
- Dolma starcoder shards are sorted by language: 0000 c#, 0005 cpp, 0010 git-commits, 0020 java, 0025 js, 0030/0035 markdown, 0040 python, 0045 ?
- Tokenizer: byte-level BPE, Llama-3 regex, 65536 vocab, trained on 2.7GB mixed sample. ~4.3-4.7 bytes/token on web text.
- Tokenization throughput ~4M tok/s on 16 cores (bottleneck). ~34B tokens target.

## Model
- NanoLM: pre-norm, RMSNorm, QK-norm, RoPE, SwiGLU, untied embeddings, softcap 30, doc-masked varlen flash attention w/ position reset.
- HF export: custom code (configuration_nanolm.py / modeling_nanolm.py), validated with evaluate.py on CPU (tiny model): valid.
- Optimizer: Muon (lr 0.02, wd 0.01, momentum 0.95 nesterov; Keller scaling) + AdamW for embed (1e-3), head (3e-4), norms (3e-4).
- Schedule: warmup 500 steps, constant, linear decay to 0 over last 30% of a *time* budget.

## TODO
- smoke test on 1 GPU (job 1003) -> ablation (Muon vs AdamW, 8 GPUs) -> throughput test at target size -> main run on 16 GPUs

## Progress log
- 16:50 smoke test (1 GPU, 93M model) passed: train/ckpt/resume/export/evaluate.py valid (fp32 and bf16 identical BPB).
- 16:52 ablations (8 GPUs each, 350M model, 12 min, fineweb_edu): Muon(lr .02) vs AdamW(2e-3). step 600: 4.17 vs 4.49.
- memory: 16 seqs x 2048 w/ 65K vocab -> 34GB at 350M (logits dominate). Main run: batch_seqs 8, grad_accum 4.
- 17:10 ablation result @step3000 (end of decay): Muon 0.9722 bpb vs AdamW 0.9975 (fineweb_edu val). Muon chosen.
- BUG found+fixed: time-based stop/LR/ckpt decisions were per-rank -> ranks desynced at end (hang) + replica drift. Now rank 0 broadcasts elapsed & ckpt flag each step.
- Operational: while local prep processes hold files open, /workspace view here is stale (gpu sync refuses). Use gpu exec in a dev job to read live files, but a dev job blocks 16-GPU launches.
- 17:30 profile: 1-GPU fwd 107ms + bwd 234ms per 16K tokens (~43% MFU); data loading from network FS was the 2-node bottleneck -> loader now uses os.pread + 4 prefetch threads: 8 GPUs 0.345M tok/s (43K/GPU). Whole-model torch.compile recompiles every step with varlen attention -> keep partial compile.
- lr ablation (350M, 0.8B tok, 12 min): muon lr 0.01 -> 0.9741, lr 0.02 -> 0.9722 (wash). Main run: lr 0.015, wd 0.01.
- Plan main run: 1.5B (d2048 L24 ffn5632 h16x128), 16 GPUs, ~14.5h, ~35B tokens, batch 1.05M tok, warmup 500, decay last 30%.
- 17:47 Adam-LR ablation: embed 3e-3/head 1e-3/scalar 1e-3 -> 0.9569 vs baseline (1e-3/3e-4/3e-4) 0.9722 (-1.6%). Running 6e-3/2e-3/2e-3 and 1e-2/3e-3/3e-3.
# Plan / progress notes (started 2026-10-26 16:05 UTC; deadline ~15:35 UTC next day)

## Setup findings
- GPU image: torch 2.10, flash-attn 2.8.1, H100 80GB. Inter-node NCCL: 3.2GB all-reduce 14ms (425 GB/s bus) -> 2-node DDP is cheap.
- /workspace is 382 GB (not 5TB). Keep raw downloads + tokens under that.
- Downloads ~350 MB/s aggregate from HF and olmo-data.org.

## Data (Dolma v1.7 shards + DCLM-baseline parquet + FineWeb(-Edu) parquet)
- Dolma starcoder shards are sorted by language: 0000 c#, 0005 cpp, 0010 git-commits, 0020 java, 0025 js, 0030/0035 markdown, 0040 python, 0045 ?
- Tokenizer: byte-level BPE, Llama-3 regex, 65536 vocab, trained on 2.7GB mixed sample. ~4.3-4.7 bytes/token on web text.
- Tokenization throughput ~4M tok/s on 16 cores (bottleneck). ~34B tokens target.

## Model
- NanoLM: pre-norm, RMSNorm, QK-norm, RoPE, SwiGLU, untied embeddings, softcap 30, doc-masked varlen flash attention w/ position reset.
- HF export: custom code (configuration_nanolm.py / modeling_nanolm.py), validated with evaluate.py on CPU (tiny model): valid.
- Optimizer: Muon (lr 0.02, wd 0.01, momentum 0.95 nesterov; Keller scaling) + AdamW for embed (1e-3), head (3e-4), norms (3e-4).
- Schedule: warmup 500 steps, constant, linear decay to 0 over last 30% of a *time* budget.

## TODO
- smoke test on 1 GPU (job 1003) -> ablation (Muon vs AdamW, 8 GPUs) -> throughput test at target size -> main run on 16 GPUs
# Plan / progress notes (started 2026-10-26 16:05 UTC; deadline ~15:35 UTC next day)

## Setup findings
- GPU image: torch 2.10, flash-attn 2.8.1, H100 80GB. Inter-node NCCL: 3.2GB all-reduce 14ms (425 GB/s bus) -> 2-node DDP is cheap.
- /workspace is 382 GB (not 5TB). Keep raw downloads + tokens under that.
- Downloads ~350 MB/s aggregate from HF and olmo-data.org.

## Data (Dolma v1.7 shards + DCLM-baseline parquet + FineWeb(-Edu) parquet)
- Dolma starcoder shards are sorted by language: 0000 c#, 0005 cpp, 0010 git-commits, 0020 java, 0025 js, 0030/0035 markdown, 0040 python, 0045 ?
- Tokenizer: byte-level BPE, Llama-3 regex, 65536 vocab, trained on 2.7GB mixed sample. ~4.3-4.7 bytes/token on web text.
- Tokenization throughput ~4M tok/s on 16 cores (bottleneck). ~34B tokens target.

## Model
- NanoLM: pre-norm, RMSNorm, QK-norm, RoPE, SwiGLU, untied embeddings, softcap 30, doc-masked varlen flash attention w/ position reset.
- HF export: custom code (configuration_nanolm.py / modeling_nanolm.py), validated with evaluate.py on CPU (tiny model): valid.
- Optimizer: Muon (lr 0.02, wd 0.01, momentum 0.95 nesterov; Keller scaling) + AdamW for embed (1e-3), head (3e-4), norms (3e-4).
- Schedule: warmup 500 steps, constant, linear decay to 0 over last 30% of a *time* budget.

## TODO
- smoke test on 1 GPU (job 1003) -> ablation (Muon vs AdamW, 8 GPUs) -> throughput test at target size -> main run on 16 GPUs

## Progress log
- 16:50 smoke test (1 GPU, 93M model) passed: train/ckpt/resume/export/evaluate.py valid (fp32 and bf16 - 18:05 Adam-LR round 2: 6e-3/2e-3/2e-3 -> 0.9501; 1e-2/3e-3/3e-3 -> 0.9465 (still improving, diminishing). Main run uses 6e-3/2e-3/2e-3 (conservative for 10x longer horizon).
- 18:20 rehearsal w/ 8-source mix OK. Batched validation (fixed non-contiguous targets bug). Extra data: dclm2 (+3.5B), pes2o-0001 (+~1.5B) queued.
- Main run cmd: /workspace/code/go_main.sh ; final: finalize.sh <ckpt> (export fp32 + evaluate.py on val_all.jsonl)
# Plan / progress notes (started 2026-10-26 16:05 UTC; deadline ~15:35 UTC next day)

## Setup findings
- GPU image: torch 2.10, flash-attn 2.8.1, H100 80GB. Inter-node NCCL: 3.2GB all-reduce 14ms (425 GB/s bus) -> 2-node DDP is cheap.
- /workspace is 382 GB (not 5TB). Keep raw downloads + tokens under that.
- Downloads ~350 MB/s aggregate from HF and olmo-data.org.

## Data (Dolma v1.7 shards + DCLM-baseline parquet + FineWeb(-Edu) parquet)
- Dolma starcoder shards are sorted by language: 0000 c#, 0005 cpp, 0010 git-commits, 0020 java, 0025 js, 0030/0035 markdown, 0040 python, 0045 ?
- Tokenizer: byte-level BPE, Llama-3 regex, 65536 vocab, trained on 2.7GB mixed sample. ~4.3-4.7 bytes/token on web text.
- Tokenization throughput ~4M tok/s on 16 cores (bottleneck). ~34B tokens target.

## Model
- NanoLM: pre-norm, RMSNorm, QK-norm, RoPE, SwiGLU, untied embeddings, softcap 30, doc-masked varlen flash attention w/ position reset.
- HF export: custom code (configuration_nanolm.py / modeling_nanolm.py), validated with evaluate.py on CPU (tiny model): valid.
- Optimizer: Muon (lr 0.02, wd 0.01, momentum 0.95 nesterov; Keller scaling) + AdamW for embed (1e-3), head (3e-4), norms (3e-4).
- Schedule: warmup 500 steps, constant, linear decay to 0 over last 30% of a *time* budget.

## TODO
- smoke test on 1 GPU (job 1003) -> ablation (Muon vs AdamW, 8 GPUs) -> throughput test at target size -> main run on 16 GPUs
# Plan / progress notes (started 2026-10-26 16:05 UTC; deadline ~15:35 UTC next day)

## Setup findings
- GPU image: torch 2.10, flash-attn 2.8.1, H100 80GB. Inter-node NCCL: 3.2GB all-reduce 14ms (425 GB/s bus) -> 2-node DDP is cheap.
- /workspace is 382 GB (not 5TB). Keep raw downloads + tokens under that.
- Downloads ~350 MB/s aggregate from HF and olmo-data.org.

## Data (Dolma v1.7 shards + DCLM-baseline parquet + FineWeb(-Edu) parquet)
- Dolma starcoder shards are sorted by language: 0000 c#, 0005 cpp, 0010 git-commits, 0020 java, 0025 js, 0030/0035 markdown, 0040 python, 0045 ?
- Tokenizer: byte-level BPE, Llama-3 regex, 65536 vocab, trained on 2.7GB mixed sample. ~4.3-4.7 bytes/token on web text.
- Tokenization throughput ~4M tok/s on 16 cores (bottleneck). ~34B tokens target.

## Model
- NanoLM: pre-norm, RMSNorm, QK-norm, RoPE, SwiGLU, untied embeddings, softcap 30, doc-masked varlen flash attention w/ position reset.
- HF export: custom code (configuration_nanolm.py / modeling_nanolm.py), validated with evaluate.py on CPU (tiny model): valid.
- Optimizer: Muon (lr 0.02, wd 0.01, momentum 0.95 nesterov; Keller scaling) + AdamW for embed (1e-3), head (3e-4), norms (3e-4).
- Schedule: warmup 500 steps, constant, linear decay to 0 over last 30% of a *time* budget.

## TODO
- smoke test on 1 GPU (job 1003) -> ablation (Muon vs AdamW, 8 GPUs) -> throughput test at target size -> main run on 16 GPUs

## Progress log
- 16:50 smoke test (1 GPU, 93M model) passed: train/ckpt/resume/export/evaluate.py valid (fp32 and bf16 - 18:05 Adam-LR round 2: 6e-3/2e-3/2e-3 -> 0.9501; 1e-2/3e-3/3e-3 -> 0.9465 (still improving, diminishing). Main run uses 6e-3/2e-3/2e-3 (conservative for 10x longer horizon).
- 18:20 rehearsal w/ 8-source mix OK. Batched validation (fixed non-contiguous targets bug). Extra data: dclm2 (+3.5B), pes2o-0001 (+~1.5B) queued.
- Main run cmd: /workspace/code/go_main.sh ; final: finalize.sh <ckpt> (export fp32 + evaluate.py on val_all.jsonl)
- 18:59 MAIN RUN launched: job 'main', 2x8 H100, 14h35m limit, train_minutes 830, wall_limit 868, 1.5B params, mix of 23 sources (40.4B tokens avail). Expect ~0.68M tok/s -> ~34B tokens. GPU-hours left after hold: ~5.7.
 (not 5TB). Keep raw downloads + tokens under that.
- Downloads ~350 MB/s aggregate from HF and olmo-data.org.

## Data (Dolma v1.7 shards + DCLM-baseline parquet + FineWeb(-Edu) parquet)
- Dolma starcoder shards are sorted by language: 0000 c#, 0005 cpp, 0010 git-commits, 0020 java, 0025 js, 0030/0035 markdown, 0040 python, 0045 ?
- Tokenizer: byte-level BPE, Llama-3 regex, 65536 vocab, trained on 2.7GB mixed sample. ~4.3-4.7 bytes/token on web text.
- Tokenization throughput ~4M tok/s on 16 cores (bottleneck). ~34B tokens target.

## Model
- NanoLM: pre-norm, RMSNorm, QK-norm, RoPE, SwiGLU, untied embeddings, softcap 30, doc-masked varlen flash attention w/ position reset.
- HF export: custom code (configuration_nanolm.py / modeling_nanolm.py), validated with evaluate.py on CPU (tiny model): valid.
- Optimizer: Muon (lr 0.02, wd 0.01, momentum 0.95 nesterov; Keller scaling) + AdamW for embed (1e-3), head (3e-4), norms (3e-4).
- Schedule: warmup 500 steps, constant, linear decay to 0 over last 30% of a *time* budget.

## TODO
- smoke test on 1 GPU (job 1003) -> ablation (Muon vs AdamW, 8 GPUs) -> throughput test at target size -> main run on 16 GPUs

## Progress log
- 16:50 smoke test (1 GPU, 93M model) passed: train/ckpt/resume/export/evaluate.py valid (fp32 and bf16 - 18:05 Adam-LR round 2: 6e-3/2e-3/2e-3 -> 0.9501; 1e-2/3e-3/3e-3 -> 0.9465 (still improving, diminishing). Main run uses 6e-3/2e-3/2e-3 (conservative for 10x longer horizon).
- 18:20 rehearsal w/ 8-source mix OK. Batched validation (fixed non-contiguous targets bug). Extra data: dclm2 (+3.5B), pes2o-0001 (+~1.5B) queued.
- Main run cmd: /workspace/code/go_main.sh ; final: finalize.sh <ckpt> (export fp32 + evaluate.py on val_all.jsonl)
- 18:59 MAIN RUN launched: job 'main', 2x8 H100, 14h35m limit, train_minutes 830, wall_limit 868, 1.5B params, mix of 23 sources (40.4B tokens avail). Expect ~0.68M tok/s -> ~34B tokens. GPU-hours left after hold: ~5.7.
- 19:10 main run #1 cancelled: 2.9 s/step on 2 nodes. Profile: opt phase 1.2 s due to 96 cross-node broadcasts; per-param all-reduces 120ms.
  Fixes: flat grad buffer (1 all_reduce), Muon updates exchanged via ONE all_reduce over disjoint slots (all_gather/broadcast are slow on this fabric: ~6 GB/s vs all_reduce ~100-200 GB/s). Now 1.52 s/step, 0.686M tok/s on 16 GPUs.
- 19:47 MAIN RUN #2 launched: job 'main', 14h15m, train_minutes 825, wall_limit 848. Expect ~34B tokens. ~6 GPU-hours reserve left.
exchanged via ONE all_reduce over disjoint slots (all_gather/broadcast are slow on this fabric: ~6 GB/s vs all_reduce ~100-200 GB/s). Now 1.52 s/step, 0.686M tok/s on 16 GPUs.
- 19:47 MAIN RUN #2 launched: job 'main', 14h15m, train_minutes 825, wall_limit 848. Expect ~34B tokens. ~6 GPU-hours reserve left.
- 20:45 main run healthy: step 2600 loss 2.81, 0.675M tok/s, replica check exact. First ckpt step2270 exported to /workspace/final_model (fp32) -> evaluate.py valid (CPU, 23 docs: bpb 1.0185). Monitoring-only bug: in-run val drops sources with <128 seqs (fixed in code for any restart). Plan: refresh fallback export every few hours; at job end (~10:00 UTC) run finalize.sh in a 1-GPU job (6 GPU-h reserve).
exchanged via ONE all_reduce over disjoint slots (all_gather/broadcast are slow on this fabric: ~6 GB/s vs all_reduce ~100-200 GB/s). Now 1.52 s/step, 0.686M tok/s on 16 GPUs.
- 19:47 MAIN RUN #2 launched: job 'main', 14h15m, train_minutes 825, wall_limit 848. Expect ~34B tokens. ~6 GPU-hours reserve left.
exchanged via ONE all_reduce over disjoint slots (all_gather/broadcast are slow on this fabric: ~6 GB/s vs all_reduce ~100-200 GB/s). Now 1.52 s/step, 0.686M tok/s on 16 GPUs.
- 19:47 MAIN RUN #2 launched: job 'main', 14h15m, train_minutes 825, wall_limit 848. Expect ~34B tokens. ~6 GPU-hours reserve left.
- 20:45 main run healthy: step 2600 loss 2.81, 0.675M tok/s, replica check exact. First ckpt step2270 exported to /workspace/final_model (fp32) -> evaluate.py valid (CPU, 23 docs: bpb 1.0185). Monitoring-only bug: in-run val drops sources with <128 seqs (fixed in code for any restart). Plan: refresh fallback export every few hours; at job end (~10:00 UTC) run finalize.sh in a 1-GPU job (6 GPU-h reserve).
- 06:43 UTC: step 25460 (26.7B tok), loss 2.468, lr_mult 0.665 (decay phase). val bpb fineweb_edu 0.800, wiki 0.783, books 0.931, python 0.513. Fallback export at step 25402. Run ends ~09:30 UTC; then export ckpt_final (CPU) + final_eval.sh (1 GPU).
exchanged via ONE all_reduce over disjoint slots (all_gather/broadcast are slow on this fabric: ~6 GB/s vs all_reduce ~100-200 GB/s). Now 1.52 s/step, 0.686M tok/s on 16 GPUs.
- 19:47 MAIN RUN #2 launched: job 'main', 14h15m, train_minutes 825, wall_limit 848. Expect ~34B tokens. ~6 GPU-hours reserve left.
exchanged via ONE all_reduce over disjoint slots (all_gather/broadcast are slow on this fabric: ~6 GB/s vs all_reduce ~100-200 GB/s). Now 1.52 s/step, 0.686M tok/s on 16 GPUs.
- 19:47 MAIN RUN #2 launched: job 'main', 14h15m, train_minutes 825, wall_limit 848. Expect ~34B tokens. ~6 GPU-hours reserve left.
- 20:45 main run healthy: step 2600 loss 2.81, 0.675M tok/s, replica check exact. First ckpt step2270 exported to /workspace/final_model (fp32) -> evaluate.py valid (CPU, 23 docs: bpb 1.0185). Monitoring-only bug: in-run val drops sources with <128 seqs (fixed in code for any restart). Plan: refresh fallback export every few hours; at job end (~10:00 UTC) run finalize.sh in a 1-GPU job (6 GPU-h reserve).
exchanged via ONE all_reduce over disjoint slots (all_gather/broadcast are slow on this fabric: ~6 GB/s vs all_reduce ~100-200 GB/s). Now 1.52 s/step, 0.686M tok/s on 16 GPUs.
- 19:47 MAIN RUN #2 launched: job 'main', 14h15m, train_minutes 825, wall_limit 848. Expect ~34B tokens. ~6 GPU-hours reserve left.
exchanged via ONE all_reduce over disjoint slots (all_gather/broadcast are slow on this fabric: ~6 GB/s vs all_reduce ~100-200 GB/s). Now 1.52 s/step, 0.686M tok/s on 16 GPUs.
- 19:47 MAIN RUN #2 launched: job 'main', 14h15m, train_minutes 825, wall_limit 848. Expect ~34B tokens. ~6 GPU-hours reserve left.
- 20:45 main run healthy: step 2600 loss 2.81, 0.675M tok/s, replica check exact. First ckpt step2270 exported to /workspace/final_model (fp32) -> evaluate.py valid (CPU, 23 docs: bpb 1.0185). Monitoring-only bug: in-run val drops sources with <128 seqs (fixed in code for any restart). Plan: refresh fallback export every few hours; at job end (~10:00 UTC) run finalize.sh in a 1-GPU job (6 GPU-h reserve).
- 06:43 UTC: step 25460 (26.7B tok), loss 2.468, lr_mult 0.665 (decay phase). val bpb fineweb_edu 0.800, wiki 0.783, books 0.931, python 0.513. Fallback export at step 25402. Run ends ~09:30 UTC; then export ckpt_final (CPU) + final_eval.sh (1 GPU).
- 09:32 UTC MAIN RUN COMPLETED: 31815 steps, 33.36B tokens. Final in-run val bpb: fineweb_edu 0.760, wiki 0.743, books 0.869, arxiv 0.738, python 0.476, dclm 0.910. ckpt_final exported (fp32) to /workspace/final_model; final_eval job launched (1 GPU).
 valid (CPU, 23 docs: bpb 1.0185). Monitoring-only bug: in-run val drops sources with <128 seqs (fixed in code for any restart). Plan: refresh fallback export every few hours; at job end (~10:00 UTC) run finalize.sh in a 1-GPU job (6 GPU-h reserve).
- 06:43 UTC: step 25460 (26.7B tok), loss 2.468, lr_mult 0.665 (decay phase). val bpb fineweb_edu 0.800, wiki 0.783, books 0.931, python 0.513. Fallback export at step 25402. Run ends ~09:30 UTC; then export ckpt_final (CPU) + final_eval.sh (1 GPU).
- 09:32 UTC MAIN RUN COMPLETED: 31815 steps, 33.36B tokens. Final in-run val bpb: fineweb_edu 0.760, wiki 0.743, books 0.869, arxiv 0.738, python 0.476, dclm 0.910. ckpt_final exported (fp32) to /workspace/final_model; final_eval job launched (1 GPU).
- 09:42 UTC final_eval (GPU, fp32, 100 docs/domain x 23): valid, mean bpb 0.6874 (byte-weighted 0.690). Backup copy: /workspace/final_model_v1.
- 09:50 UTC continued training 'cont' (8 GPUs, 48 min, ~1B tokens, re-warm to 0.27x peak LR then linear decay) from ckpt_final with --reset_schedule. Will swap into final_model only if eval improves.
 valid (CPU, 23 docs: bpb 1.0185). Monitoring-only bug: in-run val drops sources with <128 seqs (fixed in code for any restart). Plan: refresh fallback export every few hours; at job end (~10:00 UTC) run finalize.sh in a 1-GPU job (6 GPU-h reserve).
- 06:43 UTC: step 25460 (26.7B tok), loss 2.468, lr_mult 0.665 (decay phase). val bpb fineweb_edu 0.800, wiki 0.783, books 0.931, python 0.513. Fallback export at step 25402. Run ends ~09:30 UTC; then export ckpt_final (CPU) + final_eval.sh (1 GPU).
- 09:32 UTC MAIN RUN COMPLETED: 31815 steps, 33.36B tokens. Final in-run val bpb: fineweb_edu 0.760, wiki 0.743, books 0.869, arxiv 0.738, python 0.476, dclm 0.910. ckpt_final exported (fp32) to /workspace/final_model; final_eval job launched (1 GPU).
 valid (CPU, 23 docs: bpb 1.0185). Monitoring-only bug: in-run val drops sources with <128 seqs (fixed in code for any restart). Plan: refresh fallback export every few hours; at job end (~10:00 UTC) run finalize.sh in a 1-GPU job (6 GPU-h reserve).
- 06:43 UTC: step 25460 (26.7B tok), loss 2.468, lr_mult 0.665 (decay phase). val bpb fineweb_edu 0.800, wiki 0.783, books 0.931, python 0.513. Fallback export at step 25402. Run ends ~09:30 UTC; then export ckpt_final (CPU) + final_eval.sh (1 GPU).
- 09:32 UTC MAIN RUN COMPLETED: 31815 steps, 33.36B tokens. Final in-run val bpb: fineweb_edu 0.760, wiki 0.743, books 0.869, arxiv 0.738, python 0.476, dclm 0.910. ckpt_final exported (fp32) to /workspace/final_model; final_eval job launched (1 GPU).
- 09:42 UTC final_eval (GPU, fp32, 100 docs/domain x 23): valid, mean bpb 0.6874 (byte-weighted 0.690). Backup copy: /workspace/final_model_v1.
- 09:50 UTC continued training 'cont' (8 GPUs, 48 min, ~1B tokens, re-warm to 0.27x peak LR then linear decay) from ckpt_final with --reset_schedule. Will swap into final_model only if eval improves.
- 10:45 UTC continued-training variant v2 evaluated: mean bpb 0.6885 vs 0.6874 for the main-run final (worse on 19/23 domains) -> REJECTED. /workspace/final_model = main-run ckpt_final (step 31815, fp32), identical to backup /workspace/final_model_v1. Final eval JSON: /workspace/final_eval.json.