Repository navigation
Living Weights on Nemotron: locate and shrink pocket layers, with checked corrections (#1968) - #2025
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/1968-base-lw
branch
from
November 9, 2026 07:13
f6c14bf to
0298dbd
Compare
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.
This was referenced Nov 9, 2026
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
force-pushed
the
lead/1968-base-lw
branch
from
November 9, 2026 12:46
0298dbd to
59c7b20
Compare
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 amreproduces 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_DUMPis 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.