Conversation
evnkm
added a commit
that referenced
this pull request
Mar 21, 2026
Rewrote train_gpt_shared.py with full SOTA stack from #1 leaderboard submission (10L GPT, BigramHash, SmearGate, mixed int5/int6 quant, SWA, Muon WD=0.04, magnitude pruning, zstd-22, sliding window eval). Baseline result: val_bpb = 1.1438 (vs SOTA 1.1428) on 8xH100 in 600s. Added two new ideas on top: - TrigramHashEmbedding(4096 buckets, 32-dim): captures 3-token local patterns beyond bigram. Adds ~147K params (~60-80KB compressed). - Progressive QAT (int5/int6 STE fake-quantize): applied from step 0 via CastedLinear.qat_clip to avoid costly torch.compile recompile. Experiment openai#2 (trigram + QAT at 70% wallclock) scored 1.1630 — worse than baseline because the torch.compile recompile at activation cost ~130s (22% of 600s budget). Fixed by moving QAT to start of training. Other changes: - run_modal.py: migrated from deprecated modal.Mount to Image.add_local_dir, fixed sys.exit(0) traceback to raise RuntimeError only on failure. - research/IDEAS.md: full research log with 11 ranked ideas and experiment tracking table. Next: run openai#3 with QAT-from-start + trigram to test without recompile penalty, then per-layer bitwidth search to squeeze more capacity into the 16MB budget. Made-with: Cursor
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.
No description provided.