vllm.models.minimax_m3.amd.ops.index_topk_decode.host
¶
Launch wrappers of the FlyDSL index top-k: the block ids AITER's
pa_sparse_block_topk selects, in its order.
Functions:
-
minimax_m3_index_topk_decode_indices–Top-16 blocks of decode rows,
query_lenrows per request. -
minimax_m3_index_topk_prefill_indices–Top-16 blocks of ragged prefill rows.
_check(score, topk_idx, max_seq_len)
¶
Validate the layouts; returns the score columns the kernel walks.
Source code in vllm/models/minimax_m3/amd/ops/index_topk_decode/host.py
minimax_m3_index_topk_decode_indices(score, topk_idx, seq_lens, *, max_seq_len, query_len)
¶
Top-16 blocks of decode rows, query_len rows per request.
Source code in vllm/models/minimax_m3/amd/ops/index_topk_decode/host.py
minimax_m3_index_topk_prefill_indices(score, topk_idx, *, max_seq_len, num_valid_pages)
¶
Top-16 blocks of ragged prefill rows.