@@ -500,7 +500,7 @@ def _check_ray_cgraph_installation(self):
500500 import pkg_resources
501501 from packaging import version
502502
503- required_version = version .parse ("2.40 " )
503+ required_version = version .parse ("2.43.0 " )
504504 current_version = version .parse (
505505 pkg_resources .get_distribution ("ray" ).version )
506506 if current_version < required_version :
@@ -512,20 +512,19 @@ def _check_ray_cgraph_installation(self):
512512 "ray.experimental.compiled_dag_ref" )
513513 if cgraph_spec is None :
514514 raise ValueError ("Ray Compiled Graph is not installed. "
515- "Run `pip install ray[adag ]` to install it." )
515+ "Run `pip install ray[cgraph ]` to install it." )
516516
517517 cupy_spec = importlib .util .find_spec ("cupy" )
518518 if cupy_spec is None and envs .VLLM_USE_RAY_COMPILED_DAG_NCCL_CHANNEL :
519519 raise ValueError (
520520 "cupy is not installed but required since "
521521 "VLLM_USE_RAY_COMPILED_DAG_NCCL_CHANNEL is set. "
522- "Run `pip install ray[adag ]` and check cupy installation." )
522+ "Run `pip install ray[cgraph ]` and check cupy installation." )
523523
524524 def _compiled_ray_dag (self , enable_asyncio : bool ):
525525 assert self .parallel_config .use_ray
526526 self ._check_ray_cgraph_installation ()
527527 from ray .dag import InputNode , MultiOutputNode
528- from ray .experimental .channel .torch_tensor_type import TorchTensorType
529528
530529 logger .info ("VLLM_USE_RAY_COMPILED_DAG_NCCL_CHANNEL = %s" ,
531530 envs .VLLM_USE_RAY_COMPILED_DAG_NCCL_CHANNEL )
@@ -574,8 +573,7 @@ def _compiled_ray_dag(self, enable_asyncio: bool):
574573 if envs .VLLM_USE_RAY_COMPILED_DAG_NCCL_CHANNEL \
575574 else "auto"
576575 outputs = [
577- output .with_type_hint (
578- TorchTensorType (transport = transport ))
576+ output .with_tensor_transport (transport = transport )
579577 for output in outputs
580578 ]
581579
0 commit comments