Record: Scylla + n-gram + legal TTT — val_bpb 1.0903 (3-seed mean)#1242
Open
Campbellb wants to merge 1 commit intoopenai:mainfrom
Open
Record: Scylla + n-gram + legal TTT — val_bpb 1.0903 (3-seed mean)#1242Campbellb wants to merge 1 commit intoopenai:mainfrom
Campbellb wants to merge 1 commit intoopenai:mainfrom
Conversation
Three-seed validated result on 8×H100: - Seed 1337: legal_ttt 1.09042, 15,316,209 bytes - Seed 42: legal_ttt 1.09064, 15,329,825 bytes - Seed 2025: legal_ttt 1.08985, 14,945,965 bytes - Mean: 1.09030 ± 0.00040, all under 16MB cap
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
val_bpb: 1.0903 (3-seed mean, std 0.00040) | ≤15.4 MB | 8×H100 SXM | ~94ms/step | ~6160 steps
Applies the Scylla tokenizer (PR #1143, @simon-marcus) with n-gram rescoring and tuned legal score-first TTT. Beats merged SOTA (1.1147) by 0.024 BPB.
3-Seed Results
All seeds stopped by 600s wallclock cap. All artifacts under 16,000,000 bytes.
Technique Stack
clip_range=20for stable byte compliance across seedsLegality
TTT: Each chunk scored under
torch.inference_mode()before any parameter update. BPB is always computed before adaptation. TTT runs ~427s.N-gram:
legal_tttscore uses only the TTT-adapted neural model. N-gram two-pass (~0.195 BPB) is reported separately, not used as submission metric.No validation data accessed during training.
Reproduction
python3 data/retokenize_scylla.py \ --docs ./data/docs_selected.jsonl \ --vocab ./data/tokenizers/scylla/candidate.vocab \ --out ./data/datasets/fineweb_scylla --train-shards 80 DATA_PATH=./data/datasets/fineweb_scylla \ TOKENIZER_PATH=./data/tokenizers/scylla/candidate.vocab \ TOKENIZER_META_PATH=./data/tokenizers/scylla/candidate.meta.npz \ NGRAM_ENABLED=1 NGRAM_MAX_ORDER=16 TTT_ENABLED=1 TTT_LR=0.005 XSA_LAST_N=4 \ SEED=1337 NUM_LAYERS=11 NUM_SHARED_BLOCKS=11 SHARED_BLOCK_LAYOUT=cyclic \ MLP_MULT=3 VOCAB_SIZE=1024 INT6_QUANT=1 SMEAR_GATE=1 BIGRAM_VOCAB_SIZE=10240 \ ORTHO_INIT=1 MATRIX_LR=0.025 SCALAR_LR=0.025 TIED_EMBED_LR=0.035 \ MUON_MOMENTUM=0.99 MUON_MOMENTUM_WARMUP_START=0.92 MUON_MOMENTUM_WARMUP_STEPS=1500 \ MUON_WD=0.04 GRAD_CLIP_NORM=0.3 TRAIN_SEQ_LEN=2048 TRAIN_BATCH_TOKENS=786432 \ ITERATIONS=9000 WARMDOWN_ITERS=3500 MAX_WALLCLOCK_SECONDS=600 \ EVAL_STRIDE=64 SWA_INTERVAL=50 SWA_LR_THRESHOLD=0.2 EMA_DECAY=0.997 \ TTT_EPOCHS=3 TTT_MAX_SEQS=64 TTT_CHUNK_TOKENS=32768 TTT_GRAD_CLIP=1.0 \ ROPE_DIMS=16 LN_SCALE=1 \ torchrun --standalone --nproc_per_node=8 train_gpt.pyCredits