snapshot 2026-11-21

LocalTraining: our training wiki

Everything we know about training models on our own box (7900 XTX, ROCm) and on Kaggle. Cards per section. Items under From papers are paper claims, not measured here. Harvest items were read by 3 haiku readers and not re-verified.

Built from ~/Brain/LocalTraining/README.md by tools/daypages.mojo (rebuild: .work/day-2026-11-21/build.sh). Day report: report.html.

One hub for everything we know about training models on our own box (7900 XTX, ROCm) and on Kaggle.

Every lane adds one dated line and a link here in the same turn as any training event. This covers preregs, runs, arm results, recipe or data lessons, trainer changes, and failed or stopped runs. Link to the project note or receipt for details. Fix stale entries when found. The wiki line is required before a lane report or DONE is complete. [protocols/lanes/partner-workflow#1. Memory, same turn as the event]

Lessons that transfer (receipts in the linked notes)
#lessonreceipt
1Seed noise first: one config, 2 seeds, before any A/B. Gain bar = 2x seed spread.filament 0.026 -> 0.0006 spread with prior init ([kaggle.com/2026-11-10-filament-day1])
2Rare-foreground segmentation: init output bias to log(p/(1-p)). Removes the empty-mask plateau, 3.2x faster to equal PQ.filament report "prior-bias fix"
3Measure the ceiling of the target before training (oracle = target as prediction) and the human agreement under the metric.filament: oracle 0.697, two humans 0.33
4Train on relevant bytes: crops on the object, uniform 512 crops beat full frames at equal compute.filament 0.4091 ([kaggle.com/2026-11-11-filament-baton-3])
5More high-res epochs ~ +0.010 PQ per doubling; stacks with crops.same
6Speed comes from the dtype/kernel path, not the model: fp16 picks Winograd on MIOpen, bf16 falls to im2col. 152 -> 35 ms/img.[kaggle.com/2026-11-10-filament-kernel]
7Short decisive runs: minutes per arm, shrink epochs, not the question.memory kaggle-short-decisive-runs
8Val vs leaderboard: calibrate with one submission early. Filament val 0.42 -> LB 0.35.this lane, 2026-11-15
9Check public notebooks on day 1: a public 0.70 detector+refiner existed while we built a 0.42 U-Net from scratch.2026-11-15
10Public weights trained on all train data leak into any local val: tune them on LB, not on train folds.2026-11-15
10bA public notebook's headline score can come from an old metric: "LB 0.70" (Dice, before the 2026-08-07 switch to PQ) re-scored 0.34 under PQ, byte-identical CSV. Check the metric date against the score date before trusting any public number.filament sub2, 2026-11-15
10c8-view dihedral TTA beats 2-view flip by +0.0036 PQ on both seeds (fold 0), 41 s per eval; a free inference win, test it before any retraining. Seed averaging of 2 models did not beat the best seed.filament recipe.md 2026-11-15
10dEnsemble (all-data + 5 folds) + 8-view TTA moved LB 0.35 -> 0.36; CV 0.4188. Val-LB gap ~0.06 persists; ensemble gain on LB ~ +0.01.[kaggle.com/2026-11-15-filament-final]
11Deadline from kaggle competitions list, never a brief.SINDEX tooling 2026-11-15
12Tiny n (24 samples): low-dim targets, leave-group-out, valid-curve repair; domain shift (phones) dominates.[kaggle.com/2026-11-10-soil-grain-size-joined]
13Online self-labels collapse (81.4 % -> 5.9 %): frozen generator per round, gate, rollback.[newera/2026-11-02-fast-training-inventory]
14Sweep lr first; it was our largest single measured gain (87.5 -> 99.9).same
15Check run arguments before calling a combination new; the 0.4091 crop arm already used spine. Treat old seed-spread margins as operational, not significance.[kaggle.com/2026-11-15-filament-astra]
16Gate a trainer on raw per-tensor gradients vs an fp32 path, not on one Adam update (u ~ g/abs(g) hides magnitude) and not at one shape: an opt bit zeroed every q/k/v grad at D256 while both old gates passed.[mojo/mojo-baro/2026-11-19-63m-pipeline-review-fixes]
17Step time from ONE process after warm-up; subtracting two runs multiplied start-up jitter 20x (132-167 ms for a 134 ms step). Profiler gaps are not GPU stalls until an unprofiled run agrees.same, SINDEX gpu.md 2026-11-19
18Tokenizer before kernels for LM speed per text: bytes -> bpe8k (Qwen3 top 7,936 + bytes) = 3.59 bytes/id, ~3x text per second at equal ms/step.same
1963M text LM lr (S512 b32 AdamW, 600 updates): 3e-4 best, grid closed both sides (1e-4 and 6e-4 ~0.12 bpb worse); the toy-task 1e-4 did not transfer.same
20Kernel speed: occupancy before load width. Flash at 22 TFLOPS was LDS-per-wave bound; 8 waves sharing each tile cut fwd 844 -> 533, dq 685 -> 523, dkv 1193 -> 865 us; vector LDS loads changed nothing.same
21Elementwise fusion into linalg GEMM epilogues is net zero at 63M: swiglu fwd+bwd in the w3/dff epilogue removed 5.3 ms of swiglu kernels but the GEMMs grew +4.7 ms; STEADY 120.4 -> 120.3 ms (x3 interleaved), gate PASS, reverted. Wall A/B decides, not profiled busy.[mojo/mojo-baro/2026-11-19-swiglu-epilogue-falsified]
22Width raises MFU on the 7900 XTX: same kernels, D2048 L3 FF5632 (171M) 246 ms vs D1024 L5 (73M) 122 ms at S512 b32 = 70.7 vs 62.5 TFLOPS (6N + attn), ~57% vs ~51% of 123 TF; half the tokens/s. D1536 does not build (rms SIMD[D/32] needs a power of two).[mojo/mojo-baro/2026-11-19-swiglu-epilogue-falsified]
2363M schedule at 600 updates (lr 3e-4, 3 seeds): warmup 30 best 1.735 bpb (sd .007), no warmup 1.762, linear decay over the whole run hurts (1.79-1.82): decay only a tail (WSD).[mojo/mojo-baro/2026-11-19-muon-wsd]
24Muon NS is a damped polar, not an exact one (2610.30280): 5 quintic steps act like GD on normalised singular values below 1/l5 = 2e-3 (eps = l5^-2 ~ 4e-6) and like polar above; exact polar inverts the tiny tail and is slow near rank deficiency; ~1/4 of attention singular values sit in that tail (90M, 1.8B tokens). Our LPD v2 composed the exact polynomial in bf16 and blew up on that tail. Caching: momentum spectra are "nearly stationary" (App. H), raw gradients are not.[research/notes/2610.30280-muon-polar-lens]
25NormPre (2609.36692): normalize rows by Gram diagonal before NS, then optional spectral correction. Paper: 0.028-0.054 val loss below Muon at 124M-1.7B, 10k steps (T1); GPT-2 seed sd ~0.005. No sub-100M or 600-update data, so it is the one Muon-geometry change our closure did not test.[research/notes/2609.36692-normalize-then-precondition]
26Polar Switch PS2-55 (2 buffers, 14 products): paper says final loss similar to Newton-Schulz, FLOPs 0.80x at alpha=1 and 0.57x at alpha=2.75 (formula), runtime gain on B200 only. Coefficients are fp16-calibrated (s=1.005), bf16 untested. Paper: bf16 PE gave 15x worse polar drift and the same loss.[research/notes/2610.26742-polar-switch]
27Tokens per parameter first: the same 72.6M Metis at 400M tokens (5.5/param) vs 39M (0.5/param): test_bpb 1.664 -> 1.294 (cooldown alone 1.375 -> 1.294), LAMBADA ppl 80.2 -> 17.45, wiki-tail ppl 72.0 -> 20.5, tool use 22 -> 55 of 56, ARC-E 0.280 -> 0.322; PIQA flat (0.547).[mojo/mojo-baro/2026-11-20-metis-400m-round]
28Sequence-length warmup: S=2048 b=8 in the flat-lr phase, S=4096 b=4 in the cooldown, same 16,384 ids/update: 142 vs 169 ms/update (-16%); resume accepts the seq change. A pure-4096 quality arm was not run.same
29Save and queue cost: one checkpoint save ~1.9 s at 73M (832 MB, closure eval); save=200 cost 5% of step time, save once per chunk. On a shared card a lone 5-min chunk waited 90 s in the queue; K chunks in one gpu-wait job cost 11.5 s each.same
30Own BPE beats a cut vocab on own text: bpeq train (Mojo) 8k on 70% wiki + our parts: tools +38%, Brain +26%, transcripts +23%, math +13% bytes/token, wiki -0.2%; 16k about even at 73M (embedding + head cost).[mojo/mojo-baro/2026-11-20-metis-tokenizer-test]
31Measure the step before the next round: 63M at S2048 = 56 TFLOPS (46% MFU), 278 W of a 290 W cap (40.5 J/update); GEMMs run at ~82 TFLOPS, flash at ~34 TFLOPS (the lever), small norm/rope kernels 11%. A document mask is worth ~2-6% only when docs are long (wiki median ~4,100 ids).[mojo/mojo-baro/2026-11-20-metis-400m-round]
32Clock cap before power cap for training energy (63M trainer S2048, -100 mV, mclk 1250, forward pass of train-tune.sh, reverse pass pending): core 2700 147.9 ms 275 W 40.7 J/update (card power-limited at 2475 MHz); 2500 147.8 ms 255 W 37.6 J (-8% J, same speed); 2300 155.2 ms 232 W 36.0 J (-12%); 2200 161.5 ms 222 W 35.9 J; 2000 172.5 ms 210 W 36.2 J; cap 1800 once ran at 1197 MHz (265 ms, 40.2 J) and once at 1779 MHz (188.6 ms, 193 W, 36.4 J): the low-clock drop is intermittent, read sclk per arm. CPU package 31-41 W beside it (RAPL). Driver power cap min is 272 W: lower power only through clocks.mojo-baro miniagi/latent/train-tune.sh, .work/metis-opt/tune
33Vocabulary size by cost, not bytes per token: at 73M (D1024, tied embedding) 16,384 ids save 8.2% of the tokens and cost 12.9% more per update (head GEMM, loss, embedding backward); 8192 has the lowest tokens x step time, 12288 +2.8%, 24576 +7.4%. The Qwen pre-tokenizer already splits single digits (they cost 3.4% of the corpus tokens against 3-digit groups). Merges across spaces (superbpe) measure -11% tokens at the same V: untested for quality at this size. A step-time arm is one draw: 8 interleaved process starts per arm.[mojo/mojo-baro/2026-11-20-metis-tokenizer-v3]
34Compression is not learning speed: tokv3 (own BPE 8k, -6.9% tokens on the same 419 MB) vs the cut tokq, from zero, 1,780 updates, 2 seeds: bpb 1.5670 vs 1.5537 (tokv3 worse, within 2x seed spread). Judge a tokenizer by bits per byte at equal GPU time, at the run length that will be used.mojo-baro docs/plans/2026-11-20-metis-next-run.md Q1
35Small models do not survive Q4_0: Metis 73M x4096 as pure Q4_0 loops ("$41.9$ has two values of $x$...") and makes no tool call on host and phone; Q8_0 of the same weights calls the tool. Ship <100M models at Q8_0 (phone ARM Q8_0 path AB-Android 8e4dd9d, ids 3/3 equal host on Xiaomi + Flip4, decode 332-559 tok/s).AB-Android baro-ux .work/sweep/results.jsonl, 2026-11-21
36Harness before weights for tool use on a phone: dedupe + escape repair + repeat stop cut Metis runaways 1 -> 0, invented results 6 -> 3, tokens 3201 -> 866 on 8 cases, both phones equal; stop-at-</tool_call> did nothing (model already stops); few-shot and nudges hurt (copied text). final_ok stays 0/8: 5/8 cases need tools Metis never trained on, so train on the app's tool list.[AB-Android/2026-11-21-metis-harness] (Brain a63ac83ce), baro-ux docs/metis-harness.md
37Terse STE/arrow tool wording breaks a 0.5B model: Qwen2.5-0.5B 0/6 valid calls terse vs 6/6 plain at equal size (3408 vs 3416 chars); keep plain wording for small models, measure per model.AB-Android 70914bc, baro-ux .work/model-sweep.md
Failed (do not retry without a new reason)

Filament: instance head, crop refiner on corrupted GT, FP filter, native 2048, --think 4, mean teacher, copy-paste dreams, hysteresis, learned grouper (filament repo docs/report.md, docs/recipe.md).

LM tasks: EMA 0.995, lr 5e-3, beta2 0.95, wd 0.1, clip 0.25 (filament repo docs/levers.md).

Competitions

Filament segmentation 2026: repo ~/Projects/kaggle.com/competitions/filament-segmentation-2026 (docs/report.md, docs/recipe.md A/B log, docs/levers.md, docs/rules.md); [kaggle.com/2026-11-10-filament-day1], [kaggle.com/2026-11-10-filament-baton-2], [kaggle.com/2026-11-11-filament-baton-3], [kaggle.com/2026-11-10-filament-kernel-session].

Soil grain size from photos: [kaggle.com/2026-11-10-soil-grain-size-joined]; skills image-granulometry, small-n-curve-regression.

Kaggle infra (T4 kernels, quotas, submit): skill kaggle; [mojo/mojo-baro/2026-11-10-nvidia-via-kaggle].

Free GPU compute beyond Kaggle (limits, sign-up, UNVERIFIED marks): [LocalTraining/free-compute].

63M LM trainer (mojo-baro miniagi/latent, own Mojo kernels)

State + receipts: [mojo/mojo-baro/2026-11-19-63m-pipeline-review-fixes], [mojo/mojo-baro/2026-11-18-63m-ablation-44mfu], [mojo/mojo-baro/2026-11-17-63m-training-mfu].

Data: 6 GB enwiki prose (wikitext.mojo) -> wiki6g.u16 1.67B bpe8k ids; gates grad-gate / flash-gate / ckpt-gate (self-describing GGUF, closure + resume).

Tokenizer on own data (2026-11-20): BPE 8k trained on the Metis mix gives chat/tool/Brain text +19-30% bytes/token over bpeq, wiki-heavy corpus only 3%; 16k about even at 73M (embedding + head cost) [mojo/mojo-baro/2026-11-20-metis-tokenizer-test].

Current run (2026-11-21 evening): Metis sleep round, continued fine-tune of the x4096 Metis, arms A0-A2 (prereg) + A3-A5 (unregistered) x 3 seeds [mojo/mojo-baro/2026-11-21-metis-sleep-wake]. Done before it: 400M round [mojo/mojo-baro/2026-11-20-metis-400m-round], x4096 round (line below, 2026-11-21).

Baton: [mojo/mojo-baro/2026-11-19-metis-baton] (current: Metis prototype, harness, compact template, 4k context, tool plan); older [mojo/mojo-baro/2026-11-19-63m-baton]

Speed: ~120.5 ms/step at S512 b32 (16,384 ids), ~48% 6N MFU (149.6 at the start of 2026-11-19); realistic ceiling at D1024 ~57%. No multi-hour run until optimized (Mario).

Methods registry (every method built, flag, gate, bpb, status): [methods-63m.md](methods-63m.md)

Tokenizer 2026-11-21: bpeq stage 2 = BPE across spaces (SuperBPE idea, llama.cpp pre-type superbpe), t2 4096, V 8192: -14.0% corpus ids vs tokv3, gate 7/7 (lane-tokv3 03e8cd1, 0e01297); stage 1 byte-equal to the old trainer. Kept in ~/.cache/baro/metis/tok/x4096. Per-token ppl does not compare across tokenizers: use bits per byte. [mojo/mojo-baro/2026-11-20-metis-tokenizer-v3]

x4096 run (done 2026-11-21 05:27-06:22): same text as 400M re-encoded with x4096, lane-metis-kern K1 kernels, 11 chunks of ~5 min; result in the 2026-11-21 x4096 line below. Plan [mojo/mojo-baro/2026-11-21-overnight-plan]. Mistakes of the round: [SINDEX/tooling] 2026-11-21.

Trainer 2026-11-21: emixall=1 (run.mojo, 7b5d858) mixes a second u16 corpus into every update, not only the cooldown: floor(G b (it+1)) - floor(G b it) of b sequences, so G of all sequences over any span (G 0.3, b 8: 2,3,2,3,2). Receipt: update-0 loss 3.054 no mix vs 1.121 at G 0.99 from episodes. Continued fine-tune = init=params.f32 (fresh Adam) with LR/WARMUP/XARGS env in metis-train.sh; the x4096 test_bpb reproduces bit-exactly from an lr 0 update (1.2950694415526935).

Sleep trainer 2026-11-21 (lane sleep-trainer): frozen base, rank-r experts on FFN (+wo), router with a base-path option, same-update KL teacher, merge, experts.gguf. Before split-K, frozen + r64 LoRA took 161 ms vs dense 157 ms at 16k ids (expert ops ~40 ms, KL +60 ms). Hard top-k finite differences require the same selected experts across perturbations. [mojo/mojo-baro/2026-11-21-sleep-trainer-experts]

References (point here first)

MAX LLM book (Modular, GPT-2 in MAX, inference/serving only): [LocalTraining/max-llm-book/README]; full-read notes part1-3 beside it;

brainnet brain-ask --net text (store repo-max-llm-book). Use for model shapes, init, mask/attention rules, HF/GGUF weight mapping,

CPU-vs-GPU test pattern. It has NO training content: recipes stay in this wiki and training skill.

Latent training

[research/2026-09-28-model-training-and-latent-thoughts] (map), [research/2026-10-12-multi-model-latent-papers], [research/2026-10-14-training-free-networks].

AiTrainer: [AiTrainer/_index], [AiTrainer/notes/2026-09-30-regescore-latent-mini-model].

mojo-baro: [mojo/mojo-baro/2026-10-09-train-m0-m1], [mojo/mojo-baro/2026-10-09-miniagi-latent], [mojo/mojo-baro/2026-10-12-latent-wa-and-latent-skills], [mojo/mojo-baro/2026-10-10-papers-to-hidden-vectors-proposal], [mojo/mojo-baro/notes/2026-09-25-latent-checkpoint-fixture], [mojo/mojo-baro/2026-11-08-comfyui-latent-lora-import].

[mojo/mojo-gguf/2026-10-12-l3-lane-latent-metric], [hardware/AMDHQ/2026-09-21-latent-paper-study], [fly-connectome/notes/2026-09-30-latent-added-population-mechanics].

Skills: latent, latent-bridge-design, latent-fuser-training, latent-os-bench, latent-transfer-eval, latent-zero-train-arms.

Methods and protocols

Protocol: protocols/model-training/, protocols/model-bring-up/.

Skills: training, fast-competent-training, training-paper-levers, lora-comfyui-training, pytorch, optimize-for-rocm, memory-optimization, e-means (clustering; idea: cluster-balanced crop sampling, [research/papers/notes/2611.09501-e-means]).

Speed inventory: [newera/2026-11-02-fast-training-inventory]; ComfyUI speed A/B [gpu-media/ComfyUI/notes/2026-09-18-flux-speed-ab].

Our own methods (candidates to write up)

Consensus soft target (fraction of annotators) + prior-bias init + day-split folds: a 3-line recipe that matched a 30-epoch run in 1/3 the time.

Matryoshka decoder with learned "profile synapses" (idea, not measured): filament docs/levers.md.

Latent cache of encoder features to warm-start decoders (68 vs 152 ms/img).

Neuron implants (training-free fact edits in the engine): a T-Patcher patch with a Knowledge-Neurons value and no gradient; prior art (Geva, ROME, MEMIT, GRACE, T-Patcher, WISE) read in full, fixes for cross-firing keys (ROME subject-token key + C^-1 whitening): [mojo-neuron/2026-11-20-implants-prior-art]. Verdicts: Qwythos 20/20 exact [mojo-neuron/2026-11-13-implants-late-pass], Metis 6/20 [mojo-neuron/2026-11-19-metis-implants]; training-free key fixes (centring, whitening, C^-1, per-row tau) all fail at the answer position, the subject token separates [mojo-neuron/2026-11-20-implant-keys].

Filament segmentation 2026: final

Deadline 2026-11-16 11:59:59 UTC. Rank 730/1549 at public LB. Private LB pending. [kaggle.com/2026-11-15-filament-final]

sub1 convnext_tiny U-Net + spine, fold0: public PQ 0.35 (val 0.4176).

sub2 public I079 detector+refiner, reproduced: public PQ 0.34.

Final: 6-model ensemble (all-data + folds 0-4) + 8-view dihedral TTA, thr 0.7: public PQ 0.36.

5-fold CV: 0.4188 pooled PQ. 8-view TTA +0.0036 on both seeds.

Lesson: val ~0.42 vs LB 0.36, gap ~0.06 unexplained. LB shows 2 decimals, so +0.01 is within noise.

Open

Walk claude-chats/ and mojo/ for training notes without tags; add rows here.

2026-11-15: Test deadlines with ready and late evidence. [kaggle.com/2026-11-15-final-pipeline-review].

2026-11-15: Thin-structure/filament segmentation paper study (task-3 cards+synthesis, inference/short-train ideas). [LocalTraining/2026-11-15-thin-structure-papers.md].

2026-11-15: Complete 5-fold CV on solar filament segmentation (707 images): 0.4188 pooled PQ at thr 0.7 across 5 folds on ConvNeXt-Tiny U-Net.

2026-11-21: Metis trainer flash attention: forward -22 to -24%, dq -17% per launch, parameters byte-equal (register-packed P / dS, no ds_bpermute). Lesson: a kernel arm is judged at its VGPR step (192 / 216 / 240), and LDS instructions are counted from the ISA. [mojo/mojo-baro/2026-11-21-metis-kern-part2].

2026-11-21 Metis x4096 round: cross-space BPE tokenizer (-16% ids) + K1 kernels trained the 72.6M Metis in 52.2 GPU-min vs 61, test_bpb 1.2951 vs 1.294 (equal within 0.1%), toolgate 50/56 vs 55: fewer ids buy time, not quality. 5-min chunks resume byte-identically; between-chunk step-time drops without a change are warm-up. [mojo/mojo-baro/2026-11-22-metis-tok-x-round]

2026-11-21 Metis sleep round, wake set: own episodes of the 72.6M Metis on its train families keep 40% under checker + one-call + closed filter; arithmetic is the gap (1% pass, it calls brain_ask), and an unseen tool list makes it never close its think block. Lesson: own-episode data cannot teach a tool the model has never called; that needs teacher rows (A3). [mojo/mojo-baro/2026-11-21-metis-sleep-wake]

2026-11-21 Mojo trainer vs PyTorch twin (Kaggle default GPU = T4; first logged as P100, retracted: P100 is a retired shape that runs on the default T4), same start + exact replayed windows: loss diff <= 0.0015 over 200 updates, test_bpb -0.053% apart: PASS, so Kaggle arms compare with XTX arms. XTX 143.7 ms/update = 6.8x a P100 fp16. Restarting the converged Metis at lr 3e-4 with fresh warmup RAISED test_bpb 1.3254 -> 1.3531 (+2.1%) in both trainers: continue at lr <= 1e-4. [mojo/mojo-baro/2026-11-21-metis-kaggle] (mojo-baro docs/plans/2026-11-21-metis-kaggle-prereg.md)

2026-11-21 Weight edits do not fix Metis's runaway tool loops: neuron surgery (20 arms) and mojo-ablate (norm-preserving bake best, KEEP 0.608 < 0.80) both miss; the trigger is the tool-call grammar. Harness (dedupe + repeat stop) took phone runaways to 0. Train on single-call + lone-quote close rows instead. (mojo-neuron metis-surgery report; mojo-ablate docs/reports/2026-11-21-upgrade.md)

2026-11-21 Sleep-loop reviews (codex, agy): the 16-row dev gate has no app-tool rows. If the A1 parent matches the start score of 15/16, A2 can keep at most one round. The proposed 100-dream template check tests diversity. Skill gain needs held-out evaluation. Next prereg: 48-row app-native family-disjoint dev gate and retention against the original release. [mojo-baro/notes/2026-11-21-metis-sleep-partner-review]

2026-11-21 Metis prune / regrow prereg reviews (codex, agy): test1 selects the mask size and supplies the primary final endpoint. Add disjoint confirmation documents and a layer-matched random mask. At regrowth, zero down rows can learn on the first update while the gate/up loss gradients are initially zero. Verify the checkpoint fork and the first resumed update. [mojo-neuron/notes/2026-11-21-metis-prune-review]

2026-11-21 Metis sleep round, amendment 1 (before any A2 run or arm result): A2 runs only if the 100-dream sample passes the template check (top four normalised questions cover at most 70% of kept dreams). The frozen gate has 16 rows and excludes app-native calc and skill reader. Unregistered arms A3 (app-toolset teacher rows, web_fetch held out), A4 (verified reference rows for tool families with less than 30% episode keep rate), A5 (rehearsal 50 / reference rows 20 / own episodes 30). Prereg mojo-baro docs/plans/2026-11-21-metis-sleep-prereg.md (caeecd6). [mojo/mojo-baro/2026-11-21-metis-sleep-wake]

2026-11-21 Metis Kaggle step 4 prereg: arms K0 continued pretrain, K1 tool rehearsal, K2 lone-quote close spelling, K4 app tool rows (sleep A3 data), 600 updates, 3 seeds, lr tuned per arm on seed 1 by val_bpb (amendment 2: one shared lr broke "matched is not tuned"). CPU dry run on Kaggle (3 updates, whole path incl. gguf write) before the GPU push. [mojo/mojo-baro/2026-11-21-metis-kaggle]

2026-11-21 Metis sleep dream falsifier: 100 start-model dreams, 89 kept, top 4 normalised templates 21% (bar 70%), distinct 3-gram ratio 0.576: PASS, A2 runs. Dreams are noisy but not collapsed. [mojo/mojo-baro/2026-11-21-metis-sleep-wake]

2026-11-21 Metis Kaggle step 4 partner reviews (codex, agy): CPU replay of the revised runner verified matched K1/K2 source offsets and counted 1,185 / 1,073 / 972 retained rewrites inside marked tool calls across seeds 1–3. Insertions still change the 2,048-token context. General val_bpb selects for retention, while tool behavior needs a separate dev check. [Review](/home/mario/Projects/mojo/mojo-baro/.work/kaggle/review-step4.md.codex.md), [agy](/home/mario/Projects/mojo/mojo-baro/.work/kaggle/review-step4.agy.md)

2026-11-21 Metis sleep amendment 1 partner reviews (codex, agy): the frozen 19/89 whole-question template check passes (21% <= 70%), but argument-level diversity is unverified; A3/A4/A5 bundle multiple interventions and need token-level logging; web_fetch transfer tests app-context format adaptation rather than zero-shot generalization. [Review](/home/mario/Projects/mojo/mojo-baro/.work/briefs/2026-11-21-metis-sleep-amend1-review.md.codex.md), [agy](/home/mario/Projects/mojo/mojo-baro/.work/briefs/2026-11-21-metis-sleep-amend1-review.agy.md)

2026-11-21 Sleep-trainer lane partner review (agy): base dW savings claim (35 ms) exceeds empirical speedup (21.2 ms); unguarded base gradient write in lmodel.mojo line 919 under NBH>0; K5b router over {base, expert} faithfully matches prereg; top-k exclusion from central differences is sound due to selection step discontinuity. (mojo-baro-lanes/sleep-trainer docs/lanes/2026-11-21-sleep-trainer-review.md)

2026-11-21 Sleep-trainer pre-merge partner review: the FQKV fallback without DWG still writes base QKV gradients under freeze. Full-softmax gradient parity passes; top-2 needs a same-mask gradient check. [mojo-baro/notes/2026-11-21-sleep-trainer-partner-review]

Harvest 2026-11-21: mojo-baro transcripts + brain network (3 haiku readers, sources cited, not re-verified)

training-recipe (18)

Undertrained is not a sampling problem: proto2 (73M, 39M tokens, 0.5/param) loops at greedy and at temp 0.8 (6% distinct words, hits 16,000 cap); more data, not decoding settings, fixed it. (transcripts-1.md Metis proto2 chat, 2026-11-20)

Resume gate: stop and resume every 10 updates (4 checkpoints) gives byte-equal weights vs straight run; weights-only checkpoint without Adam moments differs, so the gate detects missing state. (transcripts-1.md resumable training, 2026-11-20)

Checkpoint every 200 updates (~34 s) bounds loss on interrupt to at most 200 updates; a resume must continue the saved global step, not restart lr decay (old bug made resumed runs a different run). (transcripts-1.md resumable training, 2026-11-20)

lr A/B decision rule frozen before run: 6e-4 vs 3e-4 difference 0.036 bpb under frozen bar 0.104, so 3e-4 stays; 3e-4 gave 1.661 and 1.679 vs 1.732 for 6e-4 on seed 1. (transcripts-1.md lr A/B, 2026-11-20)

LoRA on the 9B fits: model load 16.68 GB (15.4 s), a 300-token step 0.27 s, peak 18.25 GB; a 709-step LoRA run took 230 s with peak 19.22 GB. (transcripts-0.md:L2782-L2812)

Full Adam fine-tune of the last 4 layers of a 9B needs about 25 GB (about 1B trainable params) and does not fit a 24 GB card; caching the layer-27 outputs leaves only the top layers on the card. (transcripts-0.md:L3349-L3350, L3366-L3367)

Scale of a from-scratch run: 23.18M params (D512, 6 layers, V8192) at 129k tok/s, 81.5 ms per step at b=256, 1.8 GB VRAM; the 97M probe ran 88.5 ms/step at b=64; 1.59M ran at 7.8 ms/step. (transcripts-0.md:L4096-L4104, L4209, L4374)

Correction to the speed table: the 1.59M latent trainer runs at about 1.1M tok/s, so a 100M estimate of 100k tok/s was about 4.5x too high; retract scaling estimates built on it. (transcripts-0.md:L3409)

Rule count vs capacity in one 1.59M model: 3 rules 71-75% at 1000 updates, 5 rules 23-75%, 8 rules 11-13% at 3000 updates, then 8 rules reached 100% on 2 seeds at 12000 updates with a lower lr; learning curve before size. (transcripts-0.md:L4157-L4163, L4307, L4319-L4323)

Before calling a failure a capacity limit, rerun the same size with 3x the updates and the next lr down: 8 rules went from 11-13% to 100% with the same model. (transcripts-0.md:L4307, L4323)

Frozen-base specialists failed: 10 specialists on a frozen base reached 27.95-56.86% (bar 95%); a specialist on another rule fell to 5.3-7.7% (chance 6.25%); the same model trained from scratch on one rule hit 98-99.7%. (transcripts-0.md:L3910-L3916, L4163)

Adapting a base to a new rule reached 90% in at most 25 updates vs about 200 from scratch (8x), but adapting alone erased old shapes: 99% fell to 4-16%; a rehearsal mix kept all three shapes at 99%+. (transcripts-0.md:L4382-L4386, L4520, L4676, L4690)

Pointer-chasing toy: 6.6 tokens/param solved 8-hop chasing at 99.5%+, but language needs far more tokens per parameter; transcripts alone give about 0.7 tokens/param against the 20 tokens/param anchor, so the model will memorize unless open text fills the gap. (transcripts-0.md:L3415, L3431, L4088)

Packing: padding starved 83% of the gradient in one tiny transformer and dropped accuracy from 40% to 1% (paper 2610.09003, reported, not reproduced here). (transcripts-0.md:L3642 (paper note))

Small models do not follow written CoT: at 0.6B answers followed the written steps 16-18% of the time vs 97-100% at 14B (paper 2610.3, reported); CoT may do little in a 100M model. (transcripts-0.md:L3646)

ARC-style training: gradient placement mattered: (2,2) gave 71.16% OOD vs (1,3) 17.88% with the same number of applications; batch 8192 gave 63.16% OOD vs 37.71% for 2048 x 4 accumulated. (transcripts-0.md:L1996-L1997 (paper summary, not reproduced))

Diffusion-style looped layers give 2.8-3.3x fewer FLOPs on diffusion LMs (paper 2610.30066), not transferable to our model type without a test. (transcripts-0.md:L3644)

A 256 px LoRA on the image model took 3 min at 21.9 GB and 0.47 s/step (400 steps in 3 min 04 s); every 512 px run ran out of memory on this card. (transcripts-0.md:L6213, L6405)

data (2)

Calc rows from GSM8K word problems taught step-copying (48/2) and no direct arithmetic: 'What is 12 times 7?' never produced calc("12*7"); fix = add a calc kind to toolgen with 10% held out. (transcripts-1.md Metis tool data, 2026-11-20)

Round-trip check before training: a decoded data mix had one extra newline at EOF; the encoder fix returns identical bytes and the old encoder fails the same small test. (transcripts-1.md data mix, 2026-11-20)

eval-gate (12)

Sleep nightly gate: test_bpb may rise at most 0.2% per night and at most 0.5% total on a fixed anchor against the original release. (transcripts-1.md sleep loop plan, 2026-11-21)

Spark agreement with llama.cpp oracle: teacher-forced 99.7% mean, 96.2% min over 20 prompts (PASS) at 1,513 tok/s; later rerun 98.4% min over 19 prompts. (transcripts-1.md spark gate, 2026-11-20 to 11-21)

Gate detects a missing QK-norm: correct build 99.8% mean / 96.9% min teacher-forced agreement; mutant without q/k norm 43.6% mean / 17.2% min with 17 of 20 prompts below the 90% bar. (transcripts-1.md QK-norm gate, 2026-11-20)

Tool data scale used for Metis: js 858/128, brain 472/66, web 224/12 train/held-out rows; toolgate 22 of 56 answers used a tool result vs 0 for the no-tool arm (predicted at least 17). (transcripts-1.md toolgate, 2026-11-20)

Token parity on phone: 17 of 20 prompts match llama.cpp CPU exactly, the same as llama.cpp's own OpenCL arm (17/20); per-kernel fp64 oracle 11 of 11 pass. (transcripts-1.md phone kernels, 2026-11-20)

Re-measure old comparison rows in a same-stint job before quoting them: a 7-week-old 0.94x row flipped to 1.065x with no q8 kernel round. (transcripts-0.md:L197-L215)

Teacher-forced agreement control: our engine forced with its own ids reads 99.5-99.7%, which is the measurement floor; llama.cpp agrees with itself at a different --parallel on only 91.4% of forced positions, and greedy prefix match across parallel settings is only ~25%. (transcripts-0.md:L5825-L5848, L6051, L5974)

A llama.cpp reference is not exact: the f64 forward of vibethinker-1.5B scores 100/100 against itself, but llama.cpp reaches only 52 of 64 tokens against that same f64 model, so an llama.cpp token gate cannot be the bar. (transcripts-0.md:L6001, L7317-L7340 (df2f541c, vibethinker row))

Gate scripts that exit 0 on an empty number are bugs: baro_arm.sh counted empty decode_tok_s as a pass; fixed to FAIL and exit 1. (transcripts-0.md:L118 (cea30c88 2026-10-26))

A gate that greps for a value under set -e can end the script before its FAIL line: 3 gates could never fail; fix by testing the value explicitly. (transcripts-0.md:L6719)

Held-out arithmetic shapes: trained shapes reach 99.5%+ with a chain, new expression shapes only 11-21% without adapting; a toy 100% is not evidence of general skill. (transcripts-0.md:L4411, L4537-L4538)

Paper claim check: an ARC model's README reported 0.83% pass@1 (1.67% in W&B) and train vs eval exact 76.8% vs 1.2%; the 2.4 GB file against 6.83M params came from a 512-dim per-puzzle embedding. (transcripts-0.md:L1954-L1962)

tokenizer (1)

Retraining on a new tokenizer costs a full run from zero (about 65 GPU-min, 0.27 kWh) and makes the current checkpoint useless for continued training. (transcripts-1.md tokenizer switch cost, 2026-11-21)

distill-selftrain (2)

Dreams answered by the same model that failed add no new skill; strongest prior null, matching two earlier self-distill nulls, so cheapest falsifier first. (transcripts-1.md sleep-loop review, 2026-11-21)

Self-training on its own answer-filtered chains collapsed the model from 81.4% to 5.9% (chance) in 300 updates; the answer filter cannot reject a chain that is wrong but self-consistent. Retry only with a frozen generator per round and a val gate. (transcripts-0.md:L3435, L3471, L3476, L6447)

latent (7)

Latent merge needs a shared tokenizer and equal width: same-family models share vocab (Qwen3.5 248,320 tokens) so no vocab map; different widths need a Procrustes fit or trained bridge. (transcripts-1.md multi-model latent papers, 2026-10-12)

Soft latent vector carries roughly the same token as text (19/20 on Flash), so any gain over text needs a control arm. (transcripts-1.md latent bridge, 2026-10-30)

Toy 8-hop pointer chasing: soft thought feedback reached 99.54-99.73% test in 5.9-8.5 s, a greedy text control tied within 0.08 pp, while raw hidden-state feedback ties text at lr 1e-3 but collapses to 32-35% at lr 3e-3. (transcripts-0.md:L3458-L3470, L6445-L6446)

Neuron lookup works only when each hop is taught with a readout loss on the true link: real 98-98.9% vs shuffled 24-26%; with the answer loss alone, real equals none at about 32%. (transcripts-0.md:L4405, L4409)

Latent stage warm-started from a text checkpoint reached only 27.6-36.3% at every lr tried; train the latent core from scratch. (transcripts-0.md:L3774)

Diffusion-free kNN latent idea killed; the working path is soft feedback with trained W_a and W_b, since raw feedback gave 25% against 99.9% for soft. (transcripts-0.md:L1145, L1811-L1812)

Cross-model KV transfer: a KV Cache Translation paper reports 95% of native accuracy across Llama, Gemma and Qwen (paper claim, not measured here). (transcripts-0.md:L1883-L1887)

quantization (3)

Ornith Q4_K_M native K-quant pack (kq, no requantize) decodes 1.036x llama.cpp on the launch path (96.64 vs 93.25 tok/s, 20/20 prompts) with agreement median 98.44%, min 90.62%, control 97.66%; with the megakernel 99.53 vs 94.14 tok/s = 1.057x. (transcripts-0.md:L312-L325, L613-L624 (df2f541c/mojo-baro sessions, late Oct 2026))

Requantizing Q4_K/Q6_K weights to q4_0 rules gave 1.579x decode speed but failed teacher-forced agreement (median 92.97%, min 79.69% vs bar median 95 / min 85): a speed ratio without an agreement number is not a result. (transcripts-0.md:L219-L247)

Speed claims need same-job arms: llama.cpp ahead on Q4_K_M at 0.86x was because our q8 pack reads twice the weight bytes; the same-stint 1.036x came only after the native kq pack. (transcripts-0.md:L221-L226, L253)

local-llm-serving (15)

Metis 73M serving speed: llama.cpp Q8_0 CPU 1,909 tok/s vs GPU 1,403 tok/s; 5 layers keep the GPU launch-bound, so the CPU wins decode for small models. (transcripts-1.md Metis bench, 2026-11-20)

Speed standard split: chat on Q8_0 CPU (1,909 tok/s) and gates on F32 GPU (1,330 tok/s vs 221 for CPU F32); measure per use, not one device. (transcripts-1.md Metis speed standard, 2026-11-20)

Own engine (spark) Metis decode 1,478 tok/s median over 20 prompts on GPU with q8 pack vs llama.cpp GPU 1,330; but llama.cpp CPU Q8_0 still 1,909; batched prefill about 10x slower than llama.cpp. (transcripts-1.md spark port, 2026-11-20)

Context budget: 615 prompt tokens plus 16,000 max_tokens did not fit a 16,384 engine context; rebuilt serving at 32,768 (KV about 1.3 GB). (transcripts-1.md serve context, 2026-11-20)

Phone GPU (Adreno 840) Qwen3-8B Q4_0 decode 13.88 tok/s vs llama.cpp OpenCL 11.89 (1.167x), but GPU prefill 0.10x of llama.cpp; decode is at 98% of memory floor (72.0 ms vs 70.4 ms), so fewer bytes per token is the only lever. (transcripts-1.md phone GPU kernels, 2026-11-20)

Qwythos q8 re-measured in one same-stint llama.cpp job: 80.38 vs 75.46 tok/s = 1.065x (faster on 19 of 20 prompts, 4 of 4 frozen predictions hit); the old 0.94x row (68.8 vs 74.1, 2026-09) was stale after seven weeks. (transcripts-0.md:L197-L215)

Speculative k=2 on the 27B MTP head moved decode 44.40 to ~62.9 tok/s, with draft acceptance about 68-69% (731 of 1073 drafted); the MTP draft block is 451 MB, about 3% of bytes per token. (transcripts-0.md:L4933-L4968, L5045-L5055, L5011)

Resident MoE pack spilling next to the desktop moves to GTT silently: 90 to 8.6 tok/s with no log line; a GTT-spill warning that refuses at exit 3 was tested on a real 21 GB spill and gave no false warning at 121.1 tok/s. (transcripts-0.md:L4404, L4342)

Serve path: a streaming detokenizer was quadratic: 10.9 s to 17 ms for 16,384 tokens (4,096 tokens: 0.69 s to 4 ms). (transcripts-0.md:L6708)

Long-context prefill at 32k: llama.cpp 13.18 s vs mojo-baro 17.42 s, so llama.cpp is 1.32x faster; an earlier claim that ours was 1.32x faster was wrong and was retracted. (transcripts-0.md:L152, L183-L185)

Pack rebuild is cheap to keep: a 21 GB pack rebuilt via the packer was byte-equal on the first 2.6 GB vs the oracle; tier-mode fit uses pack-fit with 5.54 GB headroom at 16K. (transcripts-0.md:L1072-L1079)

Serving under load: 100 concurrent requests gave 64 x 200 and 36 x 429 with no 5xx; the server stayed up. (transcripts-0.md:L5691)

Our server is 3.1x faster than llama-server at N=20 (llama-server 108 s), but the 8 s step target was still missed by 4.3x; the N=50 llama run hit its context cap at 291,200 tokens. (transcripts-0.md:L5889, L5898, L6072-L6075)

Prefill is about 56% of engine time under many sessions; batching prefills across sessions is the next serve lever. (transcripts-0.md:L6173, L5704)

A K-quant pack with a dense 27B at 16K fits next to the desktop with 19.3 GB estimated; Q5_K_M 21.2 GB has too little headroom and Q6_K/Q8_0 do not fit resident. (transcripts-0.md:L969-L977)

kernels-speed (18)

Step breakdown at S2048 (145.8 ms): GEMM about 60% of step at 82 TFLOPS; flash about 34 TFLOPS; measured WMMA ceiling 104 TFLOPS (436 FLOP/clk/CU at 2.49 GHz), so the 56 TFLOPS trainer is 54% of practical ceiling. (transcripts-1.md Metis step profile, 2026-11-20)

Second GPU stream for small kernels measured not worth building: the six small kernels already run at 730-880 GB/s, the cache ceiling, and GEMMs fill every CU. (transcripts-1.md F3 measurement, 2026-11-20)

A kernel that is 1.49x faster in a benchmark does nothing for a server user until serve calls it; wire the kernel into the served path and gate that path. (transcripts-1.md K2 wiring, 2026-11-21)

Attention kernel load-pattern change gave -34% on that kernel and bge_gpu total -20.9% (7.90 s vs 9.99 s) byte-identical; the premise GEMM 95% of time was cycle-count of one dispatch, rocprofv3 said attention 48%. (transcripts-1.md bge_gpu, 2026-11-20)

Baro ablation runs host-side with two syncs per component per layer per token: zero edit 7 s vs 3 s without; a device kernel would remove the syncs. (transcripts-1.md BARO_ABLATE, 2026-11-21)

K-quant prefill is the largest gap: 25.4x llama.cpp at 1K (7.625 s vs 0.300 s) and 21.8x at 16K (124.2 s vs 5.711 s); cost per prompt row is flat (~7.4 ms at 1K, 7.6 ms at 16K), i.e. one m=1 weight pass per row. (transcripts-0.md:L656-L668 (cea30c88 2026-10-26 and later run 8))

Batched K-quant B-staging (amar_matmul_prefill_q4 schedule) cut 16K prefill from 5.662 to 4.539 s-class (0.80x time) and 1K to 0.87x; A/B vs prior route 1.033x, at the floor of the predicted 1.03-1.15x band; Q6_K costs 1.16-1.17x per FLOP vs Q4_K. (transcripts-0.md:L724-L784)

K-quant megakernel first version was 0.585x the launch path (56.6 vs 96.7 tok/s) with 170 VGPR spills and a 96-block grid; identity 20/20 held, so the slowdown was speed only. (transcripts-0.md:L367-L409)

A spill count is not a cost: a spill in a rarely run path costs almost nothing; judge a kernel by wall A/B and wavewait cause, not by spill count alone. (transcripts-0.md:L802)

Turbo 27B: amar_turbo_rows (LDS-staged input rows, bit-identical) lifted the 3-row verify window from 61.12 to 68.72 tok/s in the same job = 1.124x; FFN gate 90.6 to 80.8 us. (transcripts-0.md:L4904-L4908 (ranges 4900-4910; rowbw lane))

Decode roofline for a 27B pass: 14.7 GB weights per pass at ~960 GB/s peak gives ~65 passes/s; speculation helps because one verify window reads the weights once for several tokens; the stated 110 tok/s ceiling was later corrected to ~154 tok/s with 2.36 bytes. (transcripts-0.md:L5065-L5075, L5119-L5121)

Launch gaps on the window trace were 8 ms of a 44 ms step (about 32% of wall was a first estimate, corrected); even removing all gaps gives at most ~1.2x. (transcripts-0.md:L5093, L5119-L5125)

Spec decoding on the dense 9B megakernel closed at 0.761x of the launch path; a fused spec window is a hard lever, not the first. (transcripts-0.md:L5099)

Largest MoE prefill cost was a host copy, not a kernel: copying 18.3 GB of expert data took about 1.5 s per chunk while kernels were 14% of wall; a 0.22x kernel rewrite gave only 2.7% prefill gain. (transcripts-0.md:L4436-L4445, L4547)

Profile at 23M, b=256: kernels sum to 83 ms vs 81.5 ms wall, so host overhead is near zero; the largest cost is the weight-gradient GEMM (tgemm_k) at about 35% of the step. (transcripts-0.md:L4124-L4143)

Same-job step time with another GPU job running was 10.4 ms vs 8.03 ms idle (about 30% slower): time the step with the card otherwise idle. (transcripts-0.md:L1281-L1283)

Measure bytes before fusing: at m=1 the lever is weight bytes per token, not launches; a 27B q4 pack at 14.7 GB per pass caps decode near 65 passes/s. (transcripts-0.md:L5065, L5034)

Measure the GEMM before calling a gap non-GEMM: a claimed 16x kernel gain was retracted; GEMMs read 53-63 TFLOPS, so the gap is at most about 4x and not in GEMMs alone. (transcripts-0.md:L3598-L3624)

tools-harness (7)

Template parity gate: one missing newline made the served system prompt differ from the trained text; a one-character change must fail the gate (passes 2/2 now). (transcripts-1.md chat template, 2026-11-20)

A gate a worker can pass by printing PASS is not a gate: ui-check printed PASS when a navigate was denied; four workers reporting DONE is four claims, not one check. (transcripts-1.md agent gates, 2026-11-20)

Tool arguments must be a string per the OpenAI spec: sending an object made every follow-up request after a tool call refused by baro-serve. (transcripts-1.md metis-chat fix, 2026-11-20)

Metis trainer had no KV cache, so generation took 3.3 h; eval generation needs a KV cache before any gate runs. (transcripts-1.md eval speed, 2026-11-20)

Web-model claims must be checked against code: a Gemini summary's 20,418 tok/s was a hard-coded return value; the real m=1 roof was about 199 tok/s; a GPQA 93.8% number was filed as fabricated. (transcripts-0.md:L1160-L1161, L1202-L1204)

Per-turn skill listing cut from 18,653 B to 5,537 B (-70%) by trimming skill descriptions; each linked skill puts name and description into the prefix every turn (about 5k tokens at 60 skills). (transcripts-0.md:L6506, L6543)

Skill loaded by rule vs by prompt: memory-optimization was 28% of cases, loaded by rule rather than named in the prompt; the skill-naming test had 103 cases. (transcripts-0.md:L1509-L1521)

failed-do-not-retry (3)

Self-distill on Qwythos gave no signal: +2.30 pp against a bar of +4 pp; draft-head training parked. (transcripts-1.md P5a, 2026-11-20)

Granite latent vectors must not be used: provenance unproven and the capture script may have read digits as token ids; text-neuron merge is the substitute. (transcripts-1.md latent capture, 2026-10-30)

Text-neuron bake added nothing over plain retrieval windows in the Nonet test. (transcripts-1.md Nonet, 2026-11-02)

other (4)

Pruning: 41% of units in layer-0 experts of qwen35moe are dead; Metis (14k FFN neurons, 400M tokens) is small, so prune-then-regrow is only a sleep-loop arm unless a group scan lowers bpb. (transcripts-1.md gguf-experts trace, 2026-11-21)

Kaggle GPU kernels queued 25 min while CPU kernels start at once (weekly GPU quota suspected); plan CPU steps first and check status every 10 min; T4 peak ~65 TFLOPS fp16, so two T4 about one XTX. (transcripts-1.md Kaggle queue, 2026-11-21)

Two prefill-speed claims in one answer were wrong on check; claim only numbers you can point to in the receipt before sending. (transcripts-0.md:L174-L193)

Disk: bakes share weights with their source file via reflinks, so deleting a bake frees almost nothing; measure with btrfs fi du or df before proposing deletes (home went 60 to 118 GB by deleting packs that were rebuildable). (transcripts-0.md:L6667-L6688, L7538-L7540, L7598)

2026-11-21 Metis tool-parity prereg review: host render reached 56/56 with retrieval off. A CPU fixture showed that toolgate parity can pass when both arms use 0/56 tool results, so report a healthy oracle alongside parity. [mojo-baro/notes/2026-11-21-tool-parity-partner-review]

From papers (harvest 2026-11-21; PAPER CLAIMS, not measured here; 3 haiku readers, not re-verified)

continual-sleep (5)

Sleep consolidation adds a masked low-rank expert (d_low 64, 5 blocks) to the next slower MoE block, then distils from the pre-update teacher into the expanded student with only the new expert trainable, then resets old low-rank experts (synaptic pruning). [2606.03979; /home/mario/Brain/research/papers/2026-09-16-language-models-need-sleep.md]

Sleep (Hope+sleep, Qwen3-1.7B, avg@16) reaches 53.2 AIME-24 vs 49.8 base; removing the imitation-learning term costs -2.4 AIME-24; no compute cost of sleep is reported. [2606.03979; /home/mario/Brain/research/papers/2026-09-16-language-models-need-sleep.md]

Dreaming step: SEAL-style self-edits generate synthetic data from context, keep top-k experts by gradient-norm importance plus random ones, run LoRA-SFT per dream, and reward a dream only when the downstream task improves (ReST-EM). [2606.03979; /home/mario/Brain/research/papers/2026-09-16-language-models-need-sleep.md]

Three-factor local rule: delta w = eta x eligibility trace x third factor; no third factor means no weight change; LTP trace 5-10 s, LTD 3 s, consolidation tags about an hour (cited measured lifetimes). [1801.05219; /home/mario/Brain/Skills/papers/plastic-agent-learning/SKILL.md]

Sleep paradigm (2 stages): memory consolidation by Knowledge Seeding, an upward distillation of a small model's memories into a larger network (on-policy distillation combined with RL-based imitation), then Dreaming, RL-generated synthetic curriculum for recursive self-improvement; the abstract reports no numeric result that was read here. [arXiv:2606.03979; ~/Projects/mojo/mojo-baro/.work/ai-harvest/pdf/2606.03979-language-models-need-sleep.txt (abstract and contribution list read; experiments section not read, so no number is claimed)]

data (6)

MiniCPM4 reaches satisfactory 0.5B and 8B quality on 8 trillion pre-training tokens using UltraClean pre-training data filtering and generation. [2506.07900; /home/mario/Brain/research/papers/arxiv_2506.07900v2.md (abstract read)]

Synthetic pre-pretraining on non-natural data improves token efficiency in pre-training, but was previously tested only at 1B parameters and under 2B tokens, so its scale claim is unverified below that range for us. [2609.39827; /home/mario/Brain/research/papers/arxiv_2609.39827v1.md (abstract read)]

Never-revisit coverage ordering lost 3-5 pp on a 97M Llama and 97-126M on 100M words scored macro 0.47-0.59 with several tasks at chance; test any curriculum order against random with 3 seeds, full pass per epoch is safe. [2508.15475; /home/mario/Brain/Skills/own/training/references/fast-competent.md sec 4]

Exact-repeat data hurts: more than 50% exact repeats hurts and 100% repeats memorises; cap repeats in the corpus mix. [2411.15821; /home/mario/Brain/Skills/own/training/references/fast-competent.md sec 4]

Ordering or pruning data by a small proxy gave 0.016 log-ppl on one seed and MMLU stayed at chance; source-difficulty curricula did not beat other coverage, so compare proxy order vs random at equal tokens and wall clock including proxy cost. [2310.15389; 2406.14124; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M6)]

Front-loading 0.1-0.3% procedural data (formal languages, Dyck brackets) before natural-language pretraining beats standard pretraining on C4, CodeParrot and DeepMind-Math, and raises needle-in-a-haystack recall from 10% to 98% after Dyck pretraining; the same loss is reached with 55/67/86% of the original data (up to 1.3B params). [arXiv:2601.21725; ~/Projects/mojo/mojo-baro/.work/ai-harvest/pdf/arxiv_2601.21725v2.txt (abstract and intro read, first 6 pages); no full method section read]

distill-selftrain (6)

Self-training without an external criterion degenerates via reward hacking and semantic drift; environment-mediated viability selection under sparse feedback and bounded memory keeps it stable. [2601.12310; /home/mario/Brain/research/papers/arxiv_2601.12310v2.md (abstract read)]

Self-produced data needs an unbounded, ungamable numeric reward to guide learning without human benchmark labels. [2504.04711; /home/mario/Brain/research/papers/arxiv_2504.04711v2.md (abstract read)]

Self-training go/no-go from failure rate: teacher SFT first, then 8B gains from self-training; the 14B student beat its teacher after SFT and gained nothing (S2->S3 +0.4, p=0.58, confounded), so predict the sign of round-1 gain from the failure rate before running. [2610.24199; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M7); fast-competent.md sec 6]

Online SFT on own correct outputs collapses out of distribution (43.2 -> 27.4) while a KL-anchored KTO (beta 0.1) or DPO-style anchor does not; anchor the self-training loss, do not train on raw own output. [2407.08400; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M17); fast-competent.md sec 6]

Logit-lens layer alignment (project hiddens to vocab at mapped layers plus output KD): GPT-2-120M Rouge-L 21.12 vs KD 17.20 vs SFT 16.56; TinyLlama 25.48 vs 23.82; test the lens loss against output KD on our procedural gate, same teacher and tokens. [2602.13567; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M5)]

Gated, attenuated teacher term on self-training: full 0.5992 vs fixed weight 0.5549 vs no teacher 0.5147, and removing the attenuation costs most (0.5414); the paper is OCR on 2B VLMs, so transfer to text is an untested claim. [2609.38282; /home/mario/Brain/Skills/own/latent/references/training-moves.md sec 4]

eval-gate (3)

Checkpoint choice by sampled reasoning, not likelihood: 46.7 vs 30.0 on MATH-500 but data-confounded (data +26.3 pts > quantizer), and DistilGPT-2 IOI 35.2 vs 94.8% while Greater-Than kept 87.7%; find a case where loss and task score rank checkpoints differently before adopting it. [2610.34886; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M10)]

Answers follow CoT steps only 16-18% of the time at 0.6B and 97-100% at 14B, midpoint near 1B; edit one CoT step to measure faithfulness before trusting any reasoning trace of a small model. [2610.38433; /home/mario/Brain/Skills/own/training/references/fast-competent.md sec 6]

Per-hop error, not final accuracy: accuracy ~ (1-gamma)^N for N hops, so 8 hops at 99% needs per-hop error <= 0.126%; log the histogram of the first wrong hop beside the result. [2609.38958 (Shan et al., CoT for long-context counting); /home/mario/Brain/Skills/own/latent/references/training-moves.md sec 1]

latent (9)

Training LLMs to reason in a continuous latent space (Coconut) replaces word-token chain-of-thought with hidden-state steps; the paper's numeric results were not read in this pass. [2412.06769; /home/mario/Brain/research/papers/arxiv_2412.06769v4.md (abstract read)]

KaVa distils a compressed KV-cache of an explicit CoT teacher into latent reasoning steps, giving supervision that plain latent-step training lacks; the paper's numbers were not read in this pass. [2510.02312; /home/mario/Brain/research/papers/arxiv_2510.02312v2.md (abstract read)]

Full-sequence warm phase then chain-only loss: trace model 95% vs no-trace 21% (4-layer nanoGPT, 1,500 warm steps); our pilot shows the trace effect only, the schedule itself is untried here. [2609.38958 (Shan et al.); /home/mario/Brain/Skills/own/latent/references/training-moves.md sec 2]

Transplant and zero-out probes show whether latent rows carry the pointer: transplant gives next item 24/30 vs 0/30 self-patch and zero-out drops 97% -> 1%; decodable is not causal (ridge R^2 0.910 but steering did not move the count), so judge by patching and ablation with a layer-matched random-head control. [2609.38958 (Shan et al.); /home/mario/Brain/Skills/own/latent/references/training-moves.md sec 3]

Cache-to-Cache fuser: cross-attention is the mechanism, not the parameters (MoT without cross-attention ID 58.06 vs 60.53); C2C per-layer gate +3.07 on the residual (47.95); C2C-C projection recovers 76-86% of the weak-to-strong gap vs 29-41%; train on the full fused input so train and test coverage match. [2510.03215 (Cache-to-Cache); /home/mario/Brain/Skills/.archive/2026-11-16/latent-fuser-training/SKILL.md (archived; numbers as cited there)]

C2C fuser budget: train loss flat by ~250 steps, eval stable by ~1000; 300 steps (under 9 A100-hours) reached about final accuracy with 500k OpenHermes samples at macro batch 256. [2510.03215 (Cache-to-Cache); /home/mario/Brain/Skills/.archive/2026-11-16/latent-fuser-training/SKILL.md (archived)]

Latent-Lens bridge (frozen small VLM to frozen text model: 1.3M projection MLP plus LoRA r4 on q,v, 0.3M): CLEVR 81.0 +- 7.9 vs text+LoRA 58.3; add a no-content control before any claim. [2610.41751; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M14)]

Optimizer reset per latent stage: 31.2 vs 24.7 (partial read); test reset vs carry at 3 seeds before adopting. [2606.20075; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M18)]

k-sparse autoencoders give clean scaling laws in autoencoder size and sparsity, with few dead latents; a 16M-latent SAE trained on GPT-4 activations for 40B tokens was demonstrated. [arXiv:2406.04093; ~/Projects/mojo/mojo-baro/.work/ai-harvest/pdf/arxiv_2406.04093v1.txt (abstract read; interpretability, not a training recipe for a 72.6M LM)]

lora-experts-growth (4)

Loop scaling laws: sparsity gives about 3x active-parameter efficiency and recurrence about 2x total-parameter efficiency on reasoning; a looped MoE with law-derived recurrence matches a about 2x larger non-looped MoE at matched compute. [2609.40316; /home/mario/Brain/research/papers/arxiv_2609.40316v1.md (abstract read)]

Dynamic mixture of experts adds capacity as the stream shifts, to fight loss of plasticity and catastrophic forgetting in continual learning, without a replay buffer. [2511.18987; /home/mario/Brain/research/papers/arxiv_2511.18987v1.md (abstract read)]

Padding or pruning a trained donor: MobileLLM-350M to 125M in 20 rounds with about 3.87e9 recovery tokens vs ~1e12 for scratch, but BBH 13.75 vs 18.45 (worse); the check is same donor and budget, pruned vs random init, dead if random init matches within seed spread. [2502.03460; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M1)]

LoRA on a 9B: held Mojo repair 8/28 vs base 5/28 with little transfer; the one-seed own-pass round (59 pairs, ~7 families) cannot separate no-help from too-few, so count families and seeds before claiming self-teaching. [own 9B LoRA receipt cited in fast-competent sec 2 (no arXiv id); /home/mario/Brain/Skills/own/training/references/fast-competent.md sec 2 and sec 6]

quantization-inference (3)

MiniCPM4 pairs sparse attention, quantization and speculative sampling in one on-device inference system (CPM.cu), with BitCPM as a data-efficient ternary LLM for post-training. [2506.07900; /home/mario/Brain/research/papers/arxiv_2506.07900v2.md (abstract read)]

HyperQuant (Hadamard rotation per tile, lattice quantization to E8/D4/A2/Z, Rice coding of indices) at 4 bits per scalar compresses linear weights about 3.9x and the KV cache about 3.79x at near-lossless quality on an H100, and beats HIGGS at every operating point from 3 to 5 bps. [arXiv:2606.23406; ~/Projects/mojo/mojo-baro/.work/ai-harvest/pdf/arxiv_2606.23406v1.txt (abstract read; the LLM vs diffusion split and Table 1 not read)]

STaR-Quant, state-time consistent post-training quantization for diffusion LLMs (state-guided activation transformation plus temporal attention compensation), improves low-bit weight-activation quantization over strong PTQ baselines, with up to 1.69x speedup and 3.14x memory saving over FP16 deployment. [arXiv:2606.04945; ~/Projects/mojo/mojo-baro/.work/ai-harvest/pdf/arxiv_2606.04945v2.txt (abstract read; targets diffusion LLMs, not autoregressive models)]

training-recipe (10)

MiniCPM4 uses ModelTunnel v2 for efficient pre-training strategy search, which is the recipe-search method to copy for small-model schedules before a full run. [2506.07900; /home/mario/Brain/research/papers/arxiv_2506.07900v2.md (abstract read)]

GRPO on small language models (1.5B to 7B) beats the base on about 80% of math benchmarks but stays weak on MCQ and code reasoning. [2609.39321; /home/mario/Brain/research/papers/arxiv_2609.39321v1.md (abstract read)]

LayerRoPE: one shared RMSNorm gain vector times depth-conditioned scalars (<0.02% extra FLOPs) lowers final loss 58M 3.172->3.118 and 1.3B 2.648->2.505 and cuts LR sensitivity 3-10x; Post-Norm diverged at every rate (table text garbled, one source). [2610.09179; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M2)]

Muon vs AdamW on 17.7M/33.6M LMs: val-loss AUC 3.25-22.44% better at equal data, but AdamW 3.38-6.96% better at equal time with the optimizer call at 56-70% of step time on reference kernels; Muon only pays with a fast polar kernel. [2610.21555; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M3); fast-competent.md sec 4]

Prodigy is claimed close to hand-tuned Adam with no LR sweep; the check is whether the grid optimum lies within 2x of its step estimate on 3 shapes, else drop (abstract claim only, no table read). [2306.06101; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M12)]

Round-to-nearest export of an fp32 master to bf16 drops most small updates; in RL only 0.4-0.5% of served bf16 weights change per step at lr ~1e-6, so use unbiased (stochastic) rounding and log the per-step changed-weight fraction first (dead zone near 100% = dead). [2610.41073; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M4); fast-competent.md sec 5]

Recursive/shared-depth models: a 200M model at r=1 collapses and a 350M one reaches parity with the baseline; 20 tokens/param plus WSD is one paper with no ablation, so use only as an anchor. [2507.08567; /home/mario/Brain/Skills/own/training/references/fast-competent.md sec 4]

Chinchilla-form loss fit L = 1.69 + 406.4/N^0.34 + 410.7/D^0.28 (fit 70M-16B): params and tokens scale about equally; extra size on thin data memorises; refit on own runs before use. [Chinchilla-style scaling fit (arXiv id not in our note; 2203.15556 by recall, unverified); /home/mario/Brain/Skills/own/training/references/fast-competent.md sec 2]

Closed-loop curricula are not a universal win: TDCS gain +7.45 at t=2.22 on 3 df (not significant), and the 2610.39056 gain is +12.6-19.6% wall-clock with the same significance problem; test random vs easy-to-hard vs dynamic at equal steps on a held family. [2608.17268; 2610.39056; /home/mario/Brain/Skills/own/training/references/paper-levers.md (M9); fast-competent.md sec 4]

MiniCPM4 reaches satisfactory quality with 8 trillion training tokens via UltraClean pretraining data filtering, and uses ModelTunnel v2 to search pretraining strategies on small proxy runs before the full run. [arXiv:2506.07900; ~/Projects/mojo/mojo-baro/.work/ai-harvest/pdf/2506.07900v2-minicpm4.txt (abstract and ModelTunnel v2 bullet read; no per-ablation numbers read)]

2026-11-21 MoE paging design review: local qwen4exp GGUF headers show three routed expert codecs and a separate 26.82 GiB per-layer embedding tensor. Use exact-route byte and storage replay before PC or Flip4 runtime work. [mojo-baro/notes/2026-11-21-moe-paging-partner-review]

2026-11-21 Teacher rows through Kaggle AI credits: gpt-oss-120b wrote 2,136 calc rows (3 new phrasings per train family) for 0.142 USD; a local checker (trained calc executor must equal the gold expression) kept 2,133. 0.0067 USD per 100 checked rows. The checker proves the number, not the wording. [mojo/mojo-baro/2026-11-21-metis-kaggle]

2026-11-21 Metis sleep arm A4b (unregistered, amendment 2): A1 episodes + 2,133 gpt-oss-120b calc word problems (Kaggle, $0.14), rechecked 2,133/2,133 against .work/calc, 0 held-out or app overlap; 708 of 715 expressions are W calc families, so A4 vs A4b = template vs teacher phrasing on the same families. [mojo/mojo-baro/2026-11-21-metis-sleep-wake]

2026-11-21 Flash-Next UD-IQ1_M agreement review: 4×32 external gate FAIL (95.31% vs 98.44%). Receipt audit isolates p03-story position 2 for a short same-binary paging check before qualified timing. [mojo-baro/notes/2026-11-21-moe-paging-agreement-review]

2026-11-21 MoE paging preregistration review: CPU checks reproduced the unpaged parser abort and identity PASS with only the baseline file. Fix both before qualified timing and compare matched request histories. [mojo-baro/notes/2026-11-21-moe-paging-prereg-review]

2026-11-21 MoE paging report review: verified 114 × 32 identity and three R1 passes. Isolated CPU replay reproduced R1 warm SSD traffic at 146.59 vs 146.82 MB per processed token, with 7,417 unique experts and 8,494 nominal slots. [mojo-baro/notes/2026-11-21-moe-paging-report-review]

2026-11-21 Metis sleep arm A6 (unregistered, amendment 3): K5a on the XTX = the A1 data line through the sleep-trainer path (frozen base, rank-64 expert on w1/w3/w2, KL 1/3 to the start, folded merged.f32), 600 updates x 3 seeds after the dense arms; trainer q2048x from main f932b88 vs the dense arms' q2048s. [mojo/mojo-baro/2026-11-21-metis-sleep-wake]

2026-11-21 Flip4 MoE paging review: byte checks reproduced generic ARM agreement on 96 generated IDs and 5,908 ordered routes. B0 supports a 1 GiB initial app test with a separate 2 GiB admission check before fixing the default. [AB-Android/notes/2026-11-21-moe-mobile-partner-review]

2026-11-21 Metis tool parity (lane tool-parity): spark toolgate 0/56 was the tools/baro BARO_NEURONS=1 default, not the model; any toolgate through baro serve needs neurons:false (metis-chat.sh does it now). With equal prompt bytes, baro vs llama Q8_0 is 52/56 same calls (bar 54): judge Metis checkpoints on one engine, never across engines. Toolgates on the shared default port 8795 after 17:40 may have scored another server (aa5d6d2); use a lane port. [mojo/mojo-baro/2026-11-21-tool-parity]

2026-11-21 Metis tool-parity report review: all 119 host/Flip4 prompt ID arrays and hashes matched. Valid toolgate still misses both bars. Reclassify final-answer loops from valid rerun receipts before reporting. [mojo-baro/notes/2026-11-21-tool-parity-report-review]

2026-11-21 Flip4 MoE paging M1 review: 40 archived byte comparisons passed, including the nine-slot stress arm. Proceed to current-layer demand async with explicit lifetime, cancellation and timing checks. [AB-Android/notes/2026-11-21-moe-mobile-m1-review]

2026-11-21: Metis eval flake (lane eval-flake): the q4096k1 eval-only NaN / page fault is not a trainer bug; 4+ active HIP processes on the XTX corrupt results (8 of 15 evals bad beside 4 llama-bench fillers, 3 of them finite wrong values; 70 of 70 bit-equal with at most one co-runner). Train and eval under the gpu-wait cap of 2, keep run-twice-bit-equal for every result-bearing eval, record the co-runner count. [mojo/mojo-baro/2026-11-21-eval-flake]

2026-11-21 Flip4 MoE paging M2 review: reproduced 1.55× paired median short-run speedup and 32 oracle byte checks. Async also reads 24–26% fewer decode flash bytes. Run a cache-policy-matched thermal control before attributing the gain to overlap. [AB-Android/notes/2026-11-21-moe-mobile-m2-review]

2026-11-21 Flip4 MoE paging M2b review: verified 18 equal-demand pairs and 1.327× median. The packaged Android child still needs paging settings, read-back, cancellation and restart checks before app timing. [AB-Android/notes/2026-11-21-moe-mobile-m2b-review]

2026-11-21 Metis prune on Kaggle (torch F32, twice bit-equal, same-batch base): scan B 87 groups all raise val bpb (+0.001..+0.0076); phase C S +0.00075/+0.00063 vs random RS +0.00060/+0.00052, so the selected 64 units cost more than random. P1 regrow fork VOID: zero down rows still moved bpb by 3.5e-6 on the XTX eval. [mojo/mojo-baro/2026-11-21-metis-lane-eod]

2026-11-21 Metis Kaggle seq3 lr picks: K0 3e-5, K1/K2/K4 1e-4; test_bpb seed spread ~0.04, pair by seed; K5a twin merge PASS, it-0 loss off by 0.9 (open). [mojo/mojo-baro/2026-11-21-metis-lane-eod]

2026-11-21 Partner review round closed. The handoff links the Metis and MoE receipts, outstanding gates and branch status. [mojo-baro/notes/2026-11-21-codex-partner-wrapup]