-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add Deep14x416 KV2 non-record MLX submission (val_bpb=1.8440) #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cschubiner
wants to merge
4
commits into
openai:main
Choose a base branch
from
cschubiner:codex/deep14-416-kv2-mlx-submission
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
records/track_non_record_16mb/2026-03-19_Deep14x416_KV2_SP1024_MLX_750it/README.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| This record captures an unlimited-compute non-record Apple Silicon MLX run using a deeper/narrower SP-1024 configuration. | ||
|
|
||
| The main idea was to trade some width for depth while keeping the artifact comfortably under the `16,000,000` byte cap: | ||
| - Layout: `VOCAB_SIZE=1024 NUM_LAYERS=14 MODEL_DIM=416 NUM_HEADS=8 NUM_KV_HEADS=2 MLP_MULT=2` | ||
| - Trainer: root `train_gpt_mlx.py` snapshot copied into this record folder | ||
| - Hardware: Apple Silicon (`Apple M5 Max`, local MLX run) | ||
| - Dataset/tokenizer: published `fineweb10B_sp1024` export with `10` train shards downloaded locally plus the full fixed validation split | ||
| - Track: non-record, unlimited compute, still under the `16,000,000` byte artifact cap | ||
|
|
||
| This run also increases validation batch size and enables logit chunking so the full validation pass can complete in a reasonable amount of time on local hardware without changing the measured metric: | ||
| - `VAL_BATCH_SIZE=8388608` | ||
| - `LOGIT_CHUNK_TOKENS=65536` | ||
|
|
||
| Command (track-relevant params): | ||
| ```bash | ||
| RUN_ID=deep14_416_kv2_full_750 \ | ||
| ITERATIONS=750 \ | ||
| MAX_WALLCLOCK_SECONDS=0 \ | ||
| TRAIN_BATCH_TOKENS=16384 \ | ||
| VAL_LOSS_EVERY=0 \ | ||
| VAL_BATCH_SIZE=8388608 \ | ||
| LOGIT_CHUNK_TOKENS=65536 \ | ||
| TRAIN_LOG_EVERY=50 \ | ||
| WARMUP_STEPS=10 \ | ||
| NUM_LAYERS=14 \ | ||
| MODEL_DIM=416 \ | ||
| NUM_HEADS=8 \ | ||
| NUM_KV_HEADS=2 \ | ||
| MLP_MULT=2 \ | ||
| python3 train_gpt_mlx.py | ||
| ``` | ||
|
|
||
| Key metrics (from `train.log`): | ||
| - Final pre-quant eval at step `750`: `val_loss:3.1118`, `val_bpb:1.8430` | ||
| - Post-quant roundtrip eval: `val_loss:3.11359052`, `val_bpb:1.84404368` | ||
| - Exact printed metric: `final_int8_zlib_roundtrip_exact val_bpb:1.84404368` | ||
| - Train time: `529553ms` (`step_avg:706.07ms`) | ||
| - Saved FP model: `63982252 bytes` | ||
| - Serialized model int8+zlib: `12339367 bytes` | ||
| - Code size: `49622 bytes` | ||
| - Total submission size int8+zlib: `12388989 bytes` | ||
|
|
||
| Training volume: | ||
| - Global batch: `16384` tokens/step | ||
| - Total train tokens seen: `12288000` | ||
| - Local dataset subset: `10/195` train shards from `fineweb10B_sp1024` | ||
|
|
||
| Included files: | ||
| - `train_gpt_mlx.py` (exact code snapshot used for the run) | ||
|
cschubiner marked this conversation as resolved.
Outdated
|
||
| - `train.log` (exact local training log) | ||
| - `submission.json` (leaderboard metadata) | ||
17 changes: 17 additions & 0 deletions
17
records/track_non_record_16mb/2026-03-19_Deep14x416_KV2_SP1024_MLX_750it/submission.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "author": "Clay Schubiner", | ||
| "github_id": "cschubiner", | ||
| "name": "Deep14x416 KV2 SP1024 MLX 750-step", | ||
| "blurb": "Unlimited compute track: a deeper/narrower Apple Silicon MLX run with 14 layers at width 416, 2 KV heads, SP-1024 tokenizer, and 750 training steps on a 10-shard FineWeb subset; final int8+zlib roundtrip scored 1.8440 BPB under the 16,000,000-byte cap.", | ||
| "date": "2026-03-19T06:34:39Z", | ||
| "track": "non-record-unlimited-compute-16mb", | ||
| "val_loss": 3.11359052, | ||
| "val_bpb": 1.84404368, | ||
| "pre_quant_val_loss": 3.1118, | ||
| "pre_quant_val_bpb": 1.8430, | ||
| "step_stop": 750, | ||
| "wallclock_seconds": 529.553, | ||
| "bytes_total": 12388989, | ||
| "bytes_model_int8_zlib": 12339367, | ||
| "bytes_code": 49622 | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.