moe_expert_gate_up_shared_fp8_batch2

Function moe_expert_gate_up_shared_fp8_batch2 

Source
pub fn moe_expert_gate_up_shared_fp8_batch2(
    gpu: &dyn GpuBackend,
    kernel: KernelHandle,
    input: DevicePtr,
    gp_w: DevicePtr,
    gp_s: DevicePtr,
    gate_out: DevicePtr,
    up_w: DevicePtr,
    up_s: DevicePtr,
    up_out: DevicePtr,
    indices: DevicePtr,
    sh_gate: &Fp8Weight,
    sh_gate_out: DevicePtr,
    sh_up: &Fp8Weight,
    sh_up_out: DevicePtr,
    n: u32,
    k: u32,
    top_k: u32,
    stream: u64,
) -> Result<()>
Expand description

FP8 fused gate+up GEMV for batch=2 (MTP K=2 verify). Grid: (ceil(N/8), 2*(top_k+1), 2) Block: (128, 1, 1)