Skip to content

Commit 1473e19

Browse files
matthew29tangcopybara-github
authored andcommitted
docs: Clean up RoV create_ray_cluster docstring
PiperOrigin-RevId: 579272542
1 parent be1df7f commit 1473e19

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

google/cloud/aiplatform/preview/vertex_ray/cluster_init.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ def create_ray_cluster(
7070
)]
7171
7272
cluster_resource_name = vertex_ray.create_ray_cluster(
73-
head_node_type=head_node_type,
74-
network="my-vpc",
75-
worker_node_types=worker_node_types,
73+
head_node_type=head_node_type,
74+
network="projects/my-project-number/global/networks/my-vpc-name",
75+
worker_node_types=worker_node_types,
7676
)
7777
7878
After a ray cluster is set up, you can call
79-
`ray.init(vertex_ray://{cluster_resource_name}, runtime_env=...)` without
79+
`ray.init(f"vertex_ray://{cluster_resource_name}", runtime_env=...)` without
8080
specifying ray cluster address to connect to the cluster. To shut down the
8181
cluster you can call `ray.delete_ray_cluster()`.
82-
Note: If the active ray cluster haven't shut down, you cannot create a new ray
83-
cluster with the same cluster_name.
82+
Note: If the active ray cluster has not finished shutting down, you cannot
83+
create a new ray cluster with the same cluster_name.
8484
8585
Args:
8686
head_node_type: The head node resource. Resources.node_count must be 1.

0 commit comments

Comments
 (0)