Skip to content

Commit 084bbac

Browse files
authored
[core] Bump ray to 2.43 (#13994)
Signed-off-by: Rui Qiao <[email protected]>
1 parent 28943d3 commit 084bbac

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ updates:
2323
- dependency-name: "lm-format-enforcer"
2424
- dependency-name: "gguf"
2525
- dependency-name: "compressed-tensors"
26-
- dependency-name: "ray[adag]"
26+
- dependency-name: "ray[cgraph]" # Ray Compiled Graph
2727
- dependency-name: "lm-eval"
2828
groups:
2929
minor-update:

requirements-cuda.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
-r requirements-common.txt
33

44
# Dependencies for NVIDIA GPUs
5-
ray[adag] == 2.40.0 # Required for pipeline parallelism in V1.
5+
ray[cgraph] >= 2.43.0 # Ray Compiled Graph, required for pipeline parallelism in V1.
66
torch == 2.5.1
77
torchaudio==2.5.1
88
# These must be updated alongside torch

requirements-test.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ vector_quantize_pytorch # required for minicpmo_26 test
1616
vocos # required for minicpmo_26 test
1717
peft
1818
pqdm
19-
ray[adag]==2.40.0
19+
ray[cgraph]>=2.43.0 # Ray Compiled Graph, required by pipeline parallelism tests
2020
sentence-transformers # required for embedding tests
2121
soundfile # required for audio tests
2222
jiwer # required for audio tests

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ pyyaml==6.0.2
472472
# vocos
473473
rapidfuzz==3.12.1
474474
# via jiwer
475-
ray==2.40.0
475+
ray==2.43.0
476476
# via -r requirements-test.in
477477
redis==5.2.0
478478
# via tensorizer

vllm/executor/ray_distributed_executor.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)