flashinfer.mla.DSV4HCAMetadata¶
- class flashinfer.mla.DSV4HCAMetadata(hca_swa_indices: Tensor, hca_compressed_block_tables: Tensor, hca_seq_lens: Tensor, swa_topk_lens: Tensor, hca_is_causal: bool = True)¶
Reusable metadata for the CuTe DSL causal HCA backend.
hca_swa_indicescontains absolute rows into the flattened SWA cache;hca_compressed_block_tablescontains physical compressed-cache page IDs. Both are ordered by flattened query row (B * Q).hca_seq_lensdescribes the backing HCA footprint scheduled by TMA and may exceed the effective per-rowsparse_topk_lens.- __init__(hca_swa_indices: Tensor, hca_compressed_block_tables: Tensor, hca_seq_lens: Tensor, swa_topk_lens: Tensor, hca_is_causal: bool = True) None¶
Methods
__init__(hca_swa_indices, ...[, hca_is_causal])Attributes
hca_is_causalhca_swa_indiceshca_compressed_block_tableshca_seq_lensswa_topk_lens