Record: 0.6864 BPB — K-LoRA + Min-NLL + FlashAttention-3#614
Closed
bigbag wants to merge 1 commit intoopenai:mainfrom
Closed
Record: 0.6864 BPB — K-LoRA + Min-NLL + FlashAttention-3#614bigbag wants to merge 1 commit intoopenai:mainfrom
bigbag wants to merge 1 commit intoopenai:mainfrom
Conversation
Built on PR openai#611 (Chimera TTT) with our FlashAttention-3 addition. K-Projection LoRA: LoRA on Q/K/V (not just Q/V), K at 0.3x LR. Min-NLL epoch selection: track best epoch per doc, prevents overfitting. 6 TTT epochs within 600s eval budget (588s actual). Architecture: 10L 512d GQA 8/4, EMA 0.999, SWA, compiled Muon, train_seq_len=1024, int6+zstd-22. 7313 steps at 82ms/step. Result: pre-quant 1.1624, post-quant 1.1755, post-TTT 0.6864. Artifact 15.53MB, eval 588s. Seed 42. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
The min-NLL scheme leaks information. This is the same as training on the val set, and is therefore disallowed. |
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
Three Innovations
1. K-Projection LoRA (from PR #611)
LoRA on K projections (not just Q/V) with 0.3x LR multiplier. Adapting K alongside Q/V gives more expressive per-document specialization at marginal compute cost.
2. Min-NLL Epoch Selection (from PR #611)
Track minimum average NLL per document across all TTT epochs, use best epoch's scores. Prevents late-epoch overfitting — safely run 6 epochs without any document degrading.
3. FlashAttention-3 (our addition)
flash_attn_funcfor causal attention + Rotary cache.clone()fix for CUDA graph compatibility. ~3% speed boost.LoRA TTT Details
Results
Based On
Test plan