pub fn mla_prefill_attention_320(
gpu: &dyn GpuBackend,
kernel: KernelHandle,
q: DevicePtr,
k: DevicePtr,
v: DevicePtr,
output: DevicePtr,
seq_len: u32,
batch: u32,
num_q_heads: u32,
num_kv_heads: u32,
head_dim: u32,
inv_sqrt_d: f32,
causal: bool,
stream: u64,
) -> Result<()>Expand description
2026-09-25: Absorbed MLA prefill attention with scalar BF16 dot products and a
single KV head. The head dim is the kernel’s MLA_HDIM: 320 in the
mistral-small-4 fork, 576 in the deepseek-v4-flash one; both keep the entry
name mla_prefill_attn_320.