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
59edd0f1
Unverified
Commit
59edd0f1
authored
Aug 13, 2024
by
Woosuk Kwon
Committed by
GitHub
Aug 13, 2024
Browse files
[Bugfix][CI] Import ray under guard (#7486)
parent
a08df832
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/distributed/device_communicators/tpu_communicator.py
vllm/distributed/device_communicators/tpu_communicator.py
+1
-1
No files found.
vllm/distributed/device_communicators/tpu_communicator.py
View file @
59edd0f1
import
ray
import
torch
import
torch.distributed
as
dist
from
torch.distributed
import
ProcessGroup
...
...
@@ -6,6 +5,7 @@ from torch.distributed import ProcessGroup
from
vllm.platforms
import
current_platform
if
current_platform
.
is_tpu
():
import
ray
import
torch_xla.core.xla_model
as
xm
import
torch_xla.runtime
as
xr
from
torch_xla._internal
import
pjrt
...
...
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