Expand description
Prefill/decode attention kernels and related attention variants.
Structs§
- CsaCompress
Config - CsaLightning
Indexer Config - CsaShared
MqaConfig - CsaTopk
Selector Config - HcaConfig
- MsaBlock
MaxConfig - MsaGathered
GqaConfig - MsaSelect
Topk Blocks Config - MsaSelected
Token Positions Config - Sliding
Window Attention Config
Functions§
- attention_
sink_ decode_ f32 - attention_
sink_ prefill_ f32 - compressed_
sparse_ attention_ compress_ f32 - compressed_
sparse_ attention_ lightning_ indexer_ f32 - compressed_
sparse_ attention_ shared_ mqa_ f32 - compressed_
sparse_ attention_ topk_ selector_ f32 - conv_
output_ len - fmha_
prefill_ lse_ f32 - fused_
neighborhood_ attention_ f32 - heavily_
compressed_ attention_ compress_ f32 - heavily_
compressed_ attention_ f32 - minimax_
sparse_ attention_ block_ max_ f32 - minimax_
sparse_ attention_ gathered_ gqa_ f32 - minimax_
sparse_ attention_ select_ topk_ blocks_ f32 - minimax_
sparse_ attention_ selected_ token_ positions_ i32 - mla_
decode_ lse_ f32 - mla_
prefill_ f32 - multi_
token_ attention_ f32 - paged_
kv_ decode_ attention_ f32 - paged_
kv_ prefill_ attention_ f32 - paged_
mla_ decode_ attention_ f32 - ragged_
kv_ prefill_ attention_ f32 - sliding_
window_ attention - Causal left-window attention with contiguous grouped-query head mapping.
- sliding_
window_ attention_ f32 - softcapped_
window_ attention_ f32 - softcapped_
window_ decode_ lse_ f32 - sparse_
mla_ prefill_ f32 - sparsemax_
tau - splitk_
reduce_ f32