paged_decode_attn_splitk_bf16

Function paged_decode_attn_splitk_bf16 

Source
pub fn paged_decode_attn_splitk_bf16(
    gpu: &dyn GpuBackend,
    kernel: KernelHandle,
    q: DevicePtr,
    k_cache: DevicePtr,
    v_cache: DevicePtr,
    workspace: DevicePtr,
    block_tables: DevicePtr,
    seq_lens: DevicePtr,
    max_blocks_per_seq: u32,
    num_q_heads: u32,
    num_kv_heads: u32,
    head_dim: u32,
    block_size: u32,
    inv_sqrt_d: f32,
    num_splits: u32,
    q_stride: u32,
    num_seqs: u32,
    sliding_window: u32,
    stream: u64,
) -> Result<()>
Expand description

2026-09-25: The BF16-KV counterpart of paged_decode_attn_splitk_nvfp4 (kernels/hopper/common/paged_decode_bf16_splitk_hopper.cu). It takes no cache_stride: the cache is [blocks, block_size, kv_heads, head_dim] and the kernel computes the page stride, as paged_decode_attn_bf16 does.