vllm.models.kimi_k3.nvidia.specialized_decode.cutedsl.dsa.attn_ds
¶
fp8_ds_mla sparse core of a K3.1 DSA layer (FLASHMLA_SPARSE), as the stock decode: the BF16 query rows [B, 64 (padded heads), 576], the logical -> physical top-k and FlashMLA sparse decode over the packed fp8_ds_mla blocks; under DCP, FlashMLA over this rank's compacted slots.
Functions:
-
flashmla_core–As the stock decode: the packed blocks as 64-row pages of flat rows, the
-
flashmla_dcp_core–DCP: FlashMLA sparse decode of every rank's BF16 query heads (the gathered q
flashmla_core(impl, query, cache, topk, metadata)
¶
As the stock decode: the packed blocks as 64-row pages of flat rows, the logical top-k -> physical, FlashMLA sparse decode -> [B, 64, 512].
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/dsa/attn_ds.py
flashmla_dcp_core(impl, query, pages, slots, valid, out, table, cache_lens)
¶
DCP: FlashMLA sparse decode of every rank's BF16 query heads (the gathered q
mailbox) over this rank's compacted slots (natural-log LSE; a fresh
scheduler metadata per call follows the valid lengths) into out, its
LSE and valid (DcpValue drops the rows this rank owns none of).