Skip to content

Commit abcd185

Browse files
committed
up
Signed-off-by: Rui Qiao <ruisearch42@gmail.com>
1 parent 086c20b commit abcd185

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

vllm/v1/executor/ray_executor.py

+13-5
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,20 @@ def check_health(self) -> None:
329329
logger.debug("Called check_health.")
330330

331331
def _check_ray_compiled_graph_installation(self):
332-
# TODO: We should check versions that support compiled graph.
332+
import pkg_resources
333+
from packaging import version
334+
335+
required_version = version.parse("2.39")
336+
current_version = version.parse(
337+
pkg_resources.get_distribution("ray").version)
338+
if current_version < required_version:
339+
raise ValueError(f"Ray version {required_version} is "
340+
f"required, but found {current_version}")
341+
333342
import importlib.util
334-
adag_spec = importlib.util.find_spec(
335-
"ray.experimental.compiled_dag_ref")
336-
if adag_spec is None:
337-
raise ValueError("Ray accelerated DAG is not installed. "
343+
raycg = importlib.util.find_spec("ray.experimental.compiled_dag_ref")
344+
if raycg is None:
345+
raise ValueError("Ray Compiled Graph is not installed. "
338346
"Run `pip install ray[adag]` to install it.")
339347

340348
cupy_spec = importlib.util.find_spec("cupy")

0 commit comments

Comments
 (0)