Skip to content

vllm_omni.diffusion.attention.backends.flashinfer_attn

HAS_FLASHINFER module-attribute

HAS_FLASHINFER = True

logger module-attribute

logger = init_logger(__name__)

FlashInferAttentionBackend

Bases: AttentionBackend

accept_output_buffer class-attribute instance-attribute

accept_output_buffer: bool = True

get_impl_cls staticmethod

get_impl_cls() -> type[FlashInferAttentionImpl]

get_name staticmethod

get_name() -> str

get_supported_head_sizes staticmethod

get_supported_head_sizes() -> list[int]

supports_attention_mask classmethod

supports_attention_mask() -> bool

FlashInferAttentionImpl

Bases: AttentionImpl

causal instance-attribute

causal = causal

softmax_scale instance-attribute

softmax_scale = softmax_scale

forward_cuda

forward_cuda(
    query: Tensor,
    key: Tensor,
    value: Tensor,
    attn_metadata: AttentionMetadata | None = None,
) -> Tensor