Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No public description #5034

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions google/cloud/aiplatform_v1beta1/types/model_garden_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ class DeployRequest(proto.Message):
hugging_face_model_id (str):
The Hugging Face model to deploy. Format: Hugging Face model
ID like ``google/gemma-2-2b-it``.
custom_model (google.cloud.aiplatform_v1beta1.types.DeployRequest.CustomModel):
The custom model to deploy from a Google
Cloud Storage URI.

This field is a member of `oneof`_ ``artifacts``.
destination (str):
Expand All @@ -261,6 +264,32 @@ class DeployRequest(proto.Message):
config will be used.
"""

class CustomModel(proto.Message):
r"""The custom model to deploy from a Google Cloud Storage URI.

Attributes:
model_id (str):
Optional. The model user id of the custom model, which will
become the final component of the model resource name in
Model Registry. This value may be up to 63 characters, and
valid characters are ``[a-z0-9_-]``. The first character
cannot be a number or hyphen. If not set, an auto-generated
model id will be assigned.
gcs_uri (str):
Required. Immutable. The Google Cloud Storage
URI of the custom model, storing weights and
config files.
"""

model_id: str = proto.Field(
proto.STRING,
number=1,
)
gcs_uri: str = proto.Field(
proto.STRING,
number=2,
)

class ModelConfig(proto.Message):
r"""The model config to use for the deployment.

Expand Down Expand Up @@ -371,6 +400,12 @@ class DeployConfig(proto.Message):
number=2,
oneof="artifacts",
)
custom_model: CustomModel = proto.Field(
proto.MESSAGE,
number=3,
oneof='artifacts',
message=CustomModel,
)
destination: str = proto.Field(
proto.STRING,
number=4,
Expand Down