Repository navigation
Record: GDN-Hybrid + TMA Megakernel + Brotli-11 — val_bpb 1.01195 (3-seed mean) - #1672
andrewbaggio1 wants to merge 3 commits into
Conversation
8 Gated DeltaNet layers + 2 softmax attention layers. GDN is mathematically equivalent to E2E TTT-Linear with MSE loss. First competitive GDN hybrid in the 10-min budget. Targets bounty items: E2E TTT + State-space models. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…ch=1 — val_bpb 1.07636 (3-seed mean) 3-seed mean 1.07636 BPB (std 0.0006), delta -0.00897 nats vs merged SOTA #1493. Novel: TMA fused MLP kernel, Tap-In unigram matching (min_match=1, fires 21% of positions), improved parallel residuals from #1529, parameter banking from #1523. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…seed mean) GDN-Hybrid (GatedDeltaNet + SWA) with Hopper TMA fused relu_sq MLP megakernel, brotli-11 compression, and GPTQ int6 with eigendecomposition Hessian repair. 3-seed mean: 1.01195 BPB (std 0.00061). All artifacts under 16MB.
|
Hey @andrewbaggio1, this submission inherits the same The bug, in this PR
def build_sentencepiece_luts(sp, vocab_size, device):
base_bytes = torch.zeros(vocab_size, dtype=torch.float32, device=device)
has_space = torch.zeros(vocab_size, dtype=torch.bool, device=device)
is_boundary = torch.zeros(vocab_size, dtype=torch.bool, device=device)
for i in range(vocab_size):
piece = sp.id_to_piece(i)
raw = piece.encode("utf-8")
base_bytes[i] = len(raw)
if piece.startswith("\u2581"):
has_space[i] = True
base_bytes[i] = len(piece[1:].encode("utf-8")) + 1 # +1 is the space byte
if sp.is_control(i) or sp.is_unknown(i):
is_boundary[i] = True
return base_bytes, has_space, is_boundaryAnd the eval loop adds the same space byte again at line 666: tb += (has_leading_space_lut[tgt] & ~is_boundary_token_lut[prev]).to(torch.float64)For every Why this is the same bug as #1545 / #1576Direct line-for-line match against PR #1632, PR #1545, and PR #1576's pre-close LUT. Same Expected corrected numberI cannot rescore your artifacts directly. Mechanically: at SP1024 with FineWeb the inflated denominator is roughly 14 to 18 percent higher than the reference, so a rescore using Suggested fixReplace Concretely:
RequestCould you patch the LUT and rerun your reported seeds (or rescore the submitted artifacts with the corrected counter) and update the claimed BPB? Flagging in-context rather than as a separate issue so the PR-author can decide between patch and close, the way #1576 did. The Brotli-11 + TMA Megakernel work itself is real and worth keeping, just on top of a correct denominator. Related context: #1545 (closed), #1576 (closed), #1632 (still open with the same bug, comment posted there as well), |
|
thank you for letting me know |
|
closed due to invalid scorer |
Summary
val_bpb = 1.01195 (3-seed mean, std 0.00061) | 8xH100 SXM, 600s | GDN-Hybrid + Fused MLP Megakernel
This is the first GDN-Hybrid submission with a fused Triton megakernel. It combines the GDN recurrent architecture from PR #1576 with a Hopper TMA-accelerated fused relu_sq MLP kernel, brotli-11 model compression (everyone should use this!!), and GPTQ int6 quantization with eigendecomposition-based Hessian repair.
Architecture
GDN-Hybrid Model D:
[GDN x5] -> [SWA] -> [GDN x5] -> [SWA_shared]fla.layers.GatedDeltaNet), dim=512, 8 heads, head_dim=64,allow_neg_eigval=TrueTraining
TOTAL_ITERATIONS=2100,WARMDOWN_ITERS=1000(cosine from lr=1.0 to 0.0)Quantization & Compression
Original Contributions
Fused relu_sq MLP megakernel — Hopper TMA persistent Triton kernel. Fuses the entire MLP forward pass (matmul + activation + writeback) into one kernel launch per block. Fulfills the megakernel bounty board item 👀
Brotli-11 model compression — First submission to use brotli for model artifact compression. Saves ~700KB over zstd-22 on GDN-family int6 weights due to brotli's superior static Huffman coding of the peaked int6 value distribution. Combined with size-descending tensor sort for improved LZ back-references.
GPTQ eigendecomposition Hessian repair — When Cholesky decomposition fails on numerically degenerate Hessians (common with GDN recurrent projections), the quantizer floors negative eigenvalues via eigendecomposition and rebuilds a valid SPD matrix.
Compliance (Issue #1017)
Credits
Reproduction