LeakyReLU + XSA + PartialRoPE + FA3 submission — val_bpb 1.1991#1427
Open
kjahan wants to merge 2 commits intoopenai:mainfrom
Open
LeakyReLU + XSA + PartialRoPE + FA3 submission — val_bpb 1.1991#1427kjahan wants to merge 2 commits intoopenai:mainfrom
kjahan wants to merge 2 commits intoopenai:mainfrom
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.
LeakyReLU² + Partial RoPE + XSA + FA3
val_bpb: 1.2092 (3-seed mean, std 0.0019, int6+lZMA roundtrip) | ~14.39 MB | 8×H100 SXM
Results (8×H100 80GB SXM, PyTorch 2.9.1+cu128)
The relevant numbers are the final validation BPB at the wallclock stop and the exact post-export
final_int6_lzma_roundtripBPB.Core Changes vs
train_gpt.pyThis run differs from the repo baseline
train_gpt.pyin five material ways:relu(x)^2toleaky_relu(x, 0.75)^2.ROPE_DIMS=16, so only 16 of 64 head dimensions receive rotary embedding.XSA_LAST_N=4.flash_attn_3_func).Innovations
Key contributions in this run:
relu²in the MLP while keeping the same simple squared-activation structure.16/64) reduces rotary work per head and helps training throughput relative to full-head rotary application.Architecture and export settings used in the logs:
[7, 8, 9, 10])16/64dims per head)Future work:
matrix_lrfor the Muon optimizer.XSA_LAST_Nand measure the BPB / throughput tradeoff.SiLUas the MLP activation.LeakyReLUagain with negative slope0.5.BigramHashEmbedding.Run Command
Credits