54
54
def create_ray_cluster (
55
55
head_node_type : Optional [resources .Resources ] = resources .Resources (),
56
56
python_version : Optional [str ] = "3.10" ,
57
- ray_version : Optional [str ] = "2.33 " ,
57
+ ray_version : Optional [str ] = "2.42 " ,
58
58
network : Optional [str ] = None ,
59
59
service_account : Optional [str ] = None ,
60
60
cluster_name : Optional [str ] = None ,
@@ -76,17 +76,17 @@ def create_ray_cluster(
76
76
head_node_type = Resources(
77
77
machine_type="n1-standard-8",
78
78
node_count=1,
79
- accelerator_type="NVIDIA_TESLA_K80 ",
79
+ accelerator_type="NVIDIA_TESLA_T4 ",
80
80
accelerator_count=1,
81
- custom_image="us-docker.pkg.dev/my-project/ray-cpu-image.2.9 :latest", # Optional
81
+ custom_image="us-docker.pkg.dev/my-project/ray-cpu-image.2.33 :latest", # Optional
82
82
)
83
83
84
84
worker_node_types = [Resources(
85
85
machine_type="n1-standard-8",
86
86
node_count=2,
87
- accelerator_type="NVIDIA_TESLA_K80 ",
87
+ accelerator_type="NVIDIA_TESLA_T4 ",
88
88
accelerator_count=1,
89
- custom_image="us-docker.pkg.dev/my-project/ray-gpu-image.2.9 :latest", # Optional
89
+ custom_image="us-docker.pkg.dev/my-project/ray-gpu-image.2.33 :latest", # Optional
90
90
)]
91
91
92
92
cluster_resource_name = vertex_ray.create_ray_cluster(
@@ -95,7 +95,7 @@ def create_ray_cluster(
95
95
service_account="[email protected] ", # Optional
96
96
cluster_name="my-cluster-name", # Optional
97
97
worker_node_types=worker_node_types,
98
- ray_version="2.9 ",
98
+ ray_version="2.33 ",
99
99
)
100
100
101
101
After a ray cluster is set up, you can call
@@ -109,7 +109,7 @@ def create_ray_cluster(
109
109
head_node_type: The head node resource. Resources.node_count must be 1.
110
110
If not set, default value of Resources() class will be used.
111
111
python_version: Python version for the ray cluster.
112
- ray_version: Ray version for the ray cluster. Default is 2.33 .0.
112
+ ray_version: Ray version for the ray cluster. Default is 2.42 .0.
113
113
network: Virtual private cloud (VPC) network. For Ray Client, VPC
114
114
peering is required to connect to the Ray Cluster managed in the
115
115
Vertex API service. For Ray Job API, VPC network is not required
@@ -162,7 +162,7 @@ def create_ray_cluster(
162
162
local_ray_verion = _validation_utils .get_local_ray_version ()
163
163
if ray_version != local_ray_verion :
164
164
if custom_images is None and head_node_type .custom_image is None :
165
- install_ray_version = "2.33 .0"
165
+ install_ray_version = "2.42 .0"
166
166
logging .info (
167
167
"[Ray on Vertex]: Local runtime has Ray version %s"
168
168
", but the requested cluster runtime has %s. Please "
0 commit comments