Skip to content

Commit 47826ca

Browse files
authored
[Bugfix] Ignore ray reinit error when current platform is ROCm or XPU (#10375)
Signed-off-by: Hollow Man <[email protected]>
1 parent c4e4643 commit 47826ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/executor/ray_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def initialize_ray_cluster(
234234
if current_platform.is_rocm() or current_platform.is_xpu():
235235
# Try to connect existing ray instance and create a new one if not found
236236
try:
237-
ray.init("auto")
237+
ray.init("auto", ignore_reinit_error=True)
238238
except ConnectionError:
239239
logger.warning(
240240
"No existing RAY instance detected. "

0 commit comments

Comments
 (0)