vllm.v1.attention.backends.mla.flashattn_mla_sparse
¶
Classes:
-
FlashAttnMLASparseFA4Backend–FA4 for is_decode kernel calls; trtllm-gen for the rest.
-
FlashAttnMLASparseFA4MetadataBuilder–The trtllm-gen builder, for the prefill lane's DCP workspace pre-size.
FlashAttnMLASparseFA4Backend
¶
Bases: FlashInferMLASparseTRTLLMBackend
FA4 for is_decode kernel calls; trtllm-gen for the rest.
Source code in vllm/v1/attention/backends/mla/flashattn_mla_sparse.py
FlashAttnMLASparseFA4MetadataBuilder
¶
Bases: FlashInferMLASparseTRTLLMMetadataBuilder
The trtllm-gen builder, for the prefill lane's DCP workspace pre-size.
Its UNIFORM_BATCH support and varlen decode bound also fit FA4, which runs one query row per token and bakes the row count into its varlen scalars.
Source code in vllm/v1/attention/backends/mla/flashattn_mla_sparse.py
_fa4_cute_mla_available()
¶
Reason the FA4 cute-DSL MLA entry point is unusable, or None.
Source code in vllm/v1/attention/backends/mla/flashattn_mla_sparse.py
_fa4_varlen_scalars(num_tokens, num_kv_rows, device)
cached
¶
Per-token varlen scalars; never evict, CUDA graphs bake in the pointers.