Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
bd45912b
Unverified
Commit
bd45912b
authored
Mar 27, 2025
by
Robert Shaw
Committed by
GitHub
Mar 28, 2025
Browse files
[TPU] Lazy Import (#15656)
Signed-off-by:
rshaw@neuralmagic.com
<
robertgshaw2@gmail.com
>
parent
15dac210
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/distributed/utils.py
vllm/distributed/utils.py
+2
-1
No files found.
vllm/distributed/utils.py
View file @
bd45912b
...
...
@@ -15,7 +15,6 @@ import torch
from
torch.distributed
import
ProcessGroup
,
TCPStore
from
torch.distributed.distributed_c10d
import
(
Backend
,
PrefixStore
,
_get_default_timeout
,
_shutdown_backend
,
_unregister_process_group
,
is_nccl_available
)
from
torch.distributed.rendezvous
import
rendezvous
...
...
@@ -343,5 +342,7 @@ def stateless_destroy_torch_distributed_process_group(
Destroy ProcessGroup returned by
stateless_init_torch_distributed_process_group().
"""
# Lazy import for non-CUDA backends.
from
torch.distributed.distributed_c10d
import
_shutdown_backend
_shutdown_backend
(
pg
)
_unregister_process_group
(
pg
.
group_name
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment