Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions vllm/distributed/eplb/eplb_communicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
from vllm.distributed.device_communicators.pynccl_wrapper import (
ncclDataTypeEnum,
)
from vllm.distributed.nixl_utils import (
NixlWrapper,
nixl_agent_config,
)
from vllm.distributed.parallel_state import (
GroupCoordinator,
get_pp_group,
Expand All @@ -41,6 +37,8 @@

def has_nixl() -> bool:
"""Whether the optional NIXL / RIXL package is available."""
from vllm.distributed.nixl_utils import NixlWrapper

return NixlWrapper is not None


Expand Down Expand Up @@ -235,6 +233,8 @@ def __init__(
expert_weights: Sequence[torch.Tensor],
cuda_stream: torch.cuda.Stream | None = None,
) -> None:
from vllm.distributed.nixl_utils import NixlWrapper, nixl_agent_config

assert expert_weights, "NixlEplbCommunicator requires non-empty expert_weights."
if NixlWrapper is None:
raise RuntimeError("NIXL/ RIXL is unavailable.")
Expand Down
Loading