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
1c0afa13
Unverified
Commit
1c0afa13
authored
Jun 15, 2024
by
Nick Hill
Committed by
GitHub
Jun 15, 2024
Browse files
[BugFix] Don't start a Ray cluster when not using Ray (#5570)
parent
d919ecc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
vllm/config.py
vllm/config.py
+7
-2
No files found.
vllm/config.py
View file @
1c0afa13
...
...
@@ -616,9 +616,14 @@ class ParallelConfig:
"required for multi-node inference"
)
backend
=
"ray"
elif
ray_found
:
from
ray.util
import
get_current_placement_group
if
self
.
placement_group
or
get_current_placement_group
():
if
self
.
placement_group
:
backend
=
"ray"
else
:
from
ray
import
is_initialized
as
ray_is_initialized
if
ray_is_initialized
():
from
ray.util
import
get_current_placement_group
if
get_current_placement_group
():
backend
=
"ray"
self
.
distributed_executor_backend
=
backend
logger
.
info
(
"Defaulting to use %s for distributed inference"
,
backend
)
...
...
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