Skip to content

vllm.v1.attention.backends.mla.prefill.aiter_flydsl_fp8

AITER FlyDSL FP8 backend for MLA prefill (ROCm gfx950).

Runs AITER's FlyDSL FP8 flash attention on dynamically per-tensor quantized Q/K/V. Q is quantized once per forward and reused by every context chunk; each chunk quantizes only its own K/V. Whether the kernel serves the model's head dims is decided by AITER's flydsl_flash_attn_fp8_supported at selection time. Inputs the kernel cannot take (empty, or at least 2**31 elements) use the parent's BF16 AITER flash attention.

Classes:

AiterFlyDSLFP8PrefillBackend

Bases: AiterFlashAttnPrefillBackend

AITER FlyDSL FP8 flash attention backend for MLA prefill.

_get_q_fp8(chunk, q)

Reuse the new-token FP8 Q for this chunk's token slice if it matches.