mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 18:55:01 +08:00
fix(ray_utils): ignore re-init error (#465)
This commit is contained in:
parent
bda41c70dd
commit
16c3e295a8
@ -44,7 +44,7 @@ def initialize_cluster(
|
|||||||
"Ray is not installed. Please install Ray to use distributed "
|
"Ray is not installed. Please install Ray to use distributed "
|
||||||
"serving.")
|
"serving.")
|
||||||
# Connect to a ray cluster.
|
# Connect to a ray cluster.
|
||||||
ray.init(address=ray_address)
|
ray.init(address=ray_address, ignore_reinit_error=True)
|
||||||
|
|
||||||
if not parallel_config.worker_use_ray:
|
if not parallel_config.worker_use_ray:
|
||||||
# Initialize cluster locally.
|
# Initialize cluster locally.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user