Sampler › Denoiser › 12 denoiser blocks › Self-attention
Rotary table
×no parameters
The cosine and sine of every position’s angle for each pair of head features.
- out
- [T positions, 32 pairs, 2 cos, sin]
One table serves every block of the network; it is computed once per sequence length and kept.
Sources2
Direct evidence
The rotary table: angles from positions and inverse frequencies of base 10,000, computed in float32; queries and keys are rotated and values take the identity.
The implementation, pinned at revision e18c42acdfb7, not yet public
Direct evidence
The denoiser owns the time embedding’s two affine layers, one rotary table for all blocks, an affine projection of the concatenated input, and the stack.
The implementation, pinned at revision e18c42acdfb7, not yet public