Self-attention

Pinned implementation and paper LDLM @ e18c42a, not yet public · arXiv:2605.07933v1 · OpenWebText · 1024 · checkpoint, tokenizer and saved statistics not verified · How to read

Token decoder › 3 blocks › Self-attention

Split query heads

×

no parameters

The first 768 features of the fused projection are the queries: read them as 12 heads of 64.

[B, T, 2304]1:768→[B, 12, T, 64][B,\,T,\,2304]_{1:768}\to[B,\,12,\,T,\,64]
in
[ q  k  v ][\,q\;k\;v\,] [B batch, T positions, 2304 q, k, v]
out
QhQ^{h} [B batch, 12 heads, T positions, 64 head features]
Sources1

Direct evidence

A block normalizes, modulates by the time condition’s shift and scale, projects to queries, keys and values, rotates queries and keys, attends over all positions with softcap, and adds the projected output scaled by a gate; the MLP branch does the same with its own shift, scale and gate.

The implementation, pinned at revision e18c42acdfb7, not yet public