Skip to content

feat(distill): Engram run wiring — attach, Sinkhorn table routing, spec - #220

Merged
ronaldtse merged 1 commit into
mainfrom
feat/engram-run
Sep 28, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
feat/engram-run

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

The training-side wiring for TODO.impl/10's run (launched; verdict PR follows when the gate completes).

  • attach_engram: one table on the encoder at block N; addresses computed from input_ids per forward (no dataloader change); zero-init projection = functionally identical to the backbone at step 0 (the PKM rule, now spec-tested on a real T5).
  • engram_param_split: the table routes to the Sinkhorn-balanced update at 5x lr (the report's pairing); the projection stays on Muon.
  • Both distill paths wired. main dispatches by spec mode, and the first launch proved why that matters: the attach only in distill() left the sequence-mode run training a vanilla replica — no attach line, identical param counts. The launch gate now demands the [engram] attached line as positive evidence before a run counts.
  • Spec ara-diac-small-2-1-engram: single variable vs run-007 (4.5701) — one 2M x 32 table at block 3, canonical r7 labels (sha e70ce991, pre-seeded), 6ep sequence-KD Muon.

9 new specs (attachment identity, memory flow, param split, addressing, export, ONNX gather); full Engram suite 15 green.

attach_engram: one table on the encoder at block N, addresses computed
from input_ids per forward (no dataloader change), zero-init
projection = identity at step 0. engram_param_split routes the table
to the Sinkhorn-balanced update (5x lr) and the projection to Muon.

Wired at BOTH distill paths' student construction - main dispatches by
spec mode, and the first launch proved the lesson: the attach only in
distill() left the sequence-mode run training a vanilla replica (no
[engram] attached line, identical param counts). The launch gate now
demands the attach line as positive evidence before a run counts.

Spec ara-diac-small-2-1-engram: single variable vs run-007 (2.1,
4.5701) - one 2M x 32 table at block 3, canonical r7 labels
(e70ce991, pre-seeded after the lite-2.0 re-labeling lesson), 6ep
sequence-KD Muon.

9 attach specs: identity at step 0, memory reaches logits, param
split, addressing, export, ONNX gather.
@ronaldtse
ronaldtse merged commit af4c43d into main Sep 28, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant