Skip to content

mojo-neuron v1.0.0

Latest

Choose a tag to compare

@amarbarosys amarbarosys released this 09 Nov 22:21
· 24 commits to main since this release

mojo-neuron v1.0.0

Released: 2026-11-09 · Commit: 0b209ec · Previous: first release

What it does

mojo-neuron reads the neurons of a GGUF language model in 11 seconds on a CPU (one layer of a 0.5B model, gate included) and steers them through the
mojo-baro engine 4.3 times faster than gguf-neuron-explorer. Most of the research we built on top of those
tools missed its pre-registered bar: transcoders, a lie probe, model dreams, a condition gate. The README lists the misses next to the passes.

It is a neuron explorer written in Mojo. It computes the logit lens of every neuron of a layer, shows where a neuron fires on your text (a CPU forward
for dense llama, qwen2 and granite, checked against llama.cpp), steers and ablates neurons on the GPU, captures activations for transcoders and probes,
and offers the same calls as a command line (nx), an MCP server and a small window app. Every tool has a gate with a planted defect.

Highlights

  • First public release: logit lens of every neuron on CPU, a CPU forward of where a neuron fires (llama, qwen2, granite, checked against llama.cpp), GPU steering and ablation through mojo-baro.
  • nx command line, an MCP server and a window app over the same calls; every tool has a gate with a planted defect.
  • Research tools: activation capture (24x faster batched prefill path), transcoder trainer, tuned lens, concept arithmetic, lie probe, neuron surgery, implants format.
  • Pre-registered results published with their misses: transcoder bar, lie probe, model dreams, CAST gate, MoE router capture.

Changes

Added

  • Everything: the first public version. The full history before 1.0.0 is not published; the reports in docs/reports/ and the preregistrations in docs/prereg-*.md record it.

Verified

Check Result
scripts/check.sh (CPU gates, 23 checks) on the merged tree PASS
tests/causal.sh (ablate-scan reachable through nx) PASS
gitleaks over all commits no leaks

Known limits

  • GPU tools need the separately built mojo-baro engine; tested on one RX 7900 XTX (gfx1100) only.
  • Transcoders do not reach the pre-registered FVU 0.55 (best 0.624 at K=256, 380k tokens); a linear ridge map reaches 0.52.
  • The lie probe flips on negation; implant results (G2-G4) are still running and not in this release.
  • Batched and one-position captures differ slightly (cosine >= 0.9967); do not mix them in one training set.

Upgrade / run

scripts/check.sh

Commits

  • 0b209ec docs(readme): ablate-scan name, A5 router capture MISSED row
  • 28d11d7 docs(skill): nx ablate-scan
  • 5b82faf docs(rules): duplicate nx call names after a merge
  • 68d827a fix(calls): ablation scan reachable as nx ablate-scan
  • e90ca09 docs(readme): public README for 1.0.0
  • 5072c4b docs(skill): agent skill for 1.0.0
  • 7540a73 docs(report): steps versus data at 380k tokens: K64 18000 steps 0.641, K256 6000 steps 0.624; 0.55 chase closed, flattening was partly steps
  • 7059581 fix(causal): resume chain runs the guard tests first, prints wall seconds per stage, sends LANDED on guards PASS
  • 3c7b25f chore: Apache-2.0 license for the public release
  • 7e828cb feat(causal): resume script after the box reset, only missing stages, no builds
  • b596e8d feat(causal): admission-guard test for the neuron2b engine ops (audit P1 to P3), ignore pycache and the herd inbox
  • e434405 docs(rules): build cap after the thermal reset
  • 67692ed docs(prereg): B1 skip transcoder (TopK path + ridge-initialised linear skip), arms, controls and bars fixed before any run
  • 4c09ee4 feat(trainer): --hold, --eval2, --stats cache; scaling_fit oracle; data scaling on the 400k capture (K64 0.778/0.720/0.695 at 100k/200k/380k, floor ~0.67)
  • 0568f38 feat(causal): G4 chain script
  • 36887f9 docs(prereg): G5 localized context distillation, bars before any G5 run
  • 4e53b96 docs(capture): batched prefill path, rate and agreement
  • 0f761e0 feat(causal): batched-prefill capture rate check fixed for the extra generated records; 400k capture script
  • ad8baab fix(causal): G3 select split in two (layer at k=100, then scale per k at that layer), a third of the GPU requests
  • f86c354 feat(causal): batched-prefill capture check
  • 8732126 docs(prereg): batched-prefill capture bars and rate rule, before the run
  • d8dba54 docs(report): trainer investigation, K64 0.658 / K256 0.643 at 100k tokens, data scaling, capture speed, GPU minutes; tc_train --ntrain
  • 0ebe5d1 fix(causal): G3 keys implants at the first wrong token (T1c) and at every answer token (facts), not at the last prompt position
  • cf00998 feat(causal): A5 gate result MISSED, ids equal in 198 of 240 cells, weights 1.2 percent median off; oracle stride bug fixed
  • 17c8d0a feat(causal): A5 gate runs three engine variants in one job after the first run's ids differed at positions 1 to 5
  • a584c6e feat(trainer): init rescale, held-out trace, cosine schedule, beta2, abort guard, ridge warm start
  • 59e119b fix(causal): G3 harness stops before capture when a family has under 30 test mistakes
  • ecd73a8 feat(causal): G3 harness family mul3 (T1c) and a 10-token answer cap
  • 32c9f0f docs(prereg): G0 amendment D, T1b has 28 mistakes (no verdict), T1c three-digit products, before any T1c run
  • 28f0f80 fix(tests): tlens gate creates .work/tlens before writing the mutant receipt
  • bbc48c1 feat(causal): A5 gate, llama.cpp router oracle (C++), comparer and script (not yet run)
  • a6ccd57 docs(rules): size deletes by exclusive bytes on btrfs
  • 33e58d6 feat(lens2): nx tlens, tuned lens fitted with KL to the final logits; passes bars 0-5
  • 1097293 feat(agent): nx cast, request-level condition gate for personas; FAIL bar 5 out of domain
  • e65ec18 feat(lens2): nx lens-diff, contrastive lens of matched prompts; FAIL on both preregs
  • 90a55e2 fix(causal): A5-prep check is structural (the old identity names another bake), sha only reported
  • 046efef feat(causal): A5-prep script, rebuild the RegesCore pack with the pack tool, checked against the old identity.json (not run)
  • da3333a feat(causal): G3 harness family switch, T1b multiplication default, reuse of the mined unrelated set
  • dd8b6da docs(prereg): G0 amendment C, T1 has zero mistakes (no verdict), T1b multiplication replaces it, before any T1b run
  • abeced3 fix(tests): sound, scan, image use the baro venv python, not a removed lane venv
  • 2e3a0ba feat(causal): G4 harness, prompt to implant compiler with control, vector and short-prompt baselines (stub-engine dry run only)
  • 101eb3f fix(tcceil): FAIL on a capture file shorter than req.i32; gate fixture uses the real record size; keep-alives after raw-pointer loops
  • 649e3ce docs(prereg): G4 concrete skills, scorers and compiler settings before any G4 run
  • 7f642c8 docs(prereg): tuned lens b supersedes the unrun tuned lens prereg
  • f18208d feat(causal): G3 harness sweeps one implants file per family, stub-engine dry run
  • bc2cb47 fix(tcceil): empty held-out split fails with a message instead of printing nan
  • e77b080 docs(prereg): lens-diff b after the first run failed bar 2 on the English pole
  • 1d831f7 docs(prereg): lens-diff, tuned lens, CAST gate bars before any result run
  • 9b46854 docs(rules): partner, one directory per ls; a zero-row held-out split fails, never nan
  • cbf4233 docs(report): lane features report, numbers, misses, next steps; splice base-request rule
  • 0bef0ee docs(plans): follow-up, C4 image prompt drops user text
  • b833dfe feat(B1,B4): tcsplice (Qwythos splice KL gate), tcceil (linear ceiling), resumable b4.sh with locale fix
  • 9fee9f2 docs(reports): splice KL pass is post hoc, A5 parked, lane-merge NOT READY and its causes
  • 134aeb3 fix(tests): rlens gate builds nx with the mojo-log include and deletes stale binaries first
  • 82b8e20 feat(causal): scan prints and logs its ablation mode and metric (papers synthesis, A2c)
  • 6f0aeb5 docs(reports): causal report update, A2c-group, splice, A5, merge state
  • 8ddc514 feat(causal): splice op gate; run 1 failed its NLL bars, KL bars (post hoc, same receipts) pass
  • 9ac18f0 docs(product): second-pass report and tool table
  • 06679bf feat(F1c): persona by name through baro-serve, apply returns the steer field, nx chat --persona
  • 3561417 feat(agents): E1 build for steer, read-path check apart from the answer
  • 8d60321 docs(report): sha column and the build-line fix in the probe report
  • 80d1287 fix(build): add the mojo-log include to the nx, mcp and app build lines
  • c40b852 feat(causal): A2c-group scan by predicted direct effect, verdict MISSED
  • b761819 docs(report): lane probe verdict, F24b result run, data files; lie_eval prints none for the set without twins
  • 6bf8ac0 chore(git): merge=union for docs/rules.md, append-only file
  • a7a60e2 feat(F10): brain-scan replay scrubber in the app's scan view
  • a5ada72 docs(prereg): engine splice op and absolute target NLL, before any run
  • 67925cd feat(B2,B4): feature steer gate (tcsteer), label gate (tclab, b4.sh), seed stability (tcstab), forward injection
  • f3af7d5 docs(F1c): prereg for persona by name through baro-serve
  • b49cc47 feat(F4): sonification fingerprint, nx fingerprint enroll|match
  • 4d9e54e docs(rules): partner verification rules (gate paths, rebuild from sha, queued composer text)
  • f1b698c fix(agents): every agent task names the absolute path of its README, hermes gets --in
  • 468cb29 docs(prereg): F29b group-level self-surgery, replaces the single-neuron F29 plant before any run
  • 7e8d1de docs(prereg): A5 MoE router capture bars; gate blocked on a missing RegesCore pack
  • a881757 docs(report): F26c sweep result FAIL, monotone curve, prompting wins; verdict across F26/F26b/F26c
  • 20c4663 docs(report): F26b result (FAIL, bar 2 4/8 and bar 7), image path, F26c pending
  • c4b9237 docs(prereg): A2c-group floor and groups share one engine process
  • 83e9dca docs(rules): agent smoke tasks name absolute paths, proven in a clean worktree
  • ffa60c8 feat(F30b): synthetic-unit labeller test and steer-first labels for nx wiki
  • cf4d8a1 docs(prereg): A2c group ablation by direct effect with logit-difference metric, floor first
  • 058042d docs(prereg): F24b states how the null bar was derived, adds the pairwise null flag, before the result run
  • 1c2af13 docs(prereg): F24b amendment from the confound hunt, before any F24b result run; add the F24b code
  • 43434ac feat(agent): F26c sweep mode (mults, held-out split, prompt-only baseline), tested on a scale-dependent stand-in
  • 8f2965a docs(reports): lane app report, verdict first (C0-C4, E2, E3)
  • 88d9e69 docs(reports): lane causal report with verdict
  • 1642f81 feat(F2): circuit pin format and verdict arithmetic (engine half waits for A4 and A3)
  • cdc18d3 feat(F3): nx concept (A - B + C steering vectors and lens), nx probe live score; engine gate green, language-swap bar missed
  • 5177e3d feat(F24): lie probe on Qwythos-9B, 1921 wiki-backed pairs, steering gate green, bars 1 and 2 missed
  • 0475df4 wip(causal): G2 builder and G3 harness written, not run
  • 60f55c8 feat(causal): G1 implants format and gate (engine neuron2 7ce6c1f)
  • 2747499 feat(chat): E2 nx chat through baro-serve, E3 qwen-code/omp/hermes scripts
  • 048e88b feat(causal): A2b scan gate passes: floor 7.7e-6, no sampled neuron detectable, singles bit-equal
  • f80494c docs(prereg): A2c direct-effect pre-rank and G regression/symmetry/baseline checks from the papers synthesis
  • 0aba919 docs(prereg): C2b dial calibration, inverted-U sweep, side-effect NLL, prompt baseline, random control (before any run)
  • 8aec158 docs(rules): a gate names the binary's build commit; verify rebuilds
  • 54faff0 fix(scripts): verify-item takes VERIFY_WT so two gates run in parallel worktrees
  • add6aab docs(F30b,F1b): next preregs, steer-first labels, synthetic-unit labeller test, persona strength sweep
  • 2bcb447 docs(prereg): B4 labels + B1 seed stability + B3 stitching, folded with the papers-synthesis checks, before any result
  • 951324b docs(prereg): F24b transform families and baselines, F25b effect space, before any code
  • dbac7f7 docs(prereg): F26c coefficient sweep with held-out peak, F5b effect-space agreement
  • 898d046 docs(reports): papers synthesis, 198 papers, nine agreed protocol changes
  • 92eab31 docs(prereg): A2b scan with a noise-floor control, relative tolerances, before its result run
  • 5e0fa05 feat(agent): dream score bar 7 (distinct tokens), tested on both stand-in engines
  • 49dce1b docs(prereg): F26b mid-scale dreams, mult 2.5, bars before the run
  • 42c2291 docs(rules): rerun a one-off gate failure once, log both
  • 12b9c83 docs(prereg): B2 feature steer bar, before the result run
  • a7eb141 docs(prereg): G0 T1 pool is all 3645 carry additions, the 20000 planned do not exist
  • 4fdc87a feat(causal): A3 neuron surgery, nx surgery and nx scan
  • 7f9f4a7 feat(causal): A2 ablation scan with a noise-floor control
  • 42e8f2c docs(prereg): G0 amendments before the G3 result run
  • 1c03694 docs(report): lane agent, F26 prereg run misses bar 2 (3/8), post hoc 5x run 8/8 but collapsed
  • 1ded0bd feat(app): C2 persona dial, C3 sound, C1 live scan, C4 image per turn
  • 940bec5 feat(B1): TopK transcoder trainer, capture tools, spliced-NLL gate; B2 feature lens option
  • a677365 docs(product): lane R tool table and the 2026-11-09 report
  • 5487baa fix(scripts): verify-item records the tree hash, a message-only rewrite keeps the receipt
  • 18648f8 feat(scripts): verify-item runs a lane gate on its exact sha in a detached worktree
  • 0604f51 docs(prereg): G0 neuron implants, bars for generalisation, memorisation and the prompt compiler, before any result
  • 327679c docs(plans): G4 prompt to implant compiler, skills out of the context
  • 305412e docs(plans): G scores memorisation too (capacity, interference, cost)
  • d23183b docs(plans): G, neuron implants with a preregistered generalisation test
  • 708e78c feat(F10): brain-scan replay data side, nx replay record|frame
  • c7d20cc feat(F30): Wikipedia neuron map, nx wiki forward and reverse
  • 5259253 feat(F1): persona store, nx persona list|save|apply
  • 21fa2db docs(F10,F4): prereg for the replay and the sonification fingerprint
  • b09dfa5 feat(agent): F26 dream driver tested on a stand-in engine
  • c092ced docs(prereg): F2, F27 and F25 bars written while their v2 prerequisites are open
  • ce4e2f5 docs(F30): prereg for the Wikipedia neuron map
  • 29a6dd2 docs(prereg): F3 CPU gate section is a record, it predates this document
  • 5d77bb5 docs(prereg): E1 steer and capture passthrough bars before the result run
  • dae3854 docs(prereg): F3 concept arithmetic bars before the engine and language-swap runs
  • 71656dc docs(prereg): F24 bar 3e, the steer is applied at Ls, added before the result run
  • cc6877f docs(prereg): A3 surgery bars before the result run
  • f43d6fb docs(prereg): A2 ablation scan bars before the result run
  • ef7a8e1 feat(agent): F26 dream tool, scripts and nowrite gate; prereg F29 and F5
  • b943020 docs(F1): prereg for the persona store
  • e9b2aed docs(prereg): F24 lie probe bars before any result run
  • ca9245c feat(F9): anomaly radar, nx radar clusters anomalies.jsonl by tool, kind, unit and time
  • 0defbf2 docs(prereg): F26 model dreams bars before the result run
  • 8b56861 docs: F plan uses brain-ask --net wiki; rule for naming the exact net
  • cbf78b3 docs(F9): prereg for the anomaly radar
  • e27b463 docs(prereg): B3 cross-model map bars, before any result run
  • f062a4c docs(plans): section F, 13 research, wild and product features for team 2
  • 780222e wip(B1): tccap (CPU MLP in/out capture), tc_train CLI, forward() ml capture
  • a58bf83 feat(causal): A1 capture format, oracle and gate
  • 27b1e52 docs(prereg): C2 persona dial bars before the result run
  • 84d53ff feat(causal): A1 capture format, oracle and gate
  • 86aa1ca feat(calls): cvec call, write_cvec shared by the CLI and the app
  • c2bdbf6 feat(B0): rlog, the research log every op ends with
  • 3339c78 feat(B0): rlog, the research log every op ends with
  • d8ad2c5 docs(plans): chat through baro, steer passthrough, qwen-code/omp/hermes on baro-serve
  • 82e9444 feat(app): move the window app to imkit v0.8.0 (theme, UTF-8 tokens, table, plot)
  • 2e25666 wip(B1): TopK transcoder GPU trainer core + step parity gate
  • ba2788d docs(plans): research log on by default, normal and anomaly events
  • 827ed5c docs(prereg): B1 transcoder trainer bars, written before any result run
  • a7f9d34 docs: plan names engine.mojo for qwen35 capture; rule for naming the binary
  • 20d1bae docs(plans): neuron v2, causal tools, transcoders, live app on Qwythos-9B
  • aa2ae60 docs(rules): parallel lanes appending to shared files
  • 8774b84 docs(briefs): final lane reports from engine and app
  • c336309 exp: exp_next checks its own top-Q firing selection
  • a53cc19 exp(E5): E2 and E3 replicate on a text the ridge maps never saw
  • f5f3e1c exp(E4): weight-cosine connections do not predict co-firing (null at 5 layers)
  • 4a5e984 exp(E3): the ridge R-style lens turns the layer-12 null into 1.44x, loses at layer 22
  • a4b103d exp(E2): the lens predicts firing only in the last third of the model (lift 1.0 to 3.5 with depth)
  • 910c954 exp(E1): the logit lens predicts steering at 17-18x chance, but for only 5% of neurons
  • dabb430 docs(experiments): X3b result and summary; experiments.py x3b
  • 3fcdd1f docs(experiments): X3 result (0 of 20, falsified and underpowered) and the X3b follow-up registered before it runs
  • 1079493 docs(experiments): X1 result, logit lens predicts the steer lens 15.9 x above chance but for only 5.8 % of neurons
  • 7c0c34a docs(experiments): X2 result, antisymmetry of +-0.5 is falsified
  • 34f5a6f docs(experiments): three hypotheses, falsifiers and thresholds, before any number is computed
  • f78035b fix(engine-steer-check): Gate A alone decides; Gate B v2 is post hoc and printed as a diagnostic (E1, boss review)
  • 51fe9d0 feat(engine-slens-check, engine-slens-sweep-check): steer lens on engine.mojo against the engine's own rows (item 6)
  • ea6bf19 feat(engine-sweep-check): resident sweep on engine.mojo equals one-shot BARO_STEER runs (item 6)
  • 84a56e6 feat(engine-mega-check): steered megakernel keeps mega on and within 5 % of unsteered speed, tap gate with mega (item 3)
  • f6ccb9f feat(app): steered chat generates live through the engine's resident sweep
  • 067753b fix(engine-steer-check): residual-tap Gate A decides, calibrated Gate B, top-1 kept (E1)
  • 8b4b020 feat(live): steered chat call that runs the engine's resident sweep
  • 25730b9 docs(prereg): v2 Gate B for the engine steering gate, written after the v1 readings and before any v2 reading (E1)
  • c873cc2 fix(app): steered chat shows the unsteered baseline for the same prompt
  • 3c08640 fix(mcp): export_brain over MCP indexes the note, as its description says
  • 0c52c7b fix(mcp): negotiate the protocol version instead of echoing the client's
  • c5878ee fix(calls): search_lens stops after k hits
  • e882f88 docs(prereg): tolerances for the engine steering gate, before the 27B re-run (E1)
  • ace9343 perf(cvec): dequantize each layer once per recipe (E4)
  • ef972e3 fix(lens): merge model.json instead of overwriting it, store the gguf path absolute
  • be51d19 fix(sweep): refuse an incomplete or damaged spark response (E3)
  • f4e6ec7 fix(fires): gate compares every activation against an independent full oracle
  • e3f5373 fix(slens-verify): check the down half of every record and a down-neighbour mutant (E2)
  • d1a1bca fix(lens): gate checks rank order and both poles, not set membership
  • 0fc28ae docs(briefs): codex review brief and lane reports
  • 6baaa48 docs(engine): parity matrix after the final gate run (llama1b and granite steer lens PASS, 9B and 27B engine rows)
  • fee1234 feat(engine-steer-check): noise-aware rule for packs whose base logits already differ from llama.cpp
  • b93b1b7 fix(slens-verify): tokenize with BOS like the driver; DOSE for slens-check
  • ee8564d feat(cvec): layer count excludes multi-token-prediction heads; engine steer gate, docs
  • ffafc41 docs: benchmark against gne, engine parity rows, provenance
  • 8173acb feat(sweep): literal \n in a prompts file is a newline (templated prompts with chat=0)
  • ca5a7c6 feat(slens): one batched op per dose through spark, 4.7x faster than request per context
  • 963b8ce docs(readme): what the app lane ships and how each piece is checked
  • 2fc45ea feat(dossier): steer lens section from the engine's steer.bin
  • 3fe3740 feat(rlens): ridge-regression R-style lens, read through lens --rmap
  • ff407bf feat(slens): KL per neuron and a random-direction null in the steer lens
  • 3d3ef1a feat(mcp): stdio MCP server over the same calls
  • 08d60ba feat(ablate): neuron gain ablation through the resident spark (sweep gains=)
  • e15461d feat(app): mojo-imkit window with map, list and neuron views
  • 1bf7d62 feat(reverse): persona contrast, cosine rank of every neuron of every layer
  • 68e52e0 feat(sweep): write .steer.json with the contexts of a steer lens run
  • f89fe3c feat(slens): steer lens through the resident spark, verified against llama.cpp
  • 296b7b9 feat(calls): lens, search, rank, connections, fires, dossier, recipe, brain export as JSON calls
  • 8873158 feat(sweep): resident sweep of neurons x doses x prompts through one spark process
  • e09683e docs(matrix): lens x arch matrix, measured
  • 5f1726b feat(fires): CPU forward that returns MLP activations of chosen layers
  • 584a43d feat(conn): weight-cosine connections up and downstream of a neuron
  • 4a56cf4 feat(lens): lens.bin and model.json writer, ggufx imports, shared ggio helpers
  • f6aebb3 feat(cvec): write a recipe as .cvec.gguf and a BARO_STEER f32 file; gate against llama.cpp
  • 2d567c8 build: use mojo-gguf main (ggufx), drop the f0a25a5 pin
  • b26cacf fix(check): build against mojo-gguf f0a25a5, main lost the heap thread context
  • 55b3878 feat(rank): word-cluster mass of steered rollouts against random controls
  • e9cb63d docs(format): data format v1 for neurons, sweeps, steer lens and cvec
  • cd377c6 docs: parity checklist, provenance, format proposal
  • 17af3a9 docs(briefs): team plan and two lane briefs for steps 2-6
  • 028679e feat(lens): logit lens for every neuron of a layer on CPU