Record: 10L Mixed Precision: val_bpb=1.2147 (10 layers + int6 middle layers)#39
Merged
0hq merged 3 commits intoopenai:mainfrom Mar 19, 2026
Merged
Record: 10L Mixed Precision: val_bpb=1.2147 (10 layers + int6 middle layers)#390hq merged 3 commits intoopenai:mainfrom
0hq merged 3 commits intoopenai:mainfrom
Conversation
Systematic LR sweep showed default Muon/Adam learning rates (0.04) were too high. MATRIX_LR=0.02, SCALAR_LR=0.02, TIED_EMBED_LR=0.03 gives consistent improvement. Same 9L/512d architecture, no other changes.
10 transformer layers (vs baseline 9) with mixed int8/int6 compression: - Full int8 for first/last 3 layers (precision-sensitive) - Int6 (step=4 rounding) for middle layers 3-6 (compression-friendly) - Lower LR: MATRIX_LR=0.02, SCALAR_LR=0.02, TIED_EMBED_LR=0.03 - Artifact: 15,928,974 bytes (under 16MB cap) - Improvement: 0.0097 bpb / 0.0217 nats over baseline (1.2244) Also adds PRUNE_RATIO and INT4_LAYERS/INT4_STEP support to train_gpt.py for mixed-precision post-training quantization.
The root script should remain the baseline. Submission-specific modifications (PRUNE_RATIO, INT4_LAYERS, INT4_STEP) only belong in the records/ folder copy.
Closed
Collaborator
|
Reversing this, given others have made int6 work here I'll give you credit. |
leonardcser
added a commit
to leonardcser/parameter-golf
that referenced
this pull request
Mar 21, 2026
leonardcser
added a commit
to leonardcser/parameter-golf
that referenced
this pull request
Mar 21, 2026
Int6 per-row quantization (credit @nanlliu PR openai#39) saves 25% model size. zstd-22 compression (credit community consensus). MLP 3x fits with int6 (19.2M params in 12.9MB). On 1 GPU, int6 degrades BPB by ~0.016 (not worth it with limited steps). On 8xH100, int6+MLP3x would be the winning formula. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
scottspace
pushed a commit
to scottspace/parameter-golf
that referenced
this pull request
Mar 21, 2026
…layers) (openai#39) * Add Lower LR submission: val_bpb=1.2230 (MATRIX_LR=0.02) Systematic LR sweep showed default Muon/Adam learning rates (0.04) were too high. MATRIX_LR=0.02, SCALAR_LR=0.02, TIED_EMBED_LR=0.03 gives consistent improvement. Same 9L/512d architecture, no other changes. * Add 10L Mixed Precision submission: val_bpb=1.2147 10 transformer layers (vs baseline 9) with mixed int8/int6 compression: - Full int8 for first/last 3 layers (precision-sensitive) - Int6 (step=4 rounding) for middle layers 3-6 (compression-friendly) - Lower LR: MATRIX_LR=0.02, SCALAR_LR=0.02, TIED_EMBED_LR=0.03 - Artifact: 15,928,974 bytes (under 16MB cap) - Improvement: 0.0097 bpb / 0.0217 nats over baseline (1.2244) Also adds PRUNE_RATIO and INT4_LAYERS/INT4_STEP support to train_gpt.py for mixed-precision post-training quantization. * Revert root train_gpt.py to upstream baseline The root script should remain the baseline. Submission-specific modifications (PRUNE_RATIO, INT4_LAYERS, INT4_STEP) only belong in the records/ folder copy.
leonardcser
pushed a commit
to leonardcser/parameter-golf
that referenced
this pull request
Mar 21, 2026
…layers) (openai#39) * Add Lower LR submission: val_bpb=1.2230 (MATRIX_LR=0.02) Systematic LR sweep showed default Muon/Adam learning rates (0.04) were too high. MATRIX_LR=0.02, SCALAR_LR=0.02, TIED_EMBED_LR=0.03 gives consistent improvement. Same 9L/512d architecture, no other changes. * Add 10L Mixed Precision submission: val_bpb=1.2147 10 transformer layers (vs baseline 9) with mixed int8/int6 compression: - Full int8 for first/last 3 layers (precision-sensitive) - Int6 (step=4 rounding) for middle layers 3-6 (compression-friendly) - Lower LR: MATRIX_LR=0.02, SCALAR_LR=0.02, TIED_EMBED_LR=0.03 - Artifact: 15,928,974 bytes (under 16MB cap) - Improvement: 0.0097 bpb / 0.0217 nats over baseline (1.2244) Also adds PRUNE_RATIO and INT4_LAYERS/INT4_STEP support to train_gpt.py for mixed-precision post-training quantization. * Revert root train_gpt.py to upstream baseline The root script should remain the baseline. Submission-specific modifications (PRUNE_RATIO, INT4_LAYERS, INT4_STEP) only belong in the records/ folder copy.
leonardcser
added a commit
to leonardcser/parameter-golf
that referenced
this pull request
Mar 21, 2026
leonardcser
added a commit
to leonardcser/parameter-golf
that referenced
this pull request
Mar 21, 2026
Int6 per-row quantization (credit @nanlliu PR openai#39) saves 25% model size. zstd-22 compression (credit community consensus). MLP 3x fits with int6 (19.2M params in 12.9MB). On 1 GPU, int6 degrades BPB by ~0.016 (not worth it with limited steps). On 8xH100, int6+MLP3x would be the winning formula. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
leonardcser
added a commit
to leonardcser/parameter-golf
that referenced
this pull request
Mar 22, 2026
leonardcser
added a commit
to leonardcser/parameter-golf
that referenced
this pull request
Mar 22, 2026
Int6 per-row quantization (credit @nanlliu PR openai#39) saves 25% model size. zstd-22 compression (credit community consensus). MLP 3x fits with int6 (19.2M params in 12.9MB). On 1 GPU, int6 degrades BPB by ~0.016 (not worth it with limited steps). On 8xH100, int6+MLP3x would be the winning formula. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
nedcut
pushed a commit
to nedcut/parameter-golf
that referenced
this pull request
Mar 26, 2026
…layers) (openai#39) * Add Lower LR submission: val_bpb=1.2230 (MATRIX_LR=0.02) Systematic LR sweep showed default Muon/Adam learning rates (0.04) were too high. MATRIX_LR=0.02, SCALAR_LR=0.02, TIED_EMBED_LR=0.03 gives consistent improvement. Same 9L/512d architecture, no other changes. * Add 10L Mixed Precision submission: val_bpb=1.2147 10 transformer layers (vs baseline 9) with mixed int8/int6 compression: - Full int8 for first/last 3 layers (precision-sensitive) - Int6 (step=4 rounding) for middle layers 3-6 (compression-friendly) - Lower LR: MATRIX_LR=0.02, SCALAR_LR=0.02, TIED_EMBED_LR=0.03 - Artifact: 15,928,974 bytes (under 16MB cap) - Improvement: 0.0097 bpb / 0.0217 nats over baseline (1.2244) Also adds PRUNE_RATIO and INT4_LAYERS/INT4_STEP support to train_gpt.py for mixed-precision post-training quantization. * Revert root train_gpt.py to upstream baseline The root script should remain the baseline. Submission-specific modifications (PRUNE_RATIO, INT4_LAYERS, INT4_STEP) only belong in the records/ folder copy.
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
Two submissions:
1. 10L Mixed Precision (val_bpb=1.2139 mean across 5 seeds)
2. Lower LR (val_bpb=1.2230)
Multi-seed results (5 seeds, p < 0.001)
How mixed precision compression works
10L model has 18.9M params → 17.6MB with standard int8+zlib (over 16MB). By reducing middle layers to int6, compressed size drops to ~15.9MB:
Note on hardware
The baseline run was on 8xH100 and these runs on 8xH200, which reached slightly more training steps (~13.1k vs ~13.0k). This is directionally positive but not a perfectly compute-matched comparison. An H100 verification run is recommended.
Test plan