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

Sampler › Denoiser › 12 denoiser blocks › Self-attention

Merge heads

×

no parameters

Concatenate the 12 heads into 768 features.

[B, 12, T, 64][B,\,12,\,T,\,64]
→  [B, T, 12, 64]\to\;[B,\,T,\,12,\,64]
→  [B, T, 768]\to\;[B,\,T,\,768]
in
OO [B batch, 12 heads, T positions, 64 head features]
out
oo [B batch, T positions, 768 d]
Explanation

Heads are concatenated in order: head ii fills features 64i,…,64i+63{64i},\dots,{64i+63}.

Heads are concatenated in order: head ii fills features 64i,…,64i+63{64i},\dots,{64i+63}.

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