@@ -500,7 +500,7 @@ def _check_ray_cgraph_installation(self):
500
500
import pkg_resources
501
501
from packaging import version
502
502
503
- required_version = version .parse ("2.40 " )
503
+ required_version = version .parse ("2.43.0 " )
504
504
current_version = version .parse (
505
505
pkg_resources .get_distribution ("ray" ).version )
506
506
if current_version < required_version :
@@ -512,20 +512,19 @@ def _check_ray_cgraph_installation(self):
512
512
"ray.experimental.compiled_dag_ref" )
513
513
if cgraph_spec is None :
514
514
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." )
516
516
517
517
cupy_spec = importlib .util .find_spec ("cupy" )
518
518
if cupy_spec is None and envs .VLLM_USE_RAY_COMPILED_DAG_NCCL_CHANNEL :
519
519
raise ValueError (
520
520
"cupy is not installed but required since "
521
521
"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." )
523
523
524
524
def _compiled_ray_dag (self , enable_asyncio : bool ):
525
525
assert self .parallel_config .use_ray
526
526
self ._check_ray_cgraph_installation ()
527
527
from ray .dag import InputNode , MultiOutputNode
528
- from ray .experimental .channel .torch_tensor_type import TorchTensorType
529
528
530
529
logger .info ("VLLM_USE_RAY_COMPILED_DAG_NCCL_CHANNEL = %s" ,
531
530
envs .VLLM_USE_RAY_COMPILED_DAG_NCCL_CHANNEL )
@@ -574,8 +573,7 @@ def _compiled_ray_dag(self, enable_asyncio: bool):
574
573
if envs .VLLM_USE_RAY_COMPILED_DAG_NCCL_CHANNEL \
575
574
else "auto"
576
575
outputs = [
577
- output .with_type_hint (
578
- TorchTensorType (transport = transport ))
576
+ output .with_tensor_transport (transport = transport )
579
577
for output in outputs
580
578
]
581
579
0 commit comments