From 5797fb97e9df1ca5ef1469a041946e05b896cfb8 Mon Sep 17 00:00:00 2001 From: Rui Qiao <161574667+ruisearch42@users.noreply.github.com> Date: Mon, 24 Mar 2025 00:41:53 -0700 Subject: [PATCH] [Misc] Remove ignore_reinit_error for ray.init() (#15373) --- vllm/executor/ray_utils.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/vllm/executor/ray_utils.py b/vllm/executor/ray_utils.py index b7222f26f663e..37cc07bfbb36a 100644 --- a/vllm/executor/ray_utils.py +++ b/vllm/executor/ray_utils.py @@ -289,16 +289,14 @@ def initialize_ray_cluster( 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: - ray.init("auto", ignore_reinit_error=True) + ray.init("auto") except ConnectionError: logger.warning( "No existing RAY instance detected. " "A new instance will be launched with current node resources.") - ray.init(address=ray_address, - ignore_reinit_error=True, - num_gpus=parallel_config.world_size) + ray.init(address=ray_address, num_gpus=parallel_config.world_size) else: - ray.init(address=ray_address, ignore_reinit_error=True) + ray.init(address=ray_address) device_str = current_platform.ray_device_key if not device_str: