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
5797fb97
Unverified
Commit
5797fb97
authored
Mar 24, 2025
by
Rui Qiao
Committed by
GitHub
Mar 24, 2025
Browse files
[Misc] Remove ignore_reinit_error for ray.init() (#15373)
parent
3892e58a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
vllm/executor/ray_utils.py
vllm/executor/ray_utils.py
+3
-5
No files found.
vllm/executor/ray_utils.py
View file @
5797fb97
...
@@ -289,16 +289,14 @@ def initialize_ray_cluster(
...
@@ -289,16 +289,14 @@ def initialize_ray_cluster(
elif
current_platform
.
is_rocm
()
or
current_platform
.
is_xpu
():
elif
current_platform
.
is_rocm
()
or
current_platform
.
is_xpu
():
# Try to connect existing ray instance and create a new one if not found
# Try to connect existing ray instance and create a new one if not found
try
:
try
:
ray
.
init
(
"auto"
,
ignore_reinit_error
=
True
)
ray
.
init
(
"auto"
)
except
ConnectionError
:
except
ConnectionError
:
logger
.
warning
(
logger
.
warning
(
"No existing RAY instance detected. "
"No existing RAY instance detected. "
"A new instance will be launched with current node resources."
)
"A new instance will be launched with current node resources."
)
ray
.
init
(
address
=
ray_address
,
ray
.
init
(
address
=
ray_address
,
num_gpus
=
parallel_config
.
world_size
)
ignore_reinit_error
=
True
,
num_gpus
=
parallel_config
.
world_size
)
else
:
else
:
ray
.
init
(
address
=
ray_address
,
ignore_reinit_error
=
True
)
ray
.
init
(
address
=
ray_address
)
device_str
=
current_platform
.
ray_device_key
device_str
=
current_platform
.
ray_device_key
if
not
device_str
:
if
not
device_str
:
...
...
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