Skip to content

Commit d9bfa3b

Browse files
Google APIscopybara-github
authored andcommitted
feat: Continuous Tuning
docs: Updated docs for related fields PiperOrigin-RevId: 820872021
1 parent b153a91 commit d9bfa3b

1 file changed

Lines changed: 44 additions & 2 deletions

File tree

google/cloud/aiplatform/v1/tuning_job.proto

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ message TuningJob {
4545
// The base model that is being tuned. See [Supported
4646
// models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
4747
string base_model = 4;
48+
49+
// The pre-tuned model for continuous tuning.
50+
PreTunedModel pre_tuned_model = 31;
4851
}
4952

5053
oneof tuning_spec {
@@ -61,7 +64,10 @@ message TuningJob {
6164

6265
// Optional. The display name of the
6366
// [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to 128
64-
// characters long and can consist of any UTF-8 characters.
67+
// characters long and can consist of any UTF-8 characters. For continuous
68+
// tuning, tuned_model_display_name will by default use the same display name
69+
// as the pre-tuned model. If a new display name is provided, the tuning job
70+
// will create a new model instead of a new version.
6571
string tuned_model_display_name = 2 [(google.api.field_behavior) = OPTIONAL];
6672

6773
// Optional. The description of the
@@ -147,7 +153,18 @@ message TuningJob {
147153
// this [TuningJob][google.cloud.aiplatform.v1.TuningJob].
148154
message TunedModel {
149155
// Output only. The resource name of the TunedModel. Format:
150-
// `projects/{project}/locations/{location}/models/{model}`.
156+
//
157+
// `projects/{project}/locations/{location}/models/{model}@{version_id}`
158+
//
159+
// When tuning from a base model, the version ID will be 1.
160+
//
161+
// For continuous tuning, if the provided tuned_model_display_name is set and
162+
// different from parent model's display name, the tuned model will have a new
163+
// parent model with version 1. Otherwise the version id will be incremented
164+
// by 1 from the last version ID in the parent model. E.g.,
165+
//
166+
// `projects/{project}/locations/{location}/models/{model}@{last_version_id +
167+
// 1}`
151168
string model = 1 [
152169
(google.api.field_behavior) = OUTPUT_ONLY,
153170
(google.api.resource_reference) = {
@@ -373,3 +390,28 @@ message TunedModelCheckpoint {
373390
// `projects/{project}/locations/{location}/endpoints/{endpoint}`.
374391
string endpoint = 4;
375392
}
393+
394+
// A pre-tuned model for continuous tuning.
395+
message PreTunedModel {
396+
// The resource name of the Model.
397+
// E.g., a model resource name with a specified version id or alias:
398+
//
399+
// `projects/{project}/locations/{location}/models/{model}@{version_id}`
400+
//
401+
// `projects/{project}/locations/{location}/models/{model}@{alias}`
402+
//
403+
// Or, omit the version id to use the default version:
404+
//
405+
// `projects/{project}/locations/{location}/models/{model}`
406+
string tuned_model_name = 1 [(google.api.resource_reference) = {
407+
type: "aiplatform.googleapis.com/Model"
408+
}];
409+
410+
// Optional. The source checkpoint id. If not specified, the default
411+
// checkpoint will be used.
412+
string checkpoint_id = 2 [(google.api.field_behavior) = OPTIONAL];
413+
414+
// Output only. The name of the base model this
415+
// [PreTunedModel][google.cloud.aiplatform.v1.PreTunedModel] was tuned from.
416+
string base_model = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
417+
}

0 commit comments

Comments
 (0)