pub fn mla_paged_decode_nvfp4(
gpu: &dyn GpuBackend,
kernel: KernelHandle,
q: DevicePtr,
k_cache: DevicePtr,
v_cache: DevicePtr,
o: DevicePtr,
block_tables: DevicePtr,
seq_lens: DevicePtr,
max_blocks_per_seq: u32,
num_q_heads: u32,
num_kv_heads: u32,
q_head_dim: u32,
kv_cache_dim: u32,
block_size: u32,
inv_sqrt_d: f32,
block_stride_bytes: u64,
data_section_bytes: u64,
num_seqs: u32,
stream: u64,
) -> Result<()>Expand description
2026-09-25: MLA paged decode for DeepSeek-V4-Flash over an NVFP4 cache (kernel
mla_paged_decode_nvfp4). A cache token is kv_lora_rank + qk_rope_head_dim = 512 + 64 = 576
values (MLA_CACHE_DIM in the kernel); each block holds packed E2M1 data
(data_section_bytes) followed by one FP8 E4M3 scale per 16 values.