Skip to content

vllm.distributed.nixl_utils

Functions:

  • is_nixl_available

    Lightweight check for nixl/rixl package without importing it.

is_nixl_available()

Lightweight check for nixl/rixl package without importing it.

Source code in vllm/distributed/nixl_utils.py
def is_nixl_available() -> bool:
    """Lightweight check for nixl/rixl package without importing it."""
    import importlib.util

    pkg = "rixl" if current_platform.is_rocm() else "nixl"
    return importlib.util.find_spec(pkg) is not None