w4a16_gemv_qg

Function w4a16_gemv_qg 

Source
pub fn w4a16_gemv_qg(
    gpu: &dyn GpuBackend,
    kernel: KernelHandle,
    input: DevicePtr,
    weight: &QuantizedWeight,
    output: DevicePtr,
    n: u32,
    k: u32,
    num_heads: u32,
    head_dim: u32,
    stream: u64,
) -> Result<()>
Expand description

2026-09-25: w4a16_gemv over a weight whose rows interleave Q and Gate per head; the output is stored deinterleaved, [Q of all heads | Gate of all heads], with n = num_heads * head_dim * 2.