prefill_attention_fp8kv

Function prefill_attention_fp8kv 

Source
pub fn prefill_attention_fp8kv(
    gpu: &dyn GpuBackend,
    kernel: KernelHandle,
    q: DevicePtr,
    k_fp8: DevicePtr,
    v_fp8: 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: Contiguous prefill with BF16 Q and FP8 E4M3 K and V, which the kernel dequantizes to BF16 in shared memory; 64 query rows per block.