The day in one screen
1. Metis state: x4096 round, kernels K1 / K2
Same 72.6M Metis, same text as the 400M round, new x4096 tokenizer (lane-tokv3 03e8cd1, V 8192, BPE across spaces, gate 7/7) and its own kernels. Prereg ab31eb5, results 2951a4a.
| bar (frozen) | x4096 result | bar / 400M | verdict |
|---|---|---|---|
| test_bpb | 1.2951 | ≤ 1.294 | MISS by 0.0011 |
| toolgate (56 held-out) | 50/56 | ≥ 55 | MISS (row 42: 223 brain_ask calls in one message) |
| ARC-E | 0.315 | ≥ 0.322 | MISS |
| PIQA | 0.542 | 0.547 | MISS |
| LAMBADA acc | 0.108 | ≥ 0.099 | PASS |
| template parity (superbpe) | equal | equal | PASS |
| update time | 52.2 min | < 61 | PASS |
Kernels (lane-metis-kern, merged 5e9d7d8; K1 c0d969f, K2 42aba1d)
Worked
- Scores computed transposed, P and dS packed into the next WMMA operand in registers (
v_permlanex16_b32), no P or dS tile in LDS. DefaultLAT_FY=11. - Finding:
warp.shuffle_xorisds_bpermute_b32on gfx1100: 64 per key tile, a third of the old LDS instructions, invisible in a source count (122 counted, ISA had 186). - Finding: register count decides the arm. 1536 VGPR per SIMD in steps of 24: 192 -> 8 waves, 216 -> 7, 240 -> 6, 264 -> 5. dq8t at 242 VGPR: no gain; at 176: -17%.
- Finding: folding runtime args into constants breaks byte equality (
total / Ndivide vs multiply by 2^-10, one ulp); tokens and agreement did not see it, the byte dump did.
Failed / withdrawn
- Fused backward kernel withdrawn: cross-block dK/dV sums move 1.14 GB each way per layer vs 69 GFLOP saved (about 2.6 ms vs 1.3 ms).
flash_dkv8t_k(252 VGPR) not faster, kept behindLAT_FYbit 4.- One SQTT capture read 25.6% memory wait; a lever built on it did not hold (rules.md).
- K2 reaches one-shot greedy runs only; serve decodes on the launch path (
not serve, below 128 positions). K2 in serve: UNVERIFIED, not reachable.
Not tried
- Fewer, shorter barrier phases in K2 (wavewait: barrier 69.4% of cycles, one site 55%).
- Chunked K2 launches with host stop checks and split attention past 128 (fable-lane work).
- An in-trainer data-prefetch A/B: host check showed one thread in GPU sync, workers idle, so none was spent.
Other receipts: bake .work/spark-mx/metis-73m-x4096.baro.gguf verify PASS at fc00071 (pack tokenizer writer lacked superbpe: every text request 503); BARO_FORCE agreement vs llama.cpp min 98.4%, mean 99.7% (19 prompts); lanes merged to main: lane-tokv3 7e7f6b3 + lane-metis-kern 5e9d7d8, preflight PASS 49d0a5ae8fc3 (GPU run-tests not run after the merge). Fix 51ca2cd: a failed turn is a failed row.
2. Sleep paper (arXiv 2606.03979) on Metis
"Language Models Need Sleep" (Behrouz et al.). Prereg 6d54e88 froze wake, consolidate, dream, gate. The round is NOT closed: no report, drivers stopped (Brain mojo-baro/2026-11-21-metis-lane-eod).
docs/plans/2026-11-21-metis-sleep-loop.md (3e12363), reviewed by agy (PASS with bounds) and codex. Not claimed: any gain. Prior: plain self-distill gave no signal twice.Arms and amendments
| arm | what | registered |
|---|---|---|
| A0 | control: rehearsal 70% + same number of unfiltered own episodes | prereg |
| A1 | consolidate: rehearsal + teacher-filtered episodes, one round | prereg |
| A2 | sleep: A1 then up to 3 dream rounds, each kept only if toolgate dev (16 rows) rises, else rollback | prereg; amendment 1 adds a dream falsifier (4 most common normalised questions > 70% of dreams = REM falsified, A2 not run) |
| A3 | A1 episodes + 3,000 app-toolset rows (apptoolgen.sh, web_fetch held out) | UNREGISTERED, amendment 1 |
| A4 | A1 + verified calc reference rows for families with keep rate < 30% | UNREGISTERED, amendment 1 |
| A4b | A1 + 2,133 calc rows written by gpt-oss-120b (Kaggle teacher) | UNREGISTERED, amendment 2 |
| A5 | rehearsal 50% + reference rows 20% + A1 episodes 30% | UNREGISTERED, amendment 1 |
| A6 | K5a: A1 data line through the sleep-trainer path (frozen base, rank-64 expert, KL 1/3, router-free), merge bar max |dlogit| ≤ 1e-3 | UNREGISTERED, amendment 3 |
Frozen bars (A1/A2): toolgate ≥ 53/56 (median of 3 seeds), max calls per message ≤ 2 (start model 223), app check ≥ 3/8 (start 0/8), test_bpb rise ≤ 0.5% vs 1.2951, A2 - A0 > 0 on all 3 seeds. "A missed bar stays missed."
Results so far
Measured
- Controls on the final harness path: test_bpb eval reproduces the x4096 RESULT exactly, 1.2950694415526935; toolgate 50/56, max 223 calls (row 42).
- Wake set (frozen start model, T 0.7, 8 samples x 1,388 families): 11,104 episodes, checker pass 4,875, teacher filter keeps 4,481 (40%). js 2,249/2,704, brain 1,474/1,832, web 699/872 kept.
- Dev split: 15/16 on GPU and CPU, so A2's keep-if-dev-rises gate has 1 row of room.
- App replica (host, adapter 2563f13): start 7/8 valid, 2/8 right, 0/8 final; under the app's own tool list the model never closes its think block (0/8 x3).
Failed / missed
- calc is the hole: 65 of 5,696 pass; Metis calls brain_ask for arithmetic; 343 of 378 runaways (more than 8 calls per message, max 280) are calc.
- A1 test_bpb about +0.96% MISS of ≤ 0.5% (single runs); second bpb runs moved to Kaggle (UNVERIFIED, jobs still running at wrap).
- Wake job ran 38 min on the shared XTX against the 300 s rule; a monitor on
$!of a setsid fork read a live job as dead and started a duplicate sampler; an 832 MB checkpoint filled /home (192 KiB free).
Not tried / missing
- A 48-row app-native, family-disjoint dev split (next prereg); no dev row exercises calc or skill_read.
- Dream rounds beyond the falsifier; GRPO arm; imitation term; synaptic-prune fold step.
- A1-A6 seed medians vs bars: not reported (round open).
Tools and review trail
- sleep-select / sleep-cut (b85b71c): fragile-turn selector and cut scheduler. Dream kinds weighted by
families.tsv(1a423a4). Session export from baro.apk (each turn with calls, results, checker verdict, user correction) is planned (w04, size S): not built today. - Round scaffolding: metis-wake sampler (f2f707d), dream writer + corpus builder (7780201), emixall mix + orchestrator (7b5d858), metis-appcheck (e4a7bfd), toolgate-cpu (0d6b78e; GPU queue starved), bpb eval twice, finite and bit-equal only (a246fbd), sleep jobs at priority 80 (14d912d).
- Partner reviews of the sleep prereg, loop plan and amendment 1: agy PASS (
*.agy.md), codex (*.md.codex.md); amendment-1 review PASS approved the data-mix additions. - Paper details (marked as claims): see wiki: From papers, continual-sleep.
3. sleep-trainer (lane merged, f932b88)
Metis Mojo trainer now runs the paper's consolidation step. Report docs/lanes/2026-11-21-sleep-trainer-report.md; every brief gate passed; byte-equal params after 50 default updates; B = 0 gives byte-equal step-0 logits.
Built
- Frozen base (
FREEZE=1): no base dW kernel, no base Adam, layer 0's attention backward skipped. - Low-rank experts on w1/w3/w2 (+ optional wo),
XR XE XT XALPHA; router over {base, experts} with per-layer ROUTE stats. - KL teacher = the frozen start model, same batch, same update (
XKD); experts-only export; fp64 merge (XMERGE=1). - Gates G1-G6 (
xpert-gate.sh), resume gate,zcmp.mojo.
Findings / failed
- A finite-difference oracle cannot judge a top-k router: selection flips jump the loss. Router blocks 0.70-0.72 rel error at top-2 of 3, 0.003 with a full softmax, same code.
- A frozen base alone does not make a rank-64 step cheap: skipped dW GEMMs saved ~31-35 ms of 157, expert ops cost ~40 ms (FLOP floor ~6 ms).
- The K5/K6 prereg froze a per-token router AND a merged-dense bar; a router is input-dependent and cannot fold. Routed merge refused (rules.md).
Not tried
- Rank K-concatenation
[x | u][W; B](about 17 ms, DeepSeek ranks first; a claim, chat e81eea18...). - Cached top-k teacher logits; router on attention input; load-balance loss; the RL imitation term and dream generator.
Partner reviews: 2026-11-21-sleep-trainer-review.md.agy.md PASS (4 questions: validation checkpoints, gradient accumulation, optimizer stability); codex review beside it. run-tests receipt d126d78: 6 test_text pack failures outside the lane.
4. Neuron work (mojo-neuron, mojo-ablate)
Surgery: no weight edit fixes the runaway loops
mojo-neuron lane-metis-surgery aa462a9, prereg 0541806 + amendment 1a98287, 27.4 GPU-min over 12 shared jobs.
| finding | number |
|---|---|
Loop is on the user path only (chat route + grammar); raw /completion does not reproduce row 42 | gate first messages 3/56 hit the cap (rows 12, 42, 52), dev 34/266 |
Row 42: "lookup then a lone " (34); healthy rows close with "}} (2166) or "} | 166-222 parsed calls |
| Arms (20, six families): ablation, gain, rank-1 implant on loop detector L4 N2052, 80 head ablations, DRY, repeat_penalty | none WORKS |
| Nearest: steering -0.25*dir3 at L3 | runaways 34 to 17, KEEP 0.513 |
| Random control vector breaks loops too | 24 of 34 (and creates 21 new) |
| Loop-state probe | AUROC 0.993 on unseen rows; reads, does not drive |
mojo-ablate upgrade (commits 70c26da to a879ffb)
| arm | runaways (base 34) | KEEP | fixed | new loops |
|---|---|---|---|---|
| TN TPE best, norm-preserving | 23 | 0.608 | 24/34 | 13 |
| T TPE best, plain | 33 | 0.556 | 22/34 | 21 |
| random direction, same strength | 33 | 0.836 | 4/34 | 3 |
| surgery S25 (steering) | 17 | 0.513 | 23/34 | 6 |
Source: the lane's closing message (Brain archive transcript mojo-mojo-baro 2026-11-21_3f286d36; report mojo-ablate/docs/reports/2026-11-21-upgrade.md not opened here). UNVERIFIED by this report: numbers are the lane's own. Proxy trap: on spark's raw route the best edit looked good (12 to 8) and did not hold on the user route.
Implants status
Last measured round (2026-11-20, c3d711d): no training-free key separates Metis facts at the answer position (own-row share bar 0.5 missed by all: 0.089 / 0.086 / 0.078 / 0.000 / 0.086; Recall not run). Subject token cross-fact cosine 0.82 vs 0.998 at the answer. Next: two-position implant, keys-only on CPU. No implant work landed on 2026-11-21.
Prune / regrow lane (lane-metis-prune, d3f7f47, amendment cf89cb1)
Measured
- Census (102,400 val tokens, 14,080 units, eps 1e-4/1e-3/1e-2): 0 dead, 0 rare in every layer; tool-row census (56 transcripts, 31,967 tokens) also 0.
- 20 random 64-unit ablations: +0.0008 to +0.0024 bpb, all > 0; paired-delta window SD 0.000046, so floor F = 0.0005.
- Window draw moves absolute bpb by 0.040 (WSEED 1 1.2950694, WSEED 2 1.2548621): only paired deltas mean anything.
- Kaggle scan B (87 arms + base, T4): 89/89 finite and bit-equal, every group +0.00098..+0.0026 (G148 +0.0076), none ≤ -0.0005. Phase C: S +0.000753 / +0.000626, RS +0.000602 / +0.000521, S worse than random (direction only).
- P-1 600: test_bpb 1.2938272480744772 twice bit-equal; P0-1 1200: 1.2911174546893105 (one run).
Failed / void
- P1-1 VOID: regrow changed only gate/up (131,072 values, down 0, moments 0) yet val bpb moved -3.5e-6; fork bar is bit-equal. Hypothesis bf16-WMMA eval path; falsifier = same pair on CPU F32. Not yet run.
- Page-fault / NaN audit: one silent
nanbpb (G0) the same unit set later gave finite 1.016554. Cause found by the eval-flake lane (section 9), not a prune bug. Audit jobs (prune-audit,auditg) were still running at wrap: UNVERIFIED. - Scorer trap: trainer allocates b x LAT_S rows; score at S=512 (q4096k1 at b 32 asks 69 GB).
Not tried
- CPU F32 regrow falsifier; step-3 seeds 1-3 (
prune-step3.shwith absolute paths); fetch of the 4 Kaggle jobs. - Shared VRAM: eval-only trainer holds 10.7 GB, declare 12.
Partner review: agy prereg-metis-prune.agy.md PASS (gradient-weighted L2 saliency pruning and regrow).
5. Kaggle
Lane metis-kaggle. Prereg docs/plans/2026-11-21-metis-kaggle-prereg.md (5bd53b6, 73f4bd6, 2d5a596, 04c8988, ba4fa41), results c329ec0. Receipts exchange/receipts/metis-kaggle/ (local-only).
| step | result | verdict |
|---|---|---|
2: PyTorch twin vs ROCm llama.cpp kld512.base, 8,160 positions | F32 max abs logprob 0.0116, top-1 99.95% on CPU and CUDA T4; fp16 autocast top-1 99.79% | PASS |
3: 200 updates, same batches (windows.py replays run.mojo's xorshift) | it-0 loss diff 8.3e-5, max logged diff 0.00148, final test_bpb 1.352435 vs Mojo 1.353147 (-0.053%). XTX 143.7 ms/update = 6.8x a T4 fp16 update (0.98 s) | PASS |
| 4: arms K0 K1 K2 K4 on the XTX, lr per arm (amendment 2) | picks K0 3e-5, K1/K2/K4 1e-4; seed spread ~0.04 (pair by seed); K1 ~ K2 ~0.001 under K0 on seeds 2-3; K4 dev_bpb 0.024 at +0.01 test; single runs | measured, no bar claimed |
| K5a twin (T4) | test_bpb 1.3261581, merge maxdiff 2.48e-5 (bar 1e-3 PASS); it-0 loss 1.7967 vs replay receipt 2.69505 | probable FAIL of the 0.01 it-0 bar, cause open |
| Restart converged model at lr 3e-4 with fresh warmup | test_bpb 1.3254 to 1.3531 in both trainers | finding |
amarbaro/new-benchmark-task-a5fb0); CLI-pushed kernels list 0Worked
- Private model
amarbaro/metis, variationGguf/x4096-start-f32; offload of prune scans, K5a twin, torch bpb. - Start toolgate on the current harness reproduces 50/56, max 223 calls (row 42).
Failed / retracted
- I labelled steps 2-3 as P100: the shape is retired and kaggle-cli sends it to the default T4. Retracted (9639df5).
- AI-credit batch:
response_format=json_objectthrough the Model Proxy returned 400 on all 712 calls ("failed to convert config"); JSON mode unavailable. - metis-torch v1 died at step 3 (datasets each mount in their own folder); json.dump of numpy int32 crashed after parity; a
u.tardataset is auto-extracted so the kernel missed the tar. - Queue limits: max 2 batch GPU sessions; no cancel; delete only.
Not tried / open
- Pilot (Mojo GPU kernel on T4, llama.cpp CUDA parity) waits for a T4; pilot card unconfirmed (QUEUED, last push 17:24:52).
- K5b/K6b routed arms; badges (bookmark, collection) are in the lane's to-do (converter script, dataset, notebook, tags): no completion receipt read.
- Kernels still running at wrap:
metis-prune-audit,metis-prune-auditg,metis-sleep-bpb-cpu,metis-bench-cpu(bench is a torch port: UNVERIFIED until base reproduces ARC-E 0.31524).
6. Tool parity
Lane tool-parity (prereg bdfcf74; report in lane worktree, not merged). Spark toolgate 0/56 was retrieval, not rendering.
| check | result |
|---|---|
render parity, BARO_NEURONS=0 (llama-server vs baro serve): prompt bytes + ids | 56/56 |
| turn 2 (assistant call + stored tool result) | 55/55 |
| app cases (w04) | 8/8 |
| host prompt_sha vs Flip4 prompt_sha | 64/64 turn 1, 55/55 turn 2 |
retrieval on, body without neurons (reverse arm) | 1/56 equal |
| toolgate: baro same calls vs llama Q8_0 GPU (bar 54) | 52/56 |
| same vs L8x (slot clamp lifted, row 42 skipped) (bar 53) | 52/55 |
| raw generation from equal ids, 119 prompts: llama vs baro | 88 equal, 19 prefix, 12 diverge |
| Flip4 equals reply text: llama Q8_0 GPU / baro (of 119) | 115 / 107 |
| Xiaomi vs Flip4 | 64/64, 55/55 |
Brief figure "phone 51/55": not found in the report I read; the report's phone numbers are the Flip4 columns above. UNVERIFIED for 51/55.
Worked
- New
POST /apply-templateon baro-serve (text + ids chat_once prefills).metis-parity.shwith VOID guard.--override-kv qwen3.context_length=int:32768lifts llama-server's 4096 clamp (changed no call). - Port-collision audit: every toolgate on shared default port 8795 after 17:40 may have scored another lane's server (aa5d6d2). 13 parts invalidated and rerun on 8861; rerun matched the invalid run on 55/56 rows. Rule: unique port, read model back (
/propsor sha); busy-port refusal in both engines (9ab7029).
Failed
- Toolgate bar FAIL. Misses: row 4 and 55 (decode divergence at token 67 and 18), row 12 (parser: unclosed call, llama rewrites to
{}), row 42 (loop). - Part br not bit-repeatable: three different outputs in B, B2, B3.
Not tried / decisions
- Int8-activation path in spark (llama quantizes activations; spark f32); compare q8 blocks after undoing the pack layout.
- Parser policy (copy llama's rewrite or keep baro's drop): Mario's call. Accepting 52/55 would move a frozen bar after the run.
- K2 serve wiring.
Partner reviews: agy PASS (accepts 52/55, keep drop policy); codex confirms bar FAIL from receipts, final-text split fixed, causal claim narrowed. Final text, B vs L8x (55 rows): 27 equal, 11 share > 10,000 chars before drifting, 17 differ within 2,000 chars.
7. baro.apk
AB-Android worktree baro-ux, branch feat/baro-ux (62 commits today, none merged). Harness doc docs/metis-harness.md. Phones: Xiaomi 6d344501 (6 threads), Galaxy Flip4 R5CTB2LHPDE.
Harness arms H1-H7 (8 fixed prompts, greedy, adapter 2563f13)
</tool_call>) changed nothing: the model ends its turn itself (3201 tokens). Both phones make the same calls and answers in every arm.| arm | valid | right | final | runaways | invented | s/prompt (Xiaomi) |
|---|---|---|---|---|---|---|
| base | 6/8 | 2/8 | 0/8 | 1 | 6 | 0.92 |
| H2 dedupe | 6/8 | 2/8 | 0/8 | 0 | 4 | 0.80 |
| H3 repair | 7/8 | 2/8 | 0/8 | 1 | 7 | 0.95 |
| H6 repeat stop | 6/8 | 2/8 | 0/8 | 1 | 6 | 0.52 |
| H7 nudge | 6/8 | 2/8 | 0/8 | 0 | 3 | 0.61 |
| H7 fewshot | 8/8 | 1/8 | 0/8 | 0 | 1 | 0.43 |
| shipped H2+H3+H4+H6 | 7/8 | 2/8 | 0/8 | 0 | 3 | 0.32 |
Worked
- Shipped set: tokens 3201 to 866 (-73%), s/prompt -65%, runaways 0, invented answers 6 to 3. Decode 568 tok/s Xiaomi, 215 Flip4.
- Q8_0 ARM matmul port (AB-Android 8e4dd9d, daa37d3): ids 3/3 equal host, decode 332 to 518 tok/s with the adapter. Q4_0 dropped for Metis (garbage on phone 0/6, loops on host).
- Own q8_K quantizer, engine build drops llama.cpp (d7e1b82); tool loop, approval, cards, 7 phone tools (3 to 5 am), Agent-Brain folder, /compact, model sweep "tools: good/weak/untested" mark.
Failed
- final 0/8 in every arm: the host llama.cpp writes the same text, so it is the model: Metis knows only its training repo tools (run_js, brain_ask) and 5 of 8 prompts want tools it never saw.
- Nudge halves invented answers but the model parrots it; few-shot is copied (
calc 2*3every time). - Gradle trap: parallel sweeps broke Kotlin incremental state (UP-TO-DATE with no classes); fix
:baro:compileDebugKotlin --rerun.
Not tried
- Temperature 0 vs 0.3 (phone engine decodes greedy only).
- App tool list on a phone:
Metis.SYSTEM(training SYS + the app's 11 tools: now, phone, calc, note_save, note_read, note_list, memory_add, skill_read, skill_save, web_search, web_fetch; system turn 59 to 303 tokens) is not yet measured; waits for sleep A3 which trains on it. - ctxd + mod runtime native in baro.apk (plan only).
Adapter and phones
- Adapter "metis" 2563f13 (own SYS, 4 trained tools as the GGUF template renders them, think block hidden); mapping run_js to calc and brain_ask to skill_read differs from training: Metis writes JS where the app runs calc and invents results (07:55 BLOCK from w04, 08:1x result valid 6/8, right 2/8, final 0/8).
- Xiaomi work-phone cleanup through the phone panel (Brain OS 2026-11-21-xiaomi-work-phone): lockscreen magazine disabled, installer Mi Protect off, ads off; refused without root: browser, minigame. Stay-awake on USB (
svc power stayon usb, undofalse), scrcpy panel is the standard phone path. - Parity matrix (tool-parity, section 6): prompt bytes and ids equal across llama-server, baro serve, Flip4 and Xiaomi (56 + 8 + 55); Flip4 and Xiaomi replies equal 64/64 and 55/55; Q4_0 0.5B and Metis Q8_0 byte-equal before and after each MoE engine change.
8. MoE paging: PC (Betelgeuse clean-room) and mobile
PC: lane moe-paging (not merged; prereg frozen dff8270)
docs/lanes/2026-11-21-moe-paging-report.md, receipts exchange/receipts/moe-paging/, pack format docs/moe-xpack.md.Worked
- Paging is exact:
Q4X_PACK=experts.bingives the ids of the unpaged path (114 prompt comparisons x 32 ids, 7 arms, 2 passes). - Replay simulator runs the engine's policy code and predicts SSD MB/token to 0.2% (A1 191.4/188.7 vs 191.6/188.9). With 39 GiB RAM it predicts 0 MB/token (simulated).
- Storage: O_DIRECT io_uring 3.5-4.0 GB/s at queue depth 4+, 2.3 at depth 1; 3.2 in the engine.
- q4x on main ran UD-IQ1_M after
amar_q4x_fmv32(F32 router, inject, SSM alpha/beta).
Failed
- No SSD-free warm pass with this pager (146 MB/token).
- Exclusive RAM tier: 20% fewer SSD bytes but slower (140 vs 100 ms/token warm): D2H copy-back is 188 MB/token of PCIe traffic.
- Inclusive RAM tier smaller than VRAM: 0% hit. Profile from other prompts: helps the first request (160.9 vs 209.9 MB/token), not a 10-prompt pass.
- Agreement vs llama.cpp 95.31% vs control 98.44% on 128 positions: bar control - 2 pp FAIL by 2 positions; BF16 router rounding gives the same ids, so not the cause.
Not tried
- Per-block dump diff on p03-story position 1 (
Q4X_DUMP=1). - RAM tier of distinct experts without copy-back; reads overlapped with the previous layer; P6 routing limit (BLOCKED behind the gate); stripped dense GGUF (the pack is a second 39 GiB copy).
- wavewait capture of
amar_q4x_fmv32, preflight and run-tests before lane-merge.
Mobile (w04, worktree baro-ux)
| milestone | gate / number | receipt |
|---|---|---|
| S0b storage, Flip4 | cold O_DIRECT 1.7 MiB: 1273 MB/s (1 thread), 2031 (4); 4 KiB 28 / 134 MB/s. Xiaomi 2-2.6x faster. io_uring_setup: Flip ok, Xiaomi EACCES | 3482a3a, 3e9402b |
| B0 memory ceiling, Flip4 | 1, 2, 2.75 GB held 5 min: no app killed (MemAvailable min 1687 / 1160 / 869 MB). 3.5 GB: probe and 46 processes killed by lmkd. Pool ceiling 2.75-3.5 GB; pool default lowered to 1.0-1.2 GiB (agy) | s0b-b0.md |
| S0 sim, real flash-next traces (806 + 833 steps) | pools ≤ 768 MiB: 0% hits (817.9 MB/token, Flip 1.56 tok/s). 1 GiB 36%; 2 GiB 51.3% (397.6 MB/token, Flip 5.11, Xiaomi 10.92); 2.75 GiB 59.4% (331.4 MB). Lane sim 387 MB at 2 GiB (2.6% apart). Synthetic Zipf run superseded | s0-real-lane-ab.md |
M0 toy qwen4exp, ARM q4exp.c | Flip4 vs host greedy ids equal 3 x 32, routes equal 82/82/88 layer evaluations; -ffp-contract=off fixed an FMA drift | cf02906, 8673e0b |
| M0 real qwen3moe 4x0.6B in engine.mojo | ids equal host 3/3; byte-equal to ARM llama.cpp (--no-extra-bufts 1), prefill dumps 28 layers x 9 tensors; 17.4-17.8 tok/s, VmHWM 1.47 GB | 6f73f93..1582e8f |
| M1 qwen2moe 32x8 + sync pager | ids/routes/weights/logits byte-equal at 25% pool and 9-record pool; pins never violated; VmHWM 1.55 vs 0.91 GB | 868b55f, 28ba664 |
| M2 async demand pager (engine d0a2056b) | 9 slots + 15 faults: 2911 cancels, 1912 stale drops, 6059 injected short reads retried, all hazard counters 0; async 1.5-1.6x sync in 9 of 9 pairs; p99 token 151-161 vs 226-298 ms; staging memory added none | m2-gate.log |
| M2b lifecycle + fair control (engine 405f6f12) | 8 harness cases PASS (timeout 402 ms for 400 ms, 12 teardown/reopen cycles fd count stable, 240 cancels = 219 queued + 21 running); 36/36 ids equal M1; host TSAN clean; steady state 6.39 vs 4.75 tok/s | 7313958 |
| App integration (baro-ux 701ce08 + life + sustain) | real app chat reply 512 ids equal resident serve_app; 5 Stop+resend cycles: child PSS 1030 MB flat, app PSS +3 MB/cycle (unexplained); 160-token pairs: async 5.5 tok/s flat vs serial 5.05 to 3.76 (degrades); 0 LMKD kills; SoC 70-75 C | .work/moe-mobile/app/ |
Failed / surprises
- Phone llama_ref default weights go through KleidiAI Q8_0 (row-wise int8), 12% off the host at layer 0: use
--no-extra-bufts 1. Mojo fuses acc + t*w into an fma across statements; ARM router dot order differs from x86 tinyBLAS. - First B0 dry run: adb-shell processes start at oom_score_adj -1000 (unkillable); b0 now sets 0.
- Stop only honoured after prefill (4.5-5.1 s mid-prefill: UX gap). agy BLOCKED the plan's 3 GB RAM pool and the 27.5 GB P5 embedding trap in qwen4exp.
- A gate script missing
--layout 48cost a 2.9 GB push.
Not tried
- Thermal steady state beyond 8 runs, Xiaomi pager runs, worker-count sweep (4 only), prefill > 1 token overlap,
baro_pg_getsync-path fault injection. - Real flash-next (K-quants Q4_K/Q5_K/Q6_K/BF16, PLE, QSA indexer, MTP): T0 open.
Partner reviews (agy, 15 today): S0b/B0/M0 PASS, M1 PASS (3 x 64 bit-exact), M2 PASS (1.5-1.6x, 9-slot fault gate), M2b PASS (honest 1.33x). Real app RSS cannot exceed ~2.0-2.5 GB without LMK kills. DeepSeek small-MoE search: chat 2dc7bc6c... (a claim).
9. GPU room
MAX_ACTIVE_JOBS (env GPUWR_MAX_ACTIVE). Backup in Brain OS/backups/gpuwaitingroom-0.6.0-2026-11-21Findings (lane-eval-flake, head 8b13330)
- Kernel log signature:
sq_intr: error, type 2 (or 1), priv 1then[gfxhub] page fault.priv= error inside the trap handler (kfd_int_process_v11.c), the CWSR wave save/restore on preemption. - The card has 8 hardware compute queues; each llama process holds 5-6 KFD queues, the trainer 2.
- Not VRAM pressure (14.7 GB peak, GTT flat), not an uninitialized read:
hip_poison.c(LD_PRELOAD NaN fill + 2 MiB red zone) gives the same bits. - Tools:
hip-corun-repro.sh(repro and gate for a driver fix, run alone,--vram 24),hip-poison-gate.sh(PASS with its mutant).
Open / failed
- Cap counts jobs, not HIP processes (one job can start several).
- Driver side, Mario's call (load-time amdgpu parameters):
sched_policy=1,hws_max_conc_proc,cwsr_enable=0. DeepSeek answer (a claim; only theprivcomment verified): chat a1ff051a... - lane-eval-flake NOT merged:
bench/preflight.shand lane-merge not run (lane toucheslmodel.mojo). - My mistake: told every lane to prefer shared jobs; the hazard arm (4 fillers built to break the card) then ran shared beside tool-parity-B2 (rule 8b2ad1c).
Fairness rules written
- Shared jobs stay under 300 s (
951ac7atoolgate one job per kind); hazard and timed jobs never share the card. - Sleep train and bpb at priority 80 (boss); sleep gates on CPU F32 when the queue starved.
- gpu-wait: absolute paths,
--labelnot--title, nobash -cwith variables (re-shelled), stop wrapper loops before killing drivers;--room cpufor CPU builds (GPU room queue was 1.5 h). - gpu-room-watch also alerts at GPU junction/mem ≥ 100 C (iTools 7112eaf). User unit
gpu-room-watchruns on w0T:p1.
10. Process
Partner workflow protocol
~/Brain/protocols/lanes/partner-workflow.md: memory same turn, toolscript updates by any lane, questions go through DeepSeek (search + DeepThink on, 600 s timeout, close the tab), codex and agy are brainers: every prereg before freeze, every report before DONE, any blocker.- agy wrap-up: 15 formal reviews across 5 worktrees (list in Brain mojo-baro/2026-11-21-partner-wrapup-agy). Merge status: sleep-trainer merged f932b88; moe-paging, tool-parity, baro-ux, eval-flake NOT merged.
- Shared server ports rule after the 8795 collision (section 6).
DeepSeek fixes (amarbaro-devtools)
- IPv6
[::1]host fix (40c8d5c). - History-API completion: DOM turn-completion detection failed;
deepseek.pynow polls the history API every 5 s,timeout=600, mandatory tab close (cea0fa0).
Toolscript, wiki, OS
- Toolscript presets: any lane may add or fix presets (protocol 2); preset list changes today: no receipt read.
- Wiki harvest 2026-11-21 (3 haiku readers, sources cited, not re-verified): brief says +92 transcripts and +46 papers; sections in wiki.html. Rule: a lane report without its wiki line is not done.
- OS: ComfyUI-v0.43.0 retired, about 114 G freed (4.3 G to 118 G free, iTools d27848e);
w0t-resumeuser unit resumes the overnight pane after a reboot (not test-fired);gpu-room-watchunit; Xiaomi stay-awake.
Mistakes to rules (docs/rules.md in mojo-baro: 42 lines added, each with its SINDEX entry)
| what broke | rule |
|---|---|
| Step-time job read same-arm repeats 3-21% apart vs a frozen < 1.5% prediction | one start per arm is not a noise bound; repeat inside one job |
| Spark megakernel passed tokens and forced agreement, failed bytes on ~1 token in 5 | a byte dump gates a numerics port, not agreement |
| warp.shuffle_xor counted from source as 122 LDS instrs; ISA had 186 | count from ISA, not source; take the ISA receipt before queueing a GPU arm |
Monitor watched kill -0 $! of a setsid fork; another read jobs finished by pgrep -f on a log path | setsid liveness probe; poll the gpu-wait job, not a process name |
| 832 MB checkpoint filled /home (192 KiB free) | disk preflight before checkpoint writes; delete per-arm checkpoints |
| Wake sampler ran 38 min shared; sampler OOM blamed on llama-server, was cois recall (2.5-3.7 GB per query) | shared GPU sampler jobs under 300 s; look inside before raising caps; brain_ask 60 s cap |
| Toolgate on default port 8795 scored another lane's server | unique port, read the model back, refuse busy port |
| Amendment 3 cut mix-dev from a range the model had trained on (0.459 vs 1.639 bpb) | dev slices checked against the start model's training range |
| Kaggle: P100 label for a T4 run; fallback "not applied" from a QUEUED status; JSON mode 400 | read the remote card first; smoke call before an off-machine LLM batch |
| MoE paging identity passed with only a reference file; tool parity with two empty call lists | validate the expected arm / pass / case (rule 18fe02d: independent parity evidence) |
I read "hercule" as a second machine and ran ssh hercule | run hostname before reaching a named machine |
Commit bodies with line counts typed before wc -l (twice) | count pasted from the tool; commit-msg-counts iTool (7418848) |
| K5/K6 prereg froze a per-token router AND a merged-dense bar | routed merge refused; routed runs export experts + router |
| Step-3 parity and step-4 arms written before reading the training protocol | protocol read before the first training command (3536a6e) |
11. Not tried and open items, ordered
- Fetch the 4 running Kaggle jobs (
kaggle kernels output amarbaro/<id> -p .work/kaggle/out-<id>); check bench base vs XTX; sleep arm-minus-base deltas. - eval-flake lane merge: preflight in the lane, then
lane-merge --report docs/lanes/2026-11-21-eval-flake-report.md lane-eval-flake. Then Mario's driver-parameter call (cwsr_enable, sched_policy). - Prune: P1 regrow falsifier on CPU F32, then amend or fix, then
prune-step3.shseeds 1-3. - Sleep round: rerun
metis-sleep-round.sh arm X sper arm (resumes from DONE markers); report; phone GGUF; 48-row app-native dev split. - Loops: per-message call cap in the harness, repetition/value-length stop, training data with single calls (surgery and ablate agree the weights do not fix them).
- K5 it-0 gap (1.7967 vs 2.69505); seq3 picks to export + toolgate (port 8797); K4 appcheck.
- Tool parity: int8-activation path decision, parser policy (Mario), K2 serve wiring, merge of lane-tool-parity.
- MoE PC: p03-story dump diff, no-copy-back RAM tier, wavewait capture, preflight, P6 behind the gate.
- baro.apk: app-process pager run, Xiaomi, session export, app tool list on a phone, ctxd + mods plan (brief
.work/briefs/apk-ctxd-mods-plan.mdnot sent). - Sleep loop: first manual cycle with a real rollback before any automation.