Skip to content

vllm.model_executor.layers.mamba.ops.ssd_bmm

_bmm_chunk_fwd(a, b, chunk_size, cu_chunk_seqlens, causal=False, output_dtype=None)

Argument

a: (seqlen, ngroups, k) b: (seqlen, ngroups, k) chunk_size: int cu_chunk_seq_lens: (nchunks+1,) causal: if True, then out[i, j] for i > j will be arbitrary, only out[i, j] for i <= j are guaranteed to be correct.

Return

out: (nchunks, ngroups, chunk_size, chunk_size)