Skip to content

vllm.v1.attention.backends.mla.index_group

Classes:

HiSparseMLAIndexGroup dataclass

Bases: SparseMLAIndexGroup

Sparse index group with per-layer host-backed KV caches.

SparseMLAIndexGroup dataclass

Layers that consume one sparse-indexer result.

Methods:

convert_logical_to_physical_topk(layer_index, logical_topk_indices, attn_metadata, *, block_stride_rows, return_valid_counts)

Convert one index result once for all layers in this group.

SparseMLAIndexGroupBuilder

Assign sparse MLA layers to their index-producing layer.