BPE V 8192, Qwen pre-tokenizer (single digits), 70% wiki sample knee, no normalizer, Unigram rejected. Cost vs 8192: 12288 1.028, 16384 1.036, 24576 1.074
BPE across spaces, t2 4096, V 8192: -11.0% tokens (HF oracle, 20 MB), -14.0% corpus ids vs tokv3, gate 7/7 (lane-tokv3 03e8cd1)
wiki6g ids [100M,430M) + proto2 mix, 401.5M ids (.work/m400.u16); proto2 round saw only 39M tokens
fresh wiki6g (first 9 of 16 parts, ~615M ids, never trained) + gold 625,394,726 ids (papers, arXiv, code, docs, Brain notes, wiki formulas, scrubbed transcripts), dedup by hash. Scrub: gitleaks + patterns, 150 lines redacted, 0 key patterns left, Mario email replaced
ecorp .work/ov/tools.u16: proto2 tool/math mix + app rows with app names; emix 0.1, emixall 1 (10% of every batch)
opus-5-5 148,433 msgs, 105.7M output tokens, 69,850 tool calls, thinking stored in 7,058 msgs (~5%); fable-5-1 3,645 msgs; fable-5-2 3,144; opus-4-8 801. Narrow cut 1,002 episodes; call-mapping keeps 336 (254 reads, 82 run_js). Replay of 200 keeps 6 (7 drifted, 12 error, 175 unmapped): wrong filter
qwen3-arch D1024 H16 L5 FF2816 V8192, tied embed, QK-norm, rope base 10000
AdamW lr 3e-4, warmup 30, WSD cool 0.2, 14 chunks, S2048 145.8 ms/update, 278 W of 290 W, 40.5 J/update, 46% MFU (56 TFLOPS)
re-encoded same text, 11 chunks of ~300 s, 52.2 GPU-min (3,132 s, bar under 61), 20,595 updates, S4096 ~169 ms
67,140 updates x 16,384 ids = 1.1B new ids, S2048 b8 (q2048s, emixall), lr 1e-4, warmup 30, WSD cool 0.2, 141 ms/update, chunks of 4,200 updates, 4 relaunches with byte-identical resumes
frozen start F32, T 0.7, 8 samples x 1,388 train families; held-out toolgate 56 and app 8 never in W, dedup by family
checker pass 4,875; teacher keeps 4,481 (40%). Kept: calc 65 of 5,696 (hole), js 2,249/2,704, brain 1,474/1,832, web 699/872. 343 of 378 runaways are calc (max 280 calls)
16 train families held out of W (js 7, brain 6, web 3); start scores 15/16, so keep-if-dev-rises has 1 row of room
Metis.kt adapter 2563f13: start valid 7/8, right tool 2/8, final 0/8; model never closes think block under the app tool list
completion-mode writer continues its system turn + 3 hint words, 400 per pool, T 0.7, K 4; tasks in app tools (calc, skill_read) and four trained tools
frozen answer model (A8 s1), real app tools, same checker and filter
phonegate scorer + one call per turn, closed turns
kept texts to u16 ids (x4096 BPE)
1x D0 651 kept 42.3 · 2x X0 1,293 kept 44.3 · 4x X4 2,565 kept 43.7 (4x seeds 1-2 crashed on full /home, retrained)
100 dreams (seed 99): REM falsified if top-4 normalised questions cover over 70% of kept dreams; distinct 3-gram ratio beside it
frozen base, rank-64 expert on w1/w3/w2, router-free, KL 1/3 to start model, lr 1e-4, no warmup, cool 0.2, 600 updates at S2048, 30% dreams/episodes and 70% rehearsal, seeds 1 2 3
split-K 2 on expert dW: frozen+r64 142.2 ms vs dense 163.4 ms (-13%); with KL 208.2; VRAM 11,233 vs 11,706 MiB. Frozen base alone saves only 31-35 ms of 157; expert ops ~40 ms; KL forward ~60 ms
expert folded into params in fp64: max |dlogit| 3.4e-5, argmax 2048/2048 (merge bar 1e-3); base checked unchanged with cmp
params to F32 gguf to Q8_0 (llama-quantize)
A8 baked for spark (65d5cc1): forced agreement vs llama.cpp min 98.4%, mean 99.7% (18 prompts), toolgate 55/56
js 30 · brain 20 · web 6; bar 53/56 median of 3
held-out families (js 7, brain 6, web 3)
dev 16 / test 48, app tools, GPU llama-server Q8_0 greedy, 16K ctx, 16000 max_tokens
test bpb, rise bar +0.5%
8 cases, app final bar 3/8; runaway max calls bar 2
keep if bpb rise at most 0.5%; arm beats C0 when 3-seed mean on test 48 is at least C0+2 and no seed below C0 lowest; guards toolgate at least 53, dev at least 15/16, bpb within +0.5% of A8; no minimum-gain kill line
failing arm: old gate dirs moved aside, params sha in every gate dir, best checkpoint kept (A8 s1 c4f375584e0c5435)
spark capture of FFN input, rank units fail vs kept wake episodes (kind-matched): zero top-k 444 vs shuffled null 3. Tools ffn-unit-rank and params-ablate (b0e3e9f). Earlier 485 units were partly kind detectors (calc 55 failed vs 30 kept)
BARO_TWINS=2 in spark (2ed5ac4): two engines, own pack copy and KV pool, per-request engine/kv_from/kv_keep, ~60 LOC. Gate 57d9f5b: twin0 20/20, twin1 20/20, handoff 20/20 byte-equal; reverse stale KV differs 20/20. Merged 6a8ba7e
uv skillopt 0.2.0, optimizer claude_code_exec, target A8 s1 on /v1, 1 epoch, 4 steps, objective kept-dream rate x distinct 3-gram. Selection 7/40 with initial skill, every candidate rejected (best 0.175 = initial)
R5CTB2LHPDE (Claude's free test phone), baro.apk ARM engine, q8_0 77.5 MB, layout 48: prefill 1,279 tok/s, decode 295 tok/s, TTFT 351 ms, VmHWM 128 MB. Layout 44: 1,075 / 294 tok/s, 417 ms. Layout 86 init failed. Ids equal host spark F32 256/256
nightmares (unlikelihood, trainer has no loss mask) · two-position implant (keys round 2 on CPU replica first) · S2 grow equals rank-64 expert path C0
Bars (prereg 6d544e88, source arXiv 2606.03979 Language Models Need Sleep): A2 toolgate at least 53/56 median of 3 seeds; row-42 runaway at most 2 (start 223); app check at least 3/8 (start 0/8); test bpb rise at most 0.5% vs 1.2951; A2 minus A0 toolgate above 0 in every seed. Prior: plain self-distill P5a +2.30 pp, below +4 bar, parked.
| arm | definition | bpb | toolgate /56 | runaway | app final /8 | dev /16 | verdict |
|---|---|---|---|---|---|---|---|
| A0 | control: rehearsal + unfiltered own episodes | dense, up | up to 55 | 1 | n/r | n/r | control (dense removed runaway) |
| A1 | consolidate: teacher filter, one round | +0.96% (single runs) | up to 55 | 1 | n/r | n/r | bpb MISS (bar 0.5%) |
| A2 | A1 + up to 3 dream rounds, keep if dev rises | n/r | n/r | n/r | n/r | n/r | superseded by A6 to A8 route |
| A3 (x4096) | A1 episodes + 3,000 app-tool rows, dense (933b3b0) | 1.30668 / 1.30636 / 1.30685 (+0.9%) | 52 / 52 / 51 | max 1 | 6 / 6 / 6 | 16 / 16 / 13 | bpb MISS, rest PASS |
| A4 | template rows (verified reference rows) | up | up to 55 | 1 | n/r | n/r | dense bpb +0.9% |
| A4b | 2,133 calc rows from gpt-oss-120b (Kaggle teacher) | n/r | n/r | n/r | n/r | n/r | unregistered arm, no verdict in sources |
| A5 | mix: 50% rehearsal, 20% reference, 30% A1 | n/r | n/r | n/r | n/r | n/r | no verdict in sources |
| A6 | expert, KL 1/3, from x4096 (amendment 3) | +0.06% | 49 to 50 | 223 | n/r | n/r | MISS (toolgate, runaway) |
| A7 | expert, KL weight 0 (xkd=0 read back) | 1.29722 / 1.29728 / 1.29751 (+0.17 to 0.19%) | 49 / 50 / 49 | 223 x3 | n/r | n/r | MISS: KL is not what blocks stop behaviour |
| A3 on P1 | dense, from P1 | 1.2521 / 1.2519 / 1.2513 (+1.5%) | 51 to 54 | 1 | 6 to 7 | 16 / 16 | bpb MISS |
| A8 on P1 | A6 path on A3 data, from P1 (788126a) | 1.23353 / 1.23338 / 1.23337 (+0.03%) | 56 / 55 / 54 | max 1 | 7 / 7 / 6 | 16 / 16 / 16 | PASS every prediction, every seed |
n/r = not recorded in the sources read. Sources: docs/plans/2026-11-21-metis-sleep-prereg.md (amendments 1 to 5), Brain 2026-11-22-metis-overnight-session.md. Restart lr note: lr 3e-4 with fresh warmup raised bpb 1.3254 to 1.3531 (+2.1%) in both trainers, so continue at lr 1e-4 or less.
| model | test bpb | toolgate /56 | runaway max calls | dev /16 | app final /8 | other |
|---|---|---|---|---|---|---|
| 400M round final | 1.294 | 55 | n/r | n/r | n/r | LAMBADA ppl 80.2 to 17.45 (acc 0.026 to 0.099), ARC-E 0.280 to 0.322, proto2 tail ppl 72.0 to 20.48, PIQA 0.547 missed bar 0.57, 5 of 6 predictions met |
| x4096 start | 1.2951 | 50 | 223 | 15 | 0 | 3 of 7 bars pass; bpb 1.2951 vs 1.294 miss by 0.0011, ARC-E 0.315, PIQA 0.542, LAMBADA 0.108; reproduces 1.2950694415526935 exactly |
| P1 | 1.2330 | 55 | 1 | 9 | 7 | ARC-E 0.3152, LAMBADA 0.1281, ARC-C 0.184 (was 0.166), PIQA 0.535 (was 0.542); gold-tail bpb 1.7737 to 1.6454 (not comparable); llama-perplexity prediction not run, bpb substituted |
| A3 on P1 | 1.2513 to 1.2521 | 51 to 54 | 1 | 16 | 6 to 7 | dense, +1.5% bpb |
| A8 on P1 | 1.2334 to 1.2335 | 54 to 56 | 1 | 16 | 6 to 7 | current best, 46e3a9c |
400M trajectory: 1.848 (1,780) to 1.622 (3,560) to 1.446 (10,680) to 1.383 (17,800) to 1.375 (19,520), cooldown 1.337, 1.308, 1.294. Disagreement: x4096 toolgate runaway 223 is row 42 (223 brain_ask calls in one message); harness fix 51ca2cd. Sources: Brain 2026-11-20-metis-400m-round, 2026-11-22-metis-tok-x-round, overnight-session.
Frozen by 4e96025. Phonegate baseline (two repeats, byte-identical, noise 0): A8 s1 54 all / 12 dev / 42 test; s2 55/11/44; s3 54/12/42; P1 53/12/41. Predicted C0 43 to 46.
| arm | seeds | mean | toolgate /56 | kept | verdict |
|---|---|---|---|---|---|
| A8 baseline | 42 44 42 | 42.7 | 56 / 55 / 54 | n/a | start |
| C0 recipe again | 43 42 41 | 42.0 | 56 56 55 | none | control |
| D0 plain dreams 1x | 45 41 41 | 42.3 | 54 54 53 | 651 | flat |
| D1 failure replay | 43 42 41 | 42.0 | 54 55 55 | pool d1 | MISS (delta 0), dev 16/16/15 |
| D2 counterfactual edits | 44 44 43 | 43.7 | 54 54 53 | n/r | MISS +1.7 (predicted C0+2) |
| D4 shuffled answers | 42 44 42 | 42.7 | 54 54 53 | 651 | control did not lose (predicted C0-3) |
| D5 SkillOpt writer | not trained | n/a | n/a | 7/40 sel. | NO SIGNAL |
| X0 dreams 2x | 45 44 44 | 44.3 | 54 54 53 | 1,293 | PASS +2.3, lowest seed 44 vs 41 |
| X1 twins cross-dream | 43 41 41 | 41.7 | 55 55 53 | 1,304 | NOT EXERCISED (3-gram 0.144 vs 0.154, rule within 0.02) |
| X4 dreams 4x | 44 43 44 | 43.7 | 53 54 54 | 2,565 | peak at 2x |
| S1 ablate top-k, alone | k16 41 · k64 41 · k173 39 | vs A8 s1 42 | tool 55 / 54 / 54 | dev 16 | ablation alone hurts |
| S1 proper: k16 + X0 sleep | 45 44 44 | 44.3 | tool 52 54 53 | dev 16 | ties X0, no gain |
| S2 grow units | n/a | n/a | n/a | n/a | equals C0 path |
| S3 implant / D3 nightmares | n/a | n/a | n/a | n/a | not built |
D4 reading: shuffled final answers lose nothing, so the gain is call rehearsal, not answer text. D1 to D4 and X1 predicted at least C0+2 except D4 (below C0 by 3). Guards for every arm: toolgate at least 53, dev at least 15/16, bpb within +0.5% of A8. Sources: docs/plans/2026-11-22-metis-sleep-surgery-prereg.md (Result), .work/r2/. Card facts x0 s1: toolgate 54/56, dev 16/16, bpb 1.2338, phonegate all 57/64, test 45/48. Seed note: A8 test 45 in D0 s1 vs 41 in s2 and s3 shows seed spread of 4.
| task, version | single | KV | text | empty | shuffled | corrupted |
|---|---|---|---|---|---|---|
| task 1 v1 /56 planner to tool caller | 52 | 39 | 35 | 38 | 42 | 27 |
| task 1 v2 /56 (B leaves think open) | 52 | 45 | 34 | 46 | 44 | 20 |
| task 2b v2 /40 calc solver to checker | 8 | 5 | 4 | 4 | 2 | 0 |
Prefill positions: task 1 KV 211.1 vs text 219.7; task 2b KV 47.2 vs text 167.0. Verdict: P1 to P4 MISS, P5 PASS (corrupted KV lowest). Same-weight full-context KV handoff equals one model continuing (byte-proven), so the limiter is B's turn format. Next: role-trained B or a different-weight pair. Plan: greedy, max_tokens 16000, TMAX 16384; task 2 band 30 to 70% single accuracy over 80 items. Merge receipts: preflight PASS 11be9169f8c2, run-tests.sh PASS rc=0 (first try failed on full /home).
| device / build | value |
|---|---|
| Flip4 A8 q8_0 layout 48 | 1,279 pf / 295 dec tok/s, TTFT 351 ms, 128 MB |
| Flip4 layout 44 | 1,075 / 294 tok/s, 417 ms |
| Flip4 layout 86 | init failed |
| Xiaomi ARM port (8e4dd9d, daa37d3) | ids 3/3 equal, decode 332 to 518 tok/s with adapter (before sleep arms) |
| Xiaomi adapter 2563f13 | valid 6/8, right tool 2/8, final 0/8 |
| Phone harness table, per transcript | Xiaomi 7/8 valid, 2/8 right, 0/8 final; Flip4 H2+H3+H4+H6 7/8, 2/8, 0/8; decode 0.32 vs 0.74 at equal rows |
| Harness before weights | runaways 1 to 0, invented results 6 to 3, tokens 3201 to 866 on 8 cases; final_ok stays 0/8 (5/8 cases need untrained tools) |
| Q4_0 Metis | garbage on phone 0/6, dropped |
| spark K2 megakernel (opt-in) | 2,633 vs 1,766 tok/s (1.49x), bytes equal 20/20 |
Sources disagree on Xiaomi valid calls: 7/8 (transcript harness table) vs 6/8 (tok-x-round note). Shown both. Flip4 prompt trap: old 4-tool p.txt makes Metis answer from memory and run past im_end; phone tool tests need the metis-chat render. Xiaomi 6d344501 is Mario's, keep state.
| item | result |
|---|---|
| Kernels part 1 (flash) | LDS-bound (55 to 68% of wave cycles); masked-tile skip flash_fwd8_k -7.7 / -6.2 / -4.3%; 16 waves per tile falsified +16.9% |
| Kernels part 2 | flash_fwd8t_k -22 to -24%, flash_dq8t_k -17%, byte-equal params; VGPR steps 192 to 8 waves, 216 to 7, 240 to 6; fused backward and dkv8t closed |
| Step time | 163 to 143 ms over chunks 1 to 4 with no code change (warm-up); S2048 GEMM 82 TFLOPS, flash ~34 (weakest), norm/rope/qkn 16.3 ms |
| Kaggle twin parity | F32 max abs logprob 0.0116, top-1 99.95%; 200 updates bpb 1.352435 vs Mojo 1.353147 (-0.053%); XTX 143.7 ms/update = 6.8x T4 fp16; K5a sleep-trainer merge PASS; lr K0 3e-5, K1/K2/K4 1e-4; bpb seed spread ~0.04 |
| Kaggle prune scan | 87 groups all raise val bpb (+0.001 to +0.0076); 64 selected cost more than random; P1 regrow fork VOID (bpb moved 3.5e-6 with zero rows) |
| NCM F0 warm vs cold | code-CE 2.286 warm vs 2.205 cold, acc 0.506 vs 0.508: FAIL, F2/F3 parked |
| NCM F1 VQ exactness | r1 text 99.98% / tool blocks 54.2% MISS; r2 85.5% MISS; r3 12 levels tool 2048/2048, text 99.995% PASS; seed 2 text 99.997%, tool 100% |
| Spark tool parity | 0/56 was BARO_NEURONS=1; fixed neurons:false: 52/56 vs llama Q8_0 (bar 54, miss); later twin build spark 55/56 |
| Eval flake | NaN or page fault from 4+ HIP processes (8 of 15 evals bad); gpu-wait cap 2; 70 of 70 bit-equal with at most one co-runner |
| item | value |
|---|---|
| sleep dirs (78 arms) | 26 GiB to 19 GiB |
| diet pass | -7.1 GiB (dup base, q8) |
| params.f32 / arm | 277 MB (expert 14 MB) |
| Q8_0 model | 74 MB |
| .work/sleep | 7.4 GB |
| /home incidents | full twice in a day (1.5 TB); 832 MB write left 192 KiB free; 99% used, 22 GB free after overnight |
| paired training | +8% throughput only |
| gates / model | ~2 min serial |
| energy | ~0.27 kWh per 400M run |
| open win | store expert only: 20x less |
Services paused overnight (crawl4ai, gpu-room-watch, scrcpy-panel, coios-analytics, baro-embed, brain-ask daemons); restore: ~/Brain/OS/2026-11-22-overnight-resource-pause.md. Diet script: .work/ops/pipeline-diet.sh. .work is not storage; rebuild packs into ~/.cache/baro. Weights: ~/Models/metis/metis-73m-p1a8/. Cards: docs/cards/metis-p1a8-card, metis-p1a8-r2x0, overnight-2026-11-22. This page: docs/cards/metis-sleep-pipeline (publish.sh, same id). Brain notes in ~/Brain/mojo/mojo-baro/: 2026-11-20 400m-round, tokenizer-v3; 2026-11-21 sleep-wake, sleep-trainer-experts; 2026-11-22 sleep-r2-start, overnight-session, tok-x-round, transcript-scan, a8-flip4, twins, next-untried.
| item | state |
|---|---|
| S1 k sweep + S1 proper | done: alone 41/41/39, with sleep 44.3 = X0; ablation closed, S3 implant left |
| S3 two-position implant (keys round 2 on CPU replica) | not built |
| D3 nightmares and mistake-to-repair rows | blocked: trainer needs loss mask in corpus format (M effort) |
| Twin X1 in new roles; two-Metis KV handoff with trained roles | pending |
| SkillOpt on completion prefix (hint words / few-shot lines before user turn); 48-row app-native family-disjoint dev split | next prereg |
| Read-only bash tool for Metis from transcript Bash episodes (53,926 calls) | proposed |
| Queue: wake gates, SkillOpt system prompt, sleep (A8-style expert on new rows), wake; Metis in amarbaro-cua | handoff queue |
| Larger Metis variant (P2 grow vs P1 at equal GPU minutes); NCM F2/F3 (parked after F0 FAIL, carry-over must be distillation) | untried |
| Card rows: spark CPU, llama.cpp GPU/CPU, Flip4 and OnePlus decode, Xiaomi 332 to 518 re-measure, Q4_0 build, RAM at 4096, license; baro.apk tool calls never compared; Flip4 A8 Q8_0 parity in baro.apk (SweepTest in AB-Android worktree) | pending |
| Spark vs llama toolgate parity 52/56 vs bar 54; overnight gating reconciliation of x4096 harness; first Kaggle K5 it-0 loss 1.7967 vs receipt 2.69505 | open |
| Superbpe bit-exact A/B; store-expert-only disk win | pending |
Coverage gap: sources did not include the full SINDEX mojo-baro 2026-11-21 and 2026-11-22 block, the LocalTraining README tail past line 132, or the whole docs/rules.md block; arms A0, A2, A4b, A5 numbers are only partly recorded (marked n/r).