-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: make final updates to include Ray v2.42.0 support on SDK, make…
… 2.42.0 the default Ray version over 2.33.0 FUTURE_COPYBARA_INTEGRATE_REVIEW=#4990 from googleapis:release-please--branches--main dc59b4d PiperOrigin-RevId: 734649560
- Loading branch information
1 parent
80cfc2f
commit 98f5403
Showing
10 changed files
with
109 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
# Run unit tests for Ray 2.42.0 on Python 3.10 | ||
env_vars: { | ||
key: "NOX_SESSION" | ||
value: "unit_ray(ray='2.42.0')" | ||
} | ||
|
||
# Run unit tests in parallel, splitting up by file | ||
env_vars: { | ||
key: "PYTEST_ADDOPTS" | ||
value: "-n=auto --dist=loadscope" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ | |
def create_ray_cluster( | ||
head_node_type: Optional[resources.Resources] = resources.Resources(), | ||
python_version: Optional[str] = "3.10", | ||
ray_version: Optional[str] = "2.33", | ||
ray_version: Optional[str] = "2.42", | ||
network: Optional[str] = None, | ||
service_account: Optional[str] = None, | ||
cluster_name: Optional[str] = None, | ||
|
@@ -76,17 +76,17 @@ def create_ray_cluster( | |
head_node_type = Resources( | ||
machine_type="n1-standard-8", | ||
node_count=1, | ||
accelerator_type="NVIDIA_TESLA_K80", | ||
accelerator_type="NVIDIA_TESLA_T4", | ||
accelerator_count=1, | ||
custom_image="us-docker.pkg.dev/my-project/ray-cpu-image.2.9:latest", # Optional | ||
custom_image="us-docker.pkg.dev/my-project/ray-cpu-image.2.33:latest", # Optional | ||
) | ||
worker_node_types = [Resources( | ||
machine_type="n1-standard-8", | ||
node_count=2, | ||
accelerator_type="NVIDIA_TESLA_K80", | ||
accelerator_type="NVIDIA_TESLA_T4", | ||
accelerator_count=1, | ||
custom_image="us-docker.pkg.dev/my-project/ray-gpu-image.2.9:latest", # Optional | ||
custom_image="us-docker.pkg.dev/my-project/ray-gpu-image.2.33:latest", # Optional | ||
)] | ||
cluster_resource_name = vertex_ray.create_ray_cluster( | ||
|
@@ -95,7 +95,7 @@ def create_ray_cluster( | |
service_account="[email protected]", # Optional | ||
cluster_name="my-cluster-name", # Optional | ||
worker_node_types=worker_node_types, | ||
ray_version="2.9", | ||
ray_version="2.33", | ||
) | ||
After a ray cluster is set up, you can call | ||
|
@@ -109,7 +109,7 @@ def create_ray_cluster( | |
head_node_type: The head node resource. Resources.node_count must be 1. | ||
If not set, default value of Resources() class will be used. | ||
python_version: Python version for the ray cluster. | ||
ray_version: Ray version for the ray cluster. Default is 2.33.0. | ||
ray_version: Ray version for the ray cluster. Default is 2.42.0. | ||
network: Virtual private cloud (VPC) network. For Ray Client, VPC | ||
peering is required to connect to the Ray Cluster managed in the | ||
Vertex API service. For Ray Job API, VPC network is not required | ||
|
@@ -162,7 +162,7 @@ def create_ray_cluster( | |
local_ray_verion = _validation_utils.get_local_ray_version() | ||
if ray_version != local_ray_verion: | ||
if custom_images is None and head_node_type.custom_image is None: | ||
install_ray_version = "2.33.0" | ||
install_ray_version = "2.42.0" | ||
logging.info( | ||
"[Ray on Vertex]: Local runtime has Ray version %s" | ||
", but the requested cluster runtime has %s. Please " | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ray==2.42.0 | ||
# Below constraints are inherited from constraints-3.10.txt | ||
google-api-core | ||
proto-plus==1.22.3 | ||
protobuf | ||
mock==4.0.2 | ||
google-cloud-storage==2.2.1 # Increased for kfp 2.0 compatibility | ||
packaging==24.1 # Increased to unbreak canonicalize_version error (b/377774673) | ||
grpcio-testing==1.34.0 | ||
mlflow==1.30.1 # Pinned to speed up installation | ||
pytest-xdist==3.3.1 # Pinned to unbreak unit tests | ||
IPython # Added to test supernova rich html buttons | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters