We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15dac21 commit bd45912Copy full SHA for bd45912
vllm/distributed/utils.py
@@ -15,7 +15,6 @@
15
from torch.distributed import ProcessGroup, TCPStore
16
from torch.distributed.distributed_c10d import (Backend, PrefixStore,
17
_get_default_timeout,
18
- _shutdown_backend,
19
_unregister_process_group,
20
is_nccl_available)
21
from torch.distributed.rendezvous import rendezvous
@@ -343,5 +342,7 @@ def stateless_destroy_torch_distributed_process_group(
343
342
Destroy ProcessGroup returned by
344
stateless_init_torch_distributed_process_group().
345
"""
+ # Lazy import for non-CUDA backends.
346
+ from torch.distributed.distributed_c10d import _shutdown_backend
347
_shutdown_backend(pg)
348
_unregister_process_group(pg.group_name)
0 commit comments