Add NGB v4 tuned nanoGPT protocols and 4×4 model - #50
Draft
charlesmartin14 wants to merge 19 commits into
Draft
Conversation
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.
Purpose
Create a separate version-4 nanoGPT experiment family under
baseline/ngbwithout changing or overwriting the existing version-3 one-head results. NGB v4 addresses the one-epoch undertraining and seed-dependent adaptive-optimizer instability observed in the checked-in v3 comparison, and adds a distinct, more expressive small language-model architecture.New experiment family
baseline/ngb/configs/v4_one_head.yamlv4_one_headbaseline/ngb/configs/v4_small_4x4.yamlv4_small_4x4Both reuse the same pinned, document-disjoint FineWeb-Edu token cache and common train/validation/test/BLEU probes. Validation cross-entropy selects checkpoints; test metrics and WeightWatcher diagnostics remain monitoring-only.
Tuned optimizer centers
One-head v4
0.05, floor5e-4, 5% warm-up, momentum0.90, weight decay0.013e-4, floor1e-5, 2.5% warm-up, betas(0.90, 0.95), weight decay0.100.01, floor1e-4, weight decay0.022e-4, floor1e-5, weight decay0.10Small 4×4 v4
The adaptive centers are the same; SGD uses peak
0.03and floor3e-4for the deeper model.These are conservative qualification centers, not declarations of global optimality.
baseline/ngb/QUALIFICATION.mddefines the stress-seed screen, three-seed qualification, and frozen eight-seed replication protocol.Runtime and architecture changes
6 × n_layer/tmp/rg-ngb/results/<run_slug>while retaining the v3/tmp/rg-nanogpt-one-headcontractComparison notebooks
NGB adds six
python3/Papermill notebooks:The comparison path now supports arbitrary matched completed seed sets rather than hard-coding three seeds. It adds:
Validation
Completed before opening this PR:
git diff --checkpip checkThe full two-epoch scientific campaigns have not been run in CI; this PR supplies the tested protocols, runtime support, analysis notebooks, and qualification plan. Existing v3 result directories and checked-in output notebook are not modified.