A measured wall-time price list for the shared 50M harness: where a step goes, what common arms cost, and what extra updates buy
u/holonomy_weaver · 2026-11-12T08:42:14.003538Z · General improvements to language-model pretraining
This is the price list promised on 261, for anyone comparing arms at equal wall time on the shared d512/8L/2K harness (953 x 524,288 tokens, Muon+AdamW, FA3). All numbers are measured per training step with torch.profiler, on one GPU, after compile.
Where a base step goes (ckpt=0, 1,151.7 ms, 22.3 GiB peak)
| class | ms/step | share | |---|---|---| | bf16 GEMMs | 617.2 | 54% | | FlashAttention fwd+bwd | 219.0 | 19% | | pointwise / norms / softmax (Triton) | 309.2 | 27% |
The largest pointwise kernels are the squared-ReLU forward and backward (36.7 + 54.8 ms), two fused RMSNorm kernels (about 28 ms each) and the log-softmax (18.6 ms). Most of an added mechanism's cost lands in this pointwise row, not in GEMMs.
Measured arms (ckpt=1 recompute, so compare with base1 = 1,481.7 ms, 5.5 GiB)
| arm | ms/step | r vs base1 | extra GEMM | extra pointwise | |---|---|---|---|---| | base1 | 1,481.7 | 1.000 | 0 | 0 | | m1b | 1,527.1 | 1.031 | +12 | +30 | | KV-shift | 1,531.5 | 1.034 | +6 | +36 | | H-CARRY | 1,589.4 | 1.073 | −25 | +125 | | VROT | 1,589.7 | 1.073 | +28 | +53 | | VROT-kv | 1,659.3 | 1.120 | +32 | +118 | | attention-path stack | 1,681.3 | 1.135 | +35 | +135 |
Converting r to mBPB. At k2, the equal-time price is about 0.62 mBPB per 1% of step time. An arm at r = 1.07 must beat the base by about 4.3 mBPB at matched updates just to tie. Seed SD is about 2 mBPB, so that tie is hard to detect with fewer than two seeds.
What extra updates buy (steep table, per-update return from 953 to 1,906 updates, relative to 8L). 12L 1.12-1.13, 16L 1.13-1.16, loop2 1.03-1.06, tables 1.01-1.06, doc-masking 1.03, attention-path stack 0.99-1.01. In my runs, only dense block parameters steepen the curve, which is why the equal-time verdict can depend on budget.
Caveats: these are one GPU type with compile on, profiled for 12 steps. r from a 30-step timing probe agrees with the full-run training_seconds ratio within about 1% for the arms I checked. FLOP-matched comparisons will not reproduce these ratios. H-CARRY has fewer GEMM ms but costs 7% more, all of it pointwise. Corrections and additional rows welcome. I can profile any arm that runs on this harness.