Skip to content

Commit f7c5132

Browse files
matthew29tangcopybara-github
authored andcommitted
feat: Release Ray on Vertex SDK to GA
PiperOrigin-RevId: 632239389
1 parent c528b6f commit f7c5132

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+226
-48
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,29 @@
1818
#
1919
import sys
2020

21-
from google.cloud.aiplatform.preview.vertex_ray.bigquery_datasource import (
21+
from google.cloud.aiplatform.vertex_ray.bigquery_datasource import (
2222
BigQueryDatasource,
2323
)
24-
from google.cloud.aiplatform.preview.vertex_ray.client_builder import (
24+
from google.cloud.aiplatform.vertex_ray.client_builder import (
2525
VertexRayClientBuilder as ClientBuilder,
2626
)
2727

28-
from google.cloud.aiplatform.preview.vertex_ray.cluster_init import (
28+
from google.cloud.aiplatform.vertex_ray.cluster_init import (
2929
create_ray_cluster,
3030
delete_ray_cluster,
3131
get_ray_cluster,
3232
list_ray_clusters,
3333
update_ray_cluster,
3434
)
3535

36-
from google.cloud.aiplatform.preview.vertex_ray import data
36+
from google.cloud.aiplatform.vertex_ray import data
3737

38-
from google.cloud.aiplatform.preview.vertex_ray.util.resources import (
38+
from google.cloud.aiplatform.vertex_ray.util.resources import (
3939
Resources,
4040
NodeImages,
4141
)
4242

43-
from google.cloud.aiplatform.preview.vertex_ray.dashboard_sdk import (
43+
from google.cloud.aiplatform.vertex_ray.dashboard_sdk import (
4444
get_job_submission_client_cluster_info,
4545
)
4646

google/cloud/aiplatform/preview/vertex_ray/predict/sklearn/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# limitations under the License.
1818
#
1919

20-
from .register import register_sklearn
20+
from google.cloud.aiplatform.vertex_ray.predict.sklearn import (
21+
register_sklearn,
22+
)
2123

2224
__all__ = ("register_sklearn",)

google/cloud/aiplatform/preview/vertex_ray/predict/tensorflow/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# limitations under the License.
1818
#
1919

20-
from .register import register_tensorflow
20+
from google.cloud.aiplatform.vertex_ray.predict.tensorflow import (
21+
register_tensorflow,
22+
)
2123

2224
__all__ = ("register_tensorflow",)

google/cloud/aiplatform/preview/vertex_ray/predict/torch/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# limitations under the License.
1818
#
1919

20-
from .register import get_pytorch_model_from
20+
from google.cloud.aiplatform.vertex_ray.predict.torch import (
21+
get_pytorch_model_from,
22+
)
2123

2224
__all__ = ("get_pytorch_model_from",)

google/cloud/aiplatform/preview/vertex_ray/predict/xgboost/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# limitations under the License.
1818
#
1919

20-
from .register import register_xgboost
20+
from google.cloud.aiplatform.vertex_ray.predict.xgboost import (
21+
register_xgboost,
22+
)
2123

2224
__all__ = ("register_xgboost",)
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
"""Ray on Vertex AI."""
2+
3+
# -*- coding: utf-8 -*-
4+
5+
# Copyright 2022 Google LLC
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#
19+
import sys
20+
21+
from google.cloud.aiplatform.vertex_ray.bigquery_datasource import (
22+
BigQueryDatasource,
23+
)
24+
from google.cloud.aiplatform.vertex_ray.client_builder import (
25+
VertexRayClientBuilder as ClientBuilder,
26+
)
27+
28+
from google.cloud.aiplatform.vertex_ray.cluster_init import (
29+
create_ray_cluster,
30+
delete_ray_cluster,
31+
get_ray_cluster,
32+
list_ray_clusters,
33+
update_ray_cluster,
34+
)
35+
36+
from google.cloud.aiplatform.vertex_ray import data
37+
38+
from google.cloud.aiplatform.vertex_ray.util.resources import (
39+
Resources,
40+
NodeImages,
41+
)
42+
43+
from google.cloud.aiplatform.vertex_ray.dashboard_sdk import (
44+
get_job_submission_client_cluster_info,
45+
)
46+
47+
if sys.version_info[1] != 10:
48+
print(
49+
"[Ray on Vertex]: The client environment with Python version 3.10 is required."
50+
)
51+
52+
__all__ = (
53+
"BigQueryDatasource",
54+
"data",
55+
"ClientBuilder",
56+
"get_job_submission_client_cluster_info",
57+
"create_ray_cluster",
58+
"delete_ray_cluster",
59+
"get_ray_cluster",
60+
"list_ray_clusters",
61+
"update_ray_cluster",
62+
"Resources",
63+
"NodeImages",
64+
)
File renamed without changes.
File renamed without changes.
File renamed without changes.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
ServiceAccountSpec,
3636
)
3737

38-
from google.cloud.aiplatform.preview.vertex_ray.util import (
38+
from google.cloud.aiplatform.vertex_ray.util import (
3939
_gapic_utils,
4040
_validation_utils,
4141
resources,

0 commit comments

Comments
 (0)