03 — phases, measured outcomes, risks & open questions #
7. phases #
| phase | where | what | exit criterion |
|---|---|---|---|
| 0 | laptop, desktop | baseline runs + hardware constants (§6.2–6.3) | numbers for SSD GB/s, compute ceiling, thermal sag, per-turn time |
| 1 | Colab | traces, replayer, prune variants, quality evals, MoCE closed loop, SCR staleness (§6.1) | quality vs K table, misses vs (K, λ, policy, cache size) table |
| 2 | local | latency model = phase 1 misses × phase 0 constants. pick K, λ, policies. validate top 2–3 on the Air | chosen config hits the turn-time bar |
| 3 | Colab or rented GPU | data gen (persona + abstention), healing + persona LoRA on dense/router/shared with experts frozen, merge, quantize dense only, transplant into the pruned Swift GGUF | evals ≥ the untuned pruned model on agent tasks; fabrication down; persona score up |
| 4 | same | slop mining on tuned outputs vs dawn's text → FTPO | slop rate down, no eval regression |
| 5 | local, ongoing | runtime squeeze (§2.5 table), each technique A/B'd with its exactness class written down | — |
7.1 measured outcomes & finalist decision (phases 0, 1a, 1b, 1c, 2) #
-
phase 0 (13" M5 Air 24 GB / 1 TB SSD hardware measurements,
bench/README.md):iostat -Idverified 100% physical NVMe reads (disk0delta == 100% of requested MiB on 1 GiB virgin slices of a 12 GiB file): 2.41 GB/s (1-thread standard GGUF), 3.90 GB/s (1-thread.experts), 6.80 GB/s (2–4 threadpreadfan-out).- M5 10-core GPU sustained FP16 GEMM: 14.07 TFLOP/s (
356 tok/scompute ceiling) with 0.86% thermal sag over 60s continuous load (14.00 -> 13.88 TFLOP/s).
-
phase 1a (131,072-token multi-domain REAP calibration + 8,192-token OOS verification,
results/reap_saliency_v2.json,results/oos_prune_retention.json):- 99.97% expert coverage (
1,310,720picks/layer,0dead0-hit experts kept across all 9 keep-maps after the zero-prior damped LCB fix). - REAP L2 retention orders
reap_l2_sum > reap_hybrid > reap_shrinkat everyK ∈ {320, 256, 224}both in-sample (91.76% / 85.28% / 81.11%forreap_l2_sum) and out-of-sample on 8,192 strictly held-out tokens (87.18% / 79.71% / 75.27%forreap_l2_sum,86.54% / 78.16% / 72.98%forreap_hybrid).
- 99.97% expert coverage (
-
phase 1b (240-config in-sample + OOS closed-loop MoCE & cache replay,
results/phase1b_heldout_cache_moce_sweep.json):- OOS baseline cache hit rate matches in-sample within 0.05% (
82.32%OOS vs82.37%in-sample onK512LRU). - on the M5 Air (
cache_cap = 113experts/layer =7.5 GBinQ2_0),lru+ closed-loop MoCE (λ = 0.09,protect_top_j = 3) beats every other tested online eviction policy atλ = 0.09(near_pick_ema,ema,inverse_router_ema,lfu;belady_minis the offline future-oracle ceiling), cutting OOS misses/token from84.84(K512LRUλ = 0) to53.95(K320_reap_hybrid,88.76%hit rate,32.1–43.5 tok/sdecode),56.29(K320_reap_l2_sum,88.27%hit rate,31.3–42.7 tok/sdecode), and44.65(K256_reap_l2_sum,90.70%hit rate,35.9–47.4 tok/sdecode — lower than unpruned no-MoCE Belady's MIN oracle46.13by combining pruning + closed-loop routing bias). (Note: Tier-1 KLD/top-1 and Tier-2 below were evaluated atλ = 0standard routing; the quality impact ofλ = 0.09MoCE routing bias is evaluated during Phase 5 runtime integration.)
- OOS baseline cache hit rate matches in-sample within 0.05% (
-
phase 1c (Tier-1 KLD + Top-1 screen & Tier-2 20-task behavioral smoke suite,
results/phase1c_kld_results.json,results/phase1c_tier2_results.json,audits/opus_audit_phase1c.md,audits/opus_audit_phase1c_v2.md):- at
K = 320(13.73 GBnon-residentQ2_0,302.9 tok/s4K cold prefill):K320_reap_hybrid(0.3941macro KLD,83.20%top-1 agreement) andK320_reap_l2_sum(0.4178macro KLD,82.35%top-1 agreement) are statistically tied onops_tools(0.600vs0.627,z = -0.77ns) andchat_json(0.305vs0.304,z = +0.07ns), withK320_reap_hybridmarginally ahead onja(0.277vs0.323,z = -2.63). - at
K = 256(9.49 GBnon-residentQ2_0,317.5 tok/s4K cold prefill):K256_reap_l2_sum(0.5642macro KLD,79.76%top-1) decisively beatsK256_reap_hybrid(0.7485macro KLD;ops_toolsz = -8.67,jaz = -3.48). againstK256_reap_shrink(0.6069macro KLD),K256_reap_shrinkhas lowerops_toolsKLD (0.796vs0.895,z = +2.27) whileK256_reap_l2_sumwinsja(0.350vs0.520,z = -8.03),chat_json(0.447vs0.504,z = -2.17), andops_toolstop-1 (76.64%vs76.37%). - at
K = 224(7.36 GBnon-residentQ2_0):K224_reap_l2_sum(0.6667macro KLD,77.62%top-1) degrades significantly vsK256_reap_l2_sumon bothops_tools(z = -3.94) andja(z = -3.92). - Tier-2 20-task smoke suite (
v1_run_rescored_ja_trunc_only,n = 1seed atmax_tokens = 2048): all pruned variants score18–19/20 (90–95%)vs20/20unpruned (pairwise Fisher exactp >= 0.23, so Tier-2 is a non-regression smoke check with no pairwise ranking power;4of the7pruned failures are 2048-token cap truncations). - finalist checkpoints uploaded to
90-008/Swift-1.5-Qwen3.8-Flash-Next-REAP-Pruned-GGUF:K320_reap_hybrid(andK320_reap_l2_sumkeep-map): primary quality finalist (0.394macro KLD,83.2%top-1,2.74s256-tok cold prefill floor,32.1–43.5 tok/swarm decode w/lru+MoCEon M5 Air).K256_reap_l2_sum: primary speed/50%-pruned finalist (0.564macro KLD,79.8%top-1,2.11s256-tok cold prefill floor,35.9–47.4 tok/swarm decode w/lru+MoCEon M5 Air, fits in a single 80 GB A100 in int8 for Phase 3 LoRA healing without expert streaming).K224_reap_l2_sum: lower-bound size reference (7.36 GBnon-resident,39.6–51.0 tok/swarm decode).
- at
-
phase 0 + phase 2 local validation on 13" M5 Air 24 GB (
results/phase0_phase2_m5_validation.json,scripts/patch_strata_metal.py,scripts/prepare_strata_k256.py,audits/opus_audit_phase0_2_m5.md,audits/opus_audit_phase0_2_m5_v2.md,audits/opus_audit_phase0_2_m5_v3.md,audits/opus_audit_phase0_2_m5_v4.md):- all 22 archived runs (
5Strata speed +9Strata teacher-forced KLD +4patchedllama.cpp+4unpatchedllama.cpp) guarded by a 0.25svm_stat+iostat -Idwatchdog (min_avail_gib = 2.2 GiB,max_swapout_delta_mib = 64.0 MiB,0.0 MiBswapouts across all 22 runs): - upstream
llama.cpp(llama-clichat mode,-ngl 99 -cmoe -nr -lzm on -n 64) onK256_reap_l2_sum:1.40 tok/sdecode (105,851.73 MBwhole-rundisk0read at-ub 1024and85,725.73 MBat-ub 2048across load + prompt +-n 64generation),14.30 tok/sprefill at-ub 1024and21.70 tok/sat-ub 2048ondata/m5_val_prompts/llama_prompt_1264tok.txt(5,600bytes). - patched
llama.cpp(llama-completion -no-cnv -t 8,scripts/patch_m5_lazy_moe.py):3.22 tok/sdecode on the22-token prompt (33,428.34 MBwhole-rundisk0read across load + 22 prompt + 63 decode tokens),38.11 tok/sprefill at-ub 1024(46,808.58 MBwhole-rundisk0, hitting EOS after prefill with0decode tokens) and63.27 tok/sat-ub 2048(28,272.94 MBwhole-rundisk0, prefill only) ondata/m5_val_prompts/llama_prompt_1264tok.txt(not a like-for-likedisk0/ decode comparison against unpatchedllama-clichat mode), while--moe-cache-mib 1536degrades to0.28 tok/s. - optimized
StrataMetal engine (vendor/strata/build-metal/strata_window_cli, uniform3.40 GBarena across all 14 Strata runs,K256-q2_0-metal.gguf+K256-expert-profile.bin+PleTableDirect I/O):- startup + arena warm-fill:
424.45–504.58 msacross theMOCE=0.85speed runs (424.45–506.90 msacross all 14 Strata runs inresults/phase0_phase2_m5_validation.json;339.50–356.06 msinaudits/opus_audit_phase0_2_m5_v3.md) window init +0.6–1.3s(2.69–5.92 GB/sacross the 10Q2_0runs,3.98–5.04 GB/sacross the 4IQ3_Sruns)STRPprofile fill (2,441resident expert slots in 1 unifiedQ2_0size class vs1,550slots /1,440filled in 3 classes onIQ3_Sin the same3.40 GBarena;2.90 GBactive GPU dense weightsmlocked,0.34 GBCPUtoken_embd+1.28 GBskipped BF16hc_*unpinned in the4.53 GBfile map,0.0 MiBswapouts). - cold prompt prefill (Metal 4
matmul2dneural accelerators +QSA flash+ router GEMM overn_exp_ = 256):320.58 tok/s(3,194.19 ms) at 1,024 tokens and353.49 tok/s(5,793.65 ms) at 2,048 tokens in the earlierv3pass (audits/opus_audit_phase0_2_m5_v3.md), and229.99 tok/s(4,452.38 ms) at 1,024 tokens and268.23 tok/s(7,635.20 ms) at 2,048 tokens inresults/phase0_phase2_m5_validation.json([hypothesis: passive SoC thermal throttling + concurrent background CPU load]), with1.36 GBtransient prompt scratchmmapped withoutmemsetandcx_->freed +munmapped immediately after prefill (phys_footprint 4.73 -> 4.68 GB,resident RSS 7.41 -> 7.36 GB). - steady-state decode progression on the 43-token SQLite WAL prompt (
n_gen = 64,63decode steps, uniform3.40 GBarena):K256-metal.gguf(IQ3_S/IQ4_NLmixed, 3 size classes,1,550slots,MOCE=0.0):4.88 tok/s(205.02 ms/tok),77.32%combined hit rate (52.62%arena +24.70%read-ahead,108.9 misses/tok,585.2 MB/tokSSD read).K256-q2_0-metal.gguf(uniformQ2_0, 1 size class,2,441slots,MOCE=0.0):6.32 tok/s(158.22 ms/tok;9.51 tok/sinaudits/opus_audit_phase0_2_m5_v3.md),82.44%combined hit rate (63.86%arena +18.58%read-ahead,84.3 misses/tok,304.5 MB/tokSSD read).K256-q2_0-metal.gguf(uniformQ2_0, 1 size class,2,441slots,MOCE=0.85):8.04 tok/s(124.31 ms/tok:34.15 mswait +88.35 msGPU;13.52 tok/swith16.11 mswait +56.29 msGPU inaudits/opus_audit_phase0_2_m5_v3.md),91.48%combined hit rate (82.34%arena +9.14%read-ahead,40.9 misses/tok= −51.5% vsQ2_0 MOCE=0.0and −62.4% vsIQ3_S MOCE=0.0,127.2 MB/tokSSD read).
- steady-state decode after long prompts (
K256-q2_0-metal.gguf,MOCE=0.85,3.40 GBarena,results/phase0_phase2_m5_validation.json):9.33 tok/s(107.20 ms/tok:30.78 mswait +73.87 msGPU) after 1,024-token prefill (92.63%combined hit rate:84.38%arena +8.25%read-ahead,35.4 misses/tok,115.3 MB/tokSSD read) and8.37 tok/s(119.51 ms/tok:24.38 mswait +92.44 msGPU) after 2,048-token prefill (93.84%combined hit rate:86.70%arena +7.14%read-ahead,29.6 misses/tok,97.2 MB/tokSSD read). - 3-domain teacher-forced full-vocabulary (
248,320) FP64 KLD, PPL & top-1 quality decomposition on complete untruncated turns (n = 64final assistant tokens × 1 complete turn/domain =192evaluated assistant tokens aftern_prompt = 244 / 159 / 456prompt tokens indata/m5_val_prompts/eval_tf_{ops_tools,chat_json,ja}.txt, scoring the final 64 visible JSON tokens onops_toolsand final<think>reasoning +</think>+ complete visible JSON/Japanese output onchat_jsonandja, with0<think>template tokens in any scored span, relative to the prunedK256_reap_l2_sumIQ3_S/IQ4_NLreference):- isolated
MOCE=0.85reranking (Q2_0 MOCE=0.85vsQ2_0 MOCE=0.0):0.0588macro mean KLD (0.1477ops_tools,0.0052chat_json,0.0234ja) and96.88%macro top-1 agreement (92.19%ops_tools,100.00%chat_json,98.44%ja; PPL3.6716 -> 4.1013ops_tools,1.1808 -> 1.1993chat_json,1.9031 -> 1.9188ja). - unhealed
IQ3_S/IQ4_NL -> Q2_0expert conversion (Q2_0 MOCE=0.0vsIQ3_S MOCE=0.0):0.2032macro mean KLD (0.4621ops_tools,0.0395chat_json,0.1081ja) and90.63%macro top-1 agreement (79.69%/100.00%/92.19%; PPL2.6114 -> 3.6716ops_tools,1.1725 -> 1.1808chat_json,1.6488 -> 1.9031ja), motivating Phase 3's LoRA healing against the deployedQ2_0expert weights. - combined
Q2_0 + MOCE=0.85vsIQ3_S + MOCE=0.0:0.2386macro mean KLD (0.5640ops_tools,0.0406chat_json,0.1112ja) and89.58%macro top-1 agreement (76.56%/100.00%/92.19%; PPL2.6114 -> 4.1013ops_tools,1.1725 -> 1.1993chat_json,1.6488 -> 1.9188ja).
- isolated
- startup + arena warm-fill:
- all 22 archived runs (
-
phase 3 local healing, byte-level GGUF transplant & multi-prompt generalization on 13" M5 Air 24 GB (
results/phase3_local_healing_validation.json,results/phase3_22win_kld_audit_v1.json,results/phase3_22win_kld_audit_v2.json,results/phase3_9prompt_speed_audit_v1.json,results/phase3_9prompt_speed_audit_v2.json,scripts/heal_k256_q2_0.cpp,scripts/run_phase3_local_healing.py,audits/opus_audit_phase3_local_v1.md,audits/opus_audit_phase3_local_v2.md):- Signed-d importance-weighted Lloyd-Max
Q2_0expert quantization + real-trace per-layeralpha_lcalibration (T = 1,022,gamma = 0.00) + shared-expert ridge solver (blk.0..47.ffn_down_shexp.weight):- Unlocks the IEEE
fp16sign bit ofdinGGML_TYPE_Q2_0(type42), weightingW_gate/W_upby tempered real activation RMS(E[mixed_d^2])^0.5(beta = 0.50) andW_downby per-expert analytical fourth-root importance(sigma_g * sigma_u)^0.5 ~ (E[h_c^2])^0.25(beta = 0.25onW_downvsbeta = 0.50onW_gate/W_up) over the 1,022-token multi-domain calibration trace (data/m5_val_prompts/cal_disjoint_1024tok.txt;016-gram overlap on scored spans across all 22 unseen windows and 3 canary windows; 18/22 unseen windows have0full-window context overlap, while 4 windows share prompt context:<tools>boilerplate incj20_tool_5turn_t3/cj20_t3_answer_tool/cj03_toolcalland another turn ofpersonaconversation 3 inpersona3_t4). - Calibrates exact real-trace MSE scales
alpha_l = <y_ref, y_q2> / ||y_q2||_2^2(L0 = 1.308,L24 = 1.022,L47 = 1.121vs unseen held-out oracleL0 = 1.337,L24 = 1.021,L47 = 1.134; only2/48layers worse thanalpha = 1on unseen data vs22/48for Gaussianv1, reducing unseen routed residual from24.13%to23.37%), solves ridge regression (46/48layers full-rank640/640;L0rank430,L2rank617;eta_shd = 0.15,ridge_rel = 6.0) onblk.0..47.ffn_down_shexp.weight(in-sampleMoE MSE 19,061.40 -> 18,665.36 -> 18,460.89,-3.15%total:-2.08%fromalpha_l+-1.10%from ridge afterIQ4_NLrequant;-0.9%LOBO CV,-0.46%on unseen dump), and transplants the48modifiedffn_down_shexptensors intoK256-q2_0-healed-metal.gguf(1175 / 1223other tensors bit-identical).
- Unlocks the IEEE
- Full 22-window (
2686-token) 4-stratum unseen KLD audit onv2&v1(results/phase3_22win_kld_audit_v1.json,results/phase3_22win_kld_audit_v2.json,audits/opus_audit_phase3_local_v2.md):- Across all 22 unseen windows (
17unused docs,2686scored tokens acrossops,chat_json/tool,ja,persona),v2healedQ2_0beats unhealedQ2_0in20/22windows atMOCE=0.0(-28.55%[95% CI-33.5%,-23.2%] pooled KLD,0.2029 -> 0.1450,+2.27 pttop-1,85.22% -> 87.49%) and21/22windows atMOCE=0.85(-26.98%[-32.0%,-22.1%] pooled KLD,0.2123 -> 0.1550,+1.53 pttop-1,85.55% -> 87.08%). - Comparing
v2vsv1across the 22 windows:-5.08%[-10.8%,-0.1%] atMOCE=0.0(0.1527 -> 0.1450),-3.26%[-7.6%,+0.4%] atMOCE=0.85(0.1602 -> 0.1550),-3.51%[-8.8%,+1.5%] (n.s.) on the 18 context-clean windows (0.1522 -> 0.1469), and-16.53%[-28.3%,-4.4%] on isolated MoCE KLD (0.0389 -> 0.0325,16/22windows better). Per stratum (MOCE=0.0,unhealed -> v1 -> v2):ops0.1650 -> 0.1199 -> 0.1077,chat_json0.1554 -> 0.1243 -> 0.1130,persona0.3576 -> 0.2637 -> 0.2527(72.1% -> 78.4% -> 77.9%top-1), andja0.2374 -> 0.1723 -> 0.1796(80.2% -> 85.0% -> 83.7%top-1, regressed slightly vsv1becausecal_disjoint_1024tok.txthad only ~160jatokens). Oncj20_tool_5turn_t3(which shares<tools>boilerplate in context),v2is tied with unhealed atMOCE=0.0(0.1444vs0.1440, vs0.1783inv1) and0.1417vs0.1534atMOCE=0.85. - On the 3-domain 192-token canary set (
eval_tf_{ops_tools,chat_json,ja}.txt),v2macro KLD drops by-23.08%(0.2032 -> 0.1563, vsv1's0.1320, worse thanv1on the 192-token canary) atMOCE=0.0,-28.57%(0.2182 -> 0.1559, vsv1's0.1365;ops_tools-29.74%,ja-36.84%with93.75%top-1,chat_json98.44%top-1) atMOCE=0.85, and-57.3%on isolatedMOCE=0.85(0.0616 -> 0.0263, vsv1's0.0287).
- Across all 22 unseen windows (
- 9-prompt diverse speed & hit-rate audit on
v2(results/phase3_9prompt_speed_audit_v2.json) +results/phase3_local_healing_validation.jsonspeed suite:- Across the 9 diverse prompts (
coldshift_ja2rust,ja_pedal_398,json_extract_163,math_43,ops_csharp_713,persona_458,prompt_1024tok_ops,prompt_43tok_wal,tool_multiturn_588),v2atMOCE=0.85achieves92.96%mean combined hit rate (90.88%on multi-turn tool use to95.60%on JSON extraction,33.8mean misses/tok vs85.12%atMOCE=0.0;v1was93.27%, withpersona_458moving93.04% -> 91.26%,33.4 -> 41.9misses/tok) and9/9bit-exact determinism across reps. - On
results/phase3_local_healing_validation.json(3.40 GBarena,0.0 MiBswapouts across all 27 runs),K256-q2_0-healed-metal.gguf(MOCE=0.85) runs at284.31 / 324.59 tok/sprefill (1K / 2K) and8.4 / 9.03 / 10.74 tok/sdecode (90.93% / 92.13% / 92.55%combined hit rate,43.6 / 37.8 / 35.7 misses/tokvs84.7atMOCE=0.0).
- Across the 9 diverse prompts (
- Signed-d importance-weighted Lloyd-Max
-
phase 4 (
#97) WFLD Layer-47 anti-slop + phase 5 (#98) Strata Metalv3runtime optimization on 13" M5 Air 24 GB (results/phase4_colab_validation.json,results/phase4_healed_persona_ftpo_writers.bin,scripts/solve_phase4_wfld_l47.cpp,scripts/run_phase4_colab_ftpo.py,scripts/strata_metal_complete.diff,audits/opus_strata_metal_opts_v1.md,audits/opus_strata_metal_opts_v2.md,audits/opus_strata_metal_opts_v3.md):- Phase 4
v3.2Special-Token-Orthogonal Per-Word-Null WFLD at Layer 47 (blk.47.ffn_down_shexp.weight,47/48tensors bit-identical to Phase 3,||dW||/||W|| = 0.0978) + Prefix-Conditioned Sampler Penalty (STRATA_ANTI_SLOP_PENALTY=6.0):- Bars (a)–(c) Slop Reduction (
audits/opus_strata_metal_opts_v3.md§6.2 & §6.3):-84.14%on FTPO Train (n = 28,0.6326 -> 0.1003),-69.98%on Same-Doc Held-Out (n = 14,0.8733 -> 0.2622),-69.67%on Dev Separate-Doc Held-Out (n = 21,0.4703 -> 0.1426,20/21new argmax a natural word), and on the one-shot untouched 1,100-token Blind Multi-Turn Chat Test (p4_blind_test_1100,n = 21):-54.44%from weights alone (0.5543 -> 0.2525) and-98.98%(0.5543 -> 0.0056,21/21argmax clean) when stacked with the 0-overhead prefix-conditioned logit penalty inWindow::finish. - Bar (d) Per-Word Held-Out Collateral (
p4_collateral_1640,n = 142,08-gram overlap, bar>= -0.05per word &<= 10.0%below-0.10):" end"-0.0140(0 < -0.1)," than"-0.0343(3 < -0.1)," what"+0.1598(1 < -0.1)," version"+0.0071(3 < -0.1)," away"+0.0066(4 < -0.1)," actually"-0.0419(2 < -0.1); total< -0.10is13 / 142 = 9.15% <= 10.0%(overall mean+0.0211nats). - Bars (f) & (g) Multi-Turn Chat Special-Token & Ordinary-Token Stability (
§6.2Dev &§6.3Blind):0assistant-side argmax flips to<|im_end|>/<|im_start|>/<think>/</think>/<|endoftext|>,56/56(dev) and48/48(blind,+0.002mean $\Delta\log p$) real turn ends preserved,p(<|im_end|>)at slop positions0.0521 -> 0.0511(decreases), devnon-slop KLD = 0.00472 <= 0.005(ordinary Δlog p = +0.0208 >= -0.01), and blindnon-slop KLD = 0.0030 <= 0.005(ordinary Δlog p = +0.012 >= -0.01). - Bar (e) Real 48-Layer Strata Metal Engine 3-Domain KLD vs Phase 3 (
<= 0.01):ops_tools0.005273(PPL 3.0165 -> 3.0059,top-1 = 96.88%),chat_json0.000765(PPL 1.2023 -> 1.1980,top-1 = 98.44%),ja0.000970(PPL 1.7785 -> 1.7730,top-1 = 98.44%), 3-Domain Macro KLD =0.002336(97.92%macro top-1).
- Bars (a)–(c) Slop Reduction (
- Phase 5 (
#98) Strata Metalv3Runtime Speed & Hit-Rate Progression on 24 GB M5 Air (ops_1024,7.0 GBArena,MLOCK=1, WIRE=1,0.0 MiBswapouts,audits/opus_strata_metal_opts_v3.md§1–§4):-
Stock 7.0 GB Arena (
unwired, PF=8):17.03 tok/s(58.72 ms/tok),96.32%hit rate (17.7 misses/tok,7.26 msSSD wait). -
Strata Metal
v3Defaults (EXPERT_SPLIT=1, SHEXP_OVERLAP=1, SPLIT_TURN=1, PRED_Q8=1, ROUTER_BF16=1, MOE_DN_TILE=8,2,4, PREWARM=1, PF=6, UNPERT=1):22.08 tok/s(45.28 ms/tok,+29.7%vs7.0 GBstock,+105%vs Phase 33.4 GBarena's10.74 tok/s, and15.8xfaster than unpatchedllama.cpp's1.40 tok/s),97.59%combined hit rate (92.81%arena +4.78%read-ahead,11.6 misses/tok,5.08 msSSD wait,38.86 mspure GPU kernel sum;22.25 tok/s/44.95 ms/tokand97.82%hit rate /10.5 misses/tok/4.61 msSSD wait withPF2=2, IO=8). -
Phase 5 Disk Session Save/Load + Suffix Cache Reuse (
SCR) with 36-Layer GDN Staleness (results/phase5_scr_and_session_validation.json,audits/opus_phase5_scr_and_persona_v1..v2.md):--save-session/--load-session(1,983cells =139.46 MiB) saves in21.70 msand loads in28.93 mscold NVMe (5.18 GB/s,281xfaster than8,138 mscold prefill) /5.00 mswarm (1,627xfaster) with0.000000KLD (100.00%top-1) atMOCE=0, EXPERT_SPLIT=0. On[A B C] -> [A B' C]folds (A=512, B=1024 -> B'=60),Window::scr_relocaterelocates + RoPE-rerotatesCacross all 12 QSA layers in0.2–0.5 ms, andkeep(S_ABC, keeping the post-edit 36-layer GDN state) yields+0.0038nats/tok (C=511, PPL7.49 -> 7.20,92.19%top-1) to+0.038nats/tok (C=1535,3.48x–3.79xprefill speedup,3.20%repeated 4-grams over 128 greedy tokens) of isolated 36-layer GDN staleness (lossy J=|C|sanity rows =0.000000KLD), plus0 / 190empty turns atstep0on the 190-pair Real-VN (Steins;Gate+VA-11 Hall-A) + Persona dataset.
-
- Phase 4
training compute layout for phase 3 [est]:
- training happens after pruning, so the model is smaller. at 224 experts: routed experts at int8 ≈ 52.8 GB + dense (~3.6B params) bf16 ≈ 7.3 GB, which fits on one A100 80 GB with no expert streaming, leaving ~15–20 GB for activations (chunked loss, short-ish sequences, activation checkpointing).
- train against the deployed expert weights. the experts are frozen anyway, so use the exact dequantized GGUF expert values in the training forward. the persona/healing LoRA then also compensates for the deployment quant's error, which is free QAT. the only train/deploy mismatch left is the export quant of the dense tensors. needs a torch kernel for the chosen expert format; Q2_0 is simple scalar (no lookup tables), IQ formats are harder. another point for Q2_0.
- multiple Colabs:
- data generation is embarrassingly parallel and probably most of the compute: persona traces, teacher top-k logits, abstention sampling (several samples per question), slop mining, eval runs, prune-variant evals. one Colab per shard, results to HF.
- data-parallel training over WAN is feasible only because LoRA grads are small (r=16 on dense projections ≈ 50M params ≈ 100 MB bf16 per sync). use DiLoCo-style local steps + infrequent sync, elastic so a disconnect doesn't kill the run. Colab can't accept inbound connections, so sync goes through a relay/object store. concurrent-session limits per Colab plan: unverified.
- RL is not in the plan (SFT/KD + FTPO). if it ever is, e.g. for agent behavior, Modal's mixed-precision, mixed-accelerator sampler result applies directly: quantized GGUF samplers on Colab/local, BF16 trainer elsewhere. it needed masked importance sampling + score centering + top-p with mask replay, and token-in-token-out. uncorrected runs collapsed, and the collapse sign was the agent stopping its tool calls. routing mismatch includes MoE top-k and the sparse-attention indexer; MoCE at sampling time would add more [src: modal.com/blog/toward-rl-on-mixed-precision-mixed-accelerator-samplers, 2026-10-13].
other phase 3 notes [est]:
- if we ever train at 320 experts in int8 (~75 GB experts + 7.3 GB dense > 80 GB VRAM) without a Q2_0 dequant kernel, fallback is streaming frozen experts per layer from Colab's ~167 GB host RAM over PCIe with large token batches
- vocab-sized logits at 16K seq are 16 GB per sequence unless the loss is chunked (use chunked cross-entropy / KL)
- rented 8×H100 is the escape hatch if single-A100 + multi-Colab data gen feels slow
- tinker / together / fireworks don't fine-tune Flash-Next [web]
- an unverified "LoRA over GGUF in ~40 GiB" claim exists [web]
8. risks #
- 224 experts may fail JA or agent evals even with good calibration. then 256/320 + more streaming.
- SCR staleness on 36 GDN layers could be much worse than ds4's +0.015–0.040 nats/token.
- MoCE + pruning compounding quality loss. λ has to be retuned per K.
- Air thermals make sustained cold prefill slow. reuse has to carry it.
- desktop 16 GB RAM may make the desktop slower than the laptop.
- Strata-Metal at 24 GB is untested ("other chips and memory sizes are untested" [src: MAC.md]).
- abstention tuning over-refusing.
- trace-based saliency drifts once persona training changes the router. re-check routing after phase 3.
9. scripts/mine_llm_isms_from_transcripts.py: required fixes #
tested 2026-10-14:
- parses 0 turns from the 16 Claude Code jsonl files in
~/.claude/projects. CC rows are{"type":"assistant","message":{"content":[…]}}; the script expectsmessages. - albedo transcripts are erlang-term binaries in
~/.albedo/albedo.sqlite. read them through the session API (agents.sessions()/h.messages()). - albedo-era assistant text is already persona-styled, and providers have different slop profiles, so tag by provider.
- make
--human-ref-dirrequired (without it the log-odds collapse to z ≈ δ/10). dawn's user turns are the baseline. - use Monroe's informative prior α_w = α₀ · p_background(w). the current
0.01·p·α₀ + 0.01is nearly flat. - don't strip punctuation before n-gramming (n-grams cross sentence boundaries).
- token-variant mapping: add newline/quote/after-punctuation forms, keep phrases > 4 tokens, don't
.capitalize()whole phrases. - drop the 1.5% / 3.6% "safety cap" (letter-lipogram paper, no basis).
10. open questions (dawn) #
- is the desktop's 16 GB RAM fixed?
Air: 13" or 15"? SSD size?answered locally: 13" M5 Air (Mac17,3), 1 TB SSD (~303 GB free).- does the laptop have to run the same model, or only the same persona? currently assuming the same model.
- how much do vision and JA matter vs scripting? sets the calibration mix and how far pruning can go.
- persona inside
<think>too, or only visible replies? - which harness drives it: Connectome itself, an albedo-style python kernel, or something custom? the eval runs through the same one (§2.9).
- is Gadsby-4B yours? (used as evidence in §2.2 either way)