Skip to content

Living Weights on Nemotron: locate and shrink pocket layers, with checked corrections (#1968) - #2025

Merged
ashhart merged 9 commits into
mainfrom
lead/1968-base-lw
Nov 9, 2026
Merged

ashhart merged 9 commits into
mainfrom
lead/1968-base-lw

Conversation

@ashhart

@ashhart ashhart commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Locate and shrink Nemotron lessons, with checked corrections

A fixed middle-layer placement spends neurons where a lesson may not need them, and a correction must overturn the shipped belief without disturbing another fact. Locate subject-row contributions, keep only layers that pass the complete verifier, and fit explicit additive corrections with checked original-answer deletion references.

Pretrained tensors and inference kernels stay unchanged. Rejected shrink candidates restore the exact input row and live count. Corrections that depend on an earlier pocket are refused by fact ID before fitting, keeping the three dependent-delete cases out of the graph. Existing stacked graphs are not migrated.

The prerequisite reviews approved causal placement and neuron shrinking; the correction follow-up adds the requested dependent-delete refusal and planted wrong-layer check.

Validation: focused host checks pass, formatting passes and lean adds zero findings to the pinned 424. A clean git am reproduces the entire exported tree.

Nemotron Metal and CUDA lesson/correction retention, exact deletion and rollback, original-token equality, neuron counts, learning time and peak memory require the corresponding device receipts. This prerequisite mailbox adds no new device claim.

TF_SLIDE_POCKET_DUMP is now read through the environment table. Blank or whitespace-only text means no dump, where main wrote into an empty path. A path holding a control character is refused by name at startup with --slide, where main used it as given. A value refused that way is treated as no dump during placement, so the dump can never fail a lesson. Other paths are used exactly as given.

ashhart added a commit that referenced this pull request Nov 9, 2026
…arn call (4, was 3)

With the drift gate off, a kept lesson now also sends #2025's shrink probe; the test model has no pocket, so it finds no
candidate. Request and reply hashes, calls, writes, the graph and events are unchanged.
ashhart added a commit that referenced this pull request Nov 9, 2026
…ave.zig

#2025's shrink phase and correction refusal took learner.zig from main's 600 lines to 609.
saveOnce moves unchanged into learner_save.zig (as learner_failure.zig already holds the failure
path), which brings it to 592 with no change in what a save does.
ashhart added a commit that referenced this pull request Nov 9, 2026
The part of e9d6925 (#1980 as stacked on #2025) that main's 7589baf
lacks: an audit request refuses `against` and `shrink`, and an audit
blocked by a stale pocket reports that it failed before any lesson began.
Measure answer-logit drops from subject-row residual ablations before choosing pocket sites. Keep the old middle-layer placement with TF_SLIDE_PLACEMENT=legacy.

Try each new neuron after the full lesson gate. Keep a removal only after the complete verifier and earlier-fact checks pass, and restore the exact input row and live count on rejection. Preserve the pre-lesson rollback snapshot and saved format.

Add synthetic causal and production acceptance checks, poisoned CUDA row checks, real trainer compile entries and a fixed twenty-fact device comparison runner.

Refs #1968.
Fit explicit corrections with new subject neurons at the old belief's
causally located layers, opposing old-answer gradients beside the new
completion objective. Leave pretrained weights and inference kernels alone.

Persist original tokens before learning, reject old values on training and
held-out wordings with greedy and default-sampler checks, and require exact
old tokens before accepting deletion. Keep the existing retention, shrink
and rollback gates, including safe handling of a refused learner start.

Exercise a planted CPU belief and neighbour, production server gates and
failed deletes. Extend the paired device runner with ten corrections and
exact deletion receipts. Real Nemotron learning remains device work.

Refs #1968.
Require the old greedy reference to match the shipped model and name
kept facts holding its value. Keep personal replacement out of this
preflight. Check the three dependent-delete cases and a correction
planted at an irrelevant layer with the actual output fitter.

Refs #1968.
…arn call (4, was 3)

With the drift gate off, a kept lesson now also sends #2025's shrink probe; the test model has no pocket, so it finds no
candidate. Request and reply hashes, calls, writes, the graph and events are unchanged.
…ment.zig

The pocket dump directory is a row of the environment table (slide scope, the path kind
Unset or blank writes no dump; other text is used as given. A path holding a control
character is refused by name at startup, as every table setting is; the placement itself
treats a refused value as no dump, so a study dump can never fail a lesson.
…ave.zig

#2025's shrink phase and correction refusal took learner.zig from main's 600 lines to 609.
saveOnce moves unchanged into learner_save.zig (as learner_failure.zig already holds the failure
path), which brings it to 592 with no change in what a save does.
@ashhart
ashhart merged commit 7278742 into main Nov 9, 2026
2 of 14 checks passed
ashhart added a commit that referenced this pull request Nov 9, 2026
…arn call (4, was 3)

With the drift gate off, a kept lesson now also sends #2025's shrink probe; the test model has no pocket, so it finds no
candidate. Request and reply hashes, calls, writes, the graph and events are unchanged.
ashhart added a commit that referenced this pull request Nov 9, 2026
…ave.zig

#2025's shrink phase and correction refusal took learner.zig from main's 600 lines to 609.
saveOnce moves unchanged into learner_save.zig (as learner_failure.zig already holds the failure
path), which brings it to 592 with no change in what a save does.
ashhart added a commit that referenced this pull request Nov 9, 2026
The part of e9d6925 (#1980 as stacked on #2025) that main's 7589baf
lacks: an audit request refuses `against` and `shrink`, and an audit
blocked by a stale pocket reports that it failed before any lesson began.
@ashhart
ashhart deleted the lead/1968-base-lw branch November 10, 2026 16:34
ashhart added a commit that referenced this pull request Nov 12, 2026
The part of e9d6925 (#1980 as stacked on #2025) that main's 7589baf
lacks: an audit request refuses `against` and `shrink`, and an audit
blocked by a stale pocket reports that it failed before any lesson began.
ashhart added a commit that referenced this pull request Nov 13, 2026
The part of e9d6925 (#1980 as stacked on #2025) that main's 7589baf
lacks: an audit request refuses `against` and `shrink`, and an audit
blocked by a stale pocket reports that it failed before any lesson began.
ashhart added a commit that referenced this pull request Nov 13, 2026
The part of e9d6925 (#1980 as stacked on #2025) that main's 7589baf
lacks: an audit request refuses `against` and `shrink`, and an audit
blocked by a stale pocket reports that it failed before any lesson began.
ashhart added a commit that referenced this pull request Nov 14, 2026
The part of e9d6925 (#1980 as stacked on #2025) that main's 7589baf
lacks: an audit request refuses `against` and `shrink`, and an audit
blocked by a stale pocket reports that it failed before any lesson began.
ashhart added a commit that referenced this pull request Nov 17, 2026
The part of e9d6925 (#1980 as stacked on #2025) that main's 7589baf
lacks: an audit request refuses `against` and `shrink`, and an audit
blocked by a stale pocket reports that it failed before any lesson began.
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