vllm.v1.attention.backends.mla.prefill.flash_attn
¶
FlashAttention backend for MLA prefill.
Classes:
-
FA4MLALayerConfig–One distinct MLA prefill attention config a layer launches on FA4.
-
FA4MLAPrefillKernel–FA4 MLA prefill compile-key wrapper used by generic JIT warmup.
-
FA4SplitKVCombineKernel–FA4's split-KV combine, which FA4's compile-only forward never reaches.
-
FlashAttnPrefillBackend–FlashAttention backend for MLA prefill.
FA4MLALayerConfig
dataclass
¶
One distinct MLA prefill attention config a layer launches on FA4.
FA4MLAPrefillKernel
¶
Bases: VllmJitKernel['FA4MLAPrefillKernel.CompileKey']
FA4 MLA prefill compile-key wrapper used by generic JIT warmup.
Classes:
-
CompileKey–High-level FA4 compile-only key used by vLLM warmup.
Methods:
-
get_warmup_keys–Compile keys for the model's MLA prefill.
CompileKey
dataclass
¶
High-level FA4 compile-only key used by vLLM warmup.
This is not the CuTeDSL cache key. FA4 owns the selector that maps these serving inputs to the actual compile-static fields: tile sizes, q_stage, Split-KV, scheduler choice, layout-presence booleans, dtype/head dims, arch, and related fields.
get_warmup_keys(vllm_config, layer_configs=None)
¶
Compile keys for the model's MLA prefill.
Parameters:
-
(vllm_config¶VllmConfig) –Config of the model being warmed.
-
(layer_configs¶Sequence[FA4MLALayerConfig] | None, default:None) –Distinct per-layer attention configs (e.g. sliding window layers or a drafter with its own head count). Defaults to the target model's full-attention config.
FA4SplitKVCombineKernel
¶
Bases: VllmJitKernel['FA4SplitKVCombineKernel.CompileKey']
FA4's split-KV combine, which FA4's compile-only forward never reaches.
Split-KV prefill ends with a combine of the per-split partials. FA4 keys
that kernel on ceil(log2(num_splits)) and, when the LSE is returned, on
its leading dimension: a single query row and several rows compile
different variants. FA4 launches it from inside _flash_attn_fwd, so this
owner has no vLLM runtime entry; kernel is its compile-only entry.
FlashAttnPrefillBackend
¶
Bases: MLAPrefillBackend
FlashAttention backend for MLA prefill.
Methods:
-
fa4_warmup_layer_configs–The distinct FA4 attention configs this backend's prefill launches.
fa4_warmup_layer_configs()
¶
The distinct FA4 attention configs this backend's prefill launches.