pub fn mla_kv_assemble_batched(
gpu: &dyn GpuBackend,
kernel: KernelHandle,
kv_expanded: DevicePtr,
k_rope_buf: DevicePtr,
k_out: DevicePtr,
v_out: DevicePtr,
num_tokens: u32,
nkv: u32,
nope: u32,
v_dim: u32,
rope: u32,
hd: u32,
kv_expanded_stride: u32,
stream: u64,
) -> Result<()>Expand description
Batched K/V assembly from kv_expanded + k_rope for N tokens. 1 kernel replaces Nnkv3 D2D copies per layer.