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
|