Expand description
2026-09-25: Host reference for the tiled online-softmax decode attention of
kernels/paged_decode_attn_tiled.cu and kernels/attention_finalize.cu.
Owner: metrale-storage. Invariants: none beyond the types.
Structs§
- Attn
State - 2026-09-25: Running state.
mandlare[num_seqs, num_q_heads],ois[num_seqs, num_q_heads, head_dim];newsets m = -inf and l = o = 0.
Functions§
- finalize_
ref - step_
tile_ ref - 2026-09-25: One tile update over the paged layout
[num_blocks, block_size, num_kv_heads, head_dim], with no causal mask.tile_blocksis[num_seqs, tile_capacity],tile_block_countsis[num_seqs]. It runs the kernel’s per-token recurrence in fp32, but sums each dot product sequentially and usesexpwhere the kernel uses a warp-tree sum and__expf.