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
12 changes: 11 additions & 1 deletion checkpoint_engine/distributed/vllm_nccl.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,21 @@
ncclResult_t,
)
from vllm.distributed.utils import StatelessProcessGroup
from vllm.utils import current_stream

from checkpoint_engine.distributed.base import CommGroup, Distributed, _common_all_gather_object


try:
from vllm.utils.torch_utils import current_stream
except ImportError:
try:
from vllm.utils import current_stream
except ImportError:
raise ImportError(
"Could not find 'current_stream' in vllm. Please check your vllm version."
) from None


class NcclConfigT(ctypes.Structure):
_fields_: ClassVar[list[tuple[str, Any]]] = [
("size", ctypes.c_size_t),
Expand Down