Skip to content

vllm.models.inkling.amd.ops.fa4_warmup

Compatibility shim for the ROCm relative-attention implementation.

ROCm uses a Triton kernel which is compiled by vLLM's normal model warmup. The NVIDIA path registers ahead-of-time CuTeDSL units; importing that provider on ROCm would pull in CUDA-only tml-fa4 code.

Functions:

register_fa4_warmup(config)

Triton compilation is triggered by the ordinary vLLM warmup forward.

Source code in vllm/models/inkling/amd/ops/fa4_warmup.py
def register_fa4_warmup(config: InklingFA4WarmupConfig) -> None:
    """Triton compilation is triggered by the ordinary vLLM warmup forward."""
    del config