Skip to content

Submission TrigramHash + PartialRoPE + HeadTemp + stride32 (val_bpb: 1.1450)and - #327

Open
Ananddna wants to merge 6 commits into
openai:mainfrom
Ananddna:submission
Open

Ananddna wants to merge 6 commits into
openai:mainfrom
Ananddna:submission

Conversation

@Ananddna

Copy link
Copy Markdown

Summary

val_bpb: 1.1450 (mean of 2 seeds)

Built on the 10L Int5-MLP + BigramHash + SWA foundation, adding 5 novel techniques:

Our Unique Contributions

  1. TrigramHashEmbedding — Hash consecutive token triplets (not just pairs) into 8192-bucket learned embeddings (dim=64). Captures 3-word patterns like "in the morning" as atomic units. Complementary to BigramHash.

  2. Partial RoPE (50%) — Apply rotary position embeddings to only 50% of head dimensions. Remaining dims are position-free, enabling similarity matching regardless of position. Improves length generalization.

  3. Per-Head Temperature Scaling — Each attention head learns its own temperature parameter, allowing some heads to be sharp/focused and others broad/contextual.

  4. Eval Stride 32 — Reduced sliding window stride from 64 to 32 for finer-grained evaluation context.

  5. LoRA TTT Infrastructure — Added LoRA-based test-time training framework (eval_val_with_ttt). Infrastructure is in place for future runs.

Results

Seed val_bpb
42 1.1449
1337 1.1451
Mean 1.1450
Std 0.0001

Architecture

  • 10 layers, 512 dim, 8 heads, 4 KV heads
  • MLP 3x expansion, relu^2
  • SmearGate + BigramHash(10240) + TrigramHash(8192)
  • Partial RoPE (50% dims) + Per-head temperature
  • Int5 MLP / Int6 attention quantization
  • SWA (frac=0.4, every=50), Muon WD=0.04
  • Sliding eval stride=32, zstd-22 compression

@Ananddna

Copy link
Copy Markdown
Author

Update: Trimmed unused LoRA TTT code from the submission to bring artifact size under the 16MB cap.

  • Model (int5/int6 + zstd-22): 15,940,693 bytes
  • Code: ~57,000 bytes (reduced from 61,164 by removing disabled TTT infrastructure)
  • Estimated total: ~15,998,000 bytes (under 16,000,000 limit)

Note: The training logs (final_s1.txt, final_s2.txt) were generated with the pre-trim version which included the TTT code. The TTT was disabled (TTT_ENABLED=0) during those runs so the scores are unaffected. The only change is removing dead code to fit the artifact cap.

Ready for review.

@MatoTeziTanka

Copy link
Copy Markdown

Community Review — Submission TrigramHash + PartialRoPE + HeadTemp + stride32 (val_bpb: 1.1450)and

BPB: 1.1450 | Compliance: LOOKS CLEAN — pure-neural submission, no TTT/SLOT/n-gram-cache

What I found in the code (head SHA 2681caeecbc6, file records/track_10min_16mb/2026-03-21_TrigramHash_PartialRoPE_HeadTemp/train_gpt.py):

Static code review found no TTT adaptation function, no SLOT optimization loop, no n-gram-cache class, and no pre-quant val-token fine-tune. The eval path uses the standard sliding-window stride-64 pattern. The submission is a pure-neural architecture iteration on the standard SP1024/SP4096/SP8192 baseline.

CPU smoke test (CT2038 proteus-engine, 2026-04-11): import OK in 0.13s, dim=512, layers=10, vocab=1024, code=54931 B, SMOKE_TEST_PASS

Verdict: LOOKS CLEAN.

Recommendation to @cocohearts @valerio-oai @0hq @yuzhougu-oai @notapplica: MERGE pending the usual record-track checks (3-seed validation, under-16MB artifact cap, ≤600s train + ≤600s eval on 8×H100 SXM). No compliance flags from the classification pass — this looks like a clean pure-neural iteration on the standard baseline.

Auto-classification caveat: this review was drafted by the AST-based classifier. If there's a non-standard eval mechanism (logit postprocessing, hedge mixing, etc.) that I missed because it's factored into a helper file or a non-standard function name, please flag it and I'll re-run the audit manually.


Reviewed by @MatoTeziTanka — The Agora. CPU smoke test (CT2038 proteus-engine, 2026-04-11): import OK in 0.13s, dim=512, layers=10, vocab=1024, code=54931 B, SMOKE_TEST_PASS. Classification via deterministic AST-based classify_prs.py (pattern bank derived from ~65 manually-reviewed PRs earlier in the 2026-04-11 sweep). This review was auto-drafted from a template and spot-checked before posting — if the template misread your code, please call it out so I can iterate the classifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants