Add controlled nanoGPT memorization suite: AdamW vs Muon with clip_xmax monitoring - #129
Merged
charlesmartin14 merged 7 commits intoSep 15, 2026
Conversation
…and clip_xmax monitoring
…on and staged execution
Member
Author
|
Pre-merge review for the requested full campaign:
User explicitly requested checking in and merging this experiment folder. Only this runnable-suite PR is being merged; the separate design-only PR #128 is not included. |
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.
Summary
Adds only
baseline/experiments/nanogpt_memorization/; existing baseline implementations and outputs are untouched.Eight controlled synthetic suffix-prediction conditions cover exact sequence recall with dose and absent-canary controls, arbitrary key/value associations, clean and corrupted modular-addition labels, and forgetting under disjoint versus conflicting new mappings. The runner imports the existing one-head GPT and plain Muon/AdamW implementations and verifies pinned source blob hashes.
The repository profiles are preserved as source-backed baselines, not mislabeled optimal settings. The existing dated campaign has no checked-in nanoGPT qualification lock and uses MuonClip; this new suite deliberately selects its separate plain-Muon profile. A separately labeled
shared_aux_decaycontrol matches auxiliary AdamW settings and per-step decay factors.WeightWatcher 0.7.7 runs with
fix_fingers="clip_xmax",ERG=True, andrandomize=Trueon detached CPU copies of the six hidden matrices. All returned fields, clipped/raw alpha, fit support, and matrix identities are retained. The implementation isolates diagnostic RNGs and checks that evaluation does not mutate model weights. Alpha alone is not treated as evidence of memorization.Includes exact exposure schedules, paired initialization/data checks, restart checkpoints, per-example behavioral probes, source/data/package/hardware manifests, run/monitor/plan commands, a full protocol, and an explicit execution ledger.
Validation actually performed
python -m pytest -q tests: 14 passed, rerun after final code changes.python -m py_compile run.py: passed.Not executed / why this is a draft
Run the documented two-update smoke for both optimizers on the intended hardware before attempting pilots. These are new synthetic, suffix-supervised tasks, not FineWeb pretraining, and losses are not directly comparable with the parent corpus baseline.