vllm.models.nemotron_shortcut.nvidia.sdsa.flashinfer_ops
¶
The kernels SDSA runs, and the startup check that they are installed.
SDSA's indexer, selectors and token-sparse core come from FlashInfer
(flashinfer.sdsa, flashinfer.token_sparse, the gvr_2 Top-K and trtllm-gen
decode); its FA4 cores come from the FlashAttention 4 that vLLM ships
(vllm.vllm_flash_attn.cute). The
layers import them where they call them; SdsaAttention calls
check_requirements when it is built, so a missing kernel stops startup with
one error that lists everything missing, instead of failing in the first step.
Functions:
-
check_requirements–Raise one error listing every SDSA kernel that is not installed.
-
has_nvfp4_kv_gather–FlashInfer gathers packed NVFP4 K/V to FP8, as the core needs for an
-
missing_requirements–The modules and names in _REQUIRED that cannot be imported.
_missing(required)
¶
The modules and names in required that cannot be imported.
Source code in vllm/models/nemotron_shortcut/nvidia/sdsa/flashinfer_ops.py
check_requirements()
¶
Raise one error listing every SDSA kernel that is not installed.
Source code in vllm/models/nemotron_shortcut/nvidia/sdsa/flashinfer_ops.py
has_nvfp4_kv_gather()
cached
¶
FlashInfer gathers packed NVFP4 K/V to FP8, as the core needs for an NVFP4 KV cache.
Source code in vllm/models/nemotron_shortcut/nvidia/sdsa/flashinfer_ops.py
missing_requirements()
cached
¶
The modules and names in _REQUIRED that cannot be imported.