w4a16_gemv_batch3

Function w4a16_gemv_batch3 

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

W4A16 triple-GEMV (M=3): reads weights once, computes 3 outputs.

A: [3, K] BF16 contiguous, B: NVFP4 packed, C: [3, N] BF16 contiguous. For K=3 speculative verification.

Kernel: w4a16_gemv_batch3(A, B_packed, B_scale, scale2, C, N, K) Grid: (ceil(N/4), 1, 1) Block: (256, 1, 1)