pub fn w4a16_gemv_qg_batch3(
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
W4A16 GEMV batch3 with inline Q/Gate deinterleave.
Reads the Q+Gate weight matrix once, produces 3 deinterleaved output vectors (Q|Gate for each token). For K=3 speculative verification.
Kernel: w4a16_gemv_qg_batch3(A, B, S, s2, C, N, K, num_heads, head_dim)
Grid: (ceil(N/4), 1, 1) Block: (256, 1, 1)
Input A: [3, K], Output C: [3, N] deinterleaved [Q|G] per token.