Skip to content

vllm.distributed.nixl_utils

Functions:

  • is_nixl_available

    Lightweight check for the platform's NIXL package without importing it.

is_nixl_available()

Lightweight check for the platform's NIXL package without importing it.

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

    pkg = _get_nixl_package_name()
    return pkg in sys.modules or importlib.util.find_spec(pkg) is not None