pub fn w8a16_gemv_silu_input(
gpu: &dyn GpuBackend,
kernel: KernelHandle,
gate_out: DevicePtr,
up_out: DevicePtr,
weight: DevicePtr,
block_scale: DevicePtr,
output: DevicePtr,
n: u32,
k: u32,
stream: u64,
) -> Result<()>Expand description
W8A16 (FP8 E4M3) GEMV with fused SiLU input: silu(gate)*up as activation,
GEMV with FP8 down weights. Reads gate_out[K] and up_out[K] BF16, computes
silu(gate)*up per element inline, then multiplies by dequanted FP8 down
weights. Eliminates the separate silu_mul kernel + down GEMV. Mirrors
w4a16_gemv_silu_input but with RAW DevicePtrs (no scale2 f32).
Grid: (ceil(N/4), 1, 1) Block: (256, 1, 1)