Skip to content

Commit

Permalink
[Bugfix] Ignore ray reinit error when current platform is ROCm or XPU (
Browse files Browse the repository at this point in the history
…vllm-project#10375)

Signed-off-by: Hollow Man <[email protected]>
  • Loading branch information
HollowMan6 authored Nov 18, 2024
1 parent c4e4643 commit 47826ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/executor/ray_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def initialize_ray_cluster(
if current_platform.is_rocm() or current_platform.is_xpu():
# Try to connect existing ray instance and create a new one if not found
try:
ray.init("auto")
ray.init("auto", ignore_reinit_error=True)
except ConnectionError:
logger.warning(
"No existing RAY instance detected. "
Expand Down

0 comments on commit 47826ca

Please sign in to comment.