mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-20 14:57:01 +08:00
[Misc] Remove ignore_reinit_error for ray.init() (#15373)
This commit is contained in:
parent
3892e58ad7
commit
5797fb97e9
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user