@@ -42,7 +42,8 @@ message TuningJob {
4242 };
4343
4444 oneof source_model {
45- // The base model that is being tuned, e.g., "gemini-1.0-pro-002".
45+ // The base model that is being tuned. See [Supported
46+ // models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
4647 string base_model = 4 ;
4748 }
4849
@@ -118,7 +119,7 @@ message TuningJob {
118119 }
119120 ];
120121
121- // Output only. The tuned model resources assiociated with this
122+ // Output only. The tuned model resources associated with this
122123 // [TuningJob][google.cloud.aiplatform.v1.TuningJob].
123124 TunedModel tuned_model = 14 [(google.api.field_behavior ) = OUTPUT_ONLY ];
124125
@@ -142,7 +143,7 @@ message TuningJob {
142143 string service_account = 22 ;
143144}
144145
145- // The Model Registry Model and Online Prediction Endpoint assiociated with
146+ // The Model Registry Model and Online Prediction Endpoint associated with
146147// this [TuningJob][google.cloud.aiplatform.v1.TuningJob].
147148message TunedModel {
148149 // Output only. The resource name of the TunedModel. Format:
@@ -162,6 +163,12 @@ message TunedModel {
162163 type : "aiplatform.googleapis.com/Endpoint"
163164 }
164165 ];
166+
167+ // Output only. The checkpoints associated with this TunedModel.
168+ // This field is only populated for tuning jobs that enable intermediate
169+ // checkpoints.
170+ repeated TunedModelCheckpoint checkpoints = 3
171+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
165172}
166173
167174// Dataset distribution for Supervised Tuning.
@@ -245,13 +252,21 @@ message SupervisedTuningDataStats {
245252 repeated Content user_dataset_examples = 8
246253 [(google.api.field_behavior ) = OUTPUT_ONLY ];
247254
248- // The number of examples in the dataset that have been truncated by any
249- // amount.
250- int64 total_truncated_example_count = 10 ;
255+ // Output only. The number of examples in the dataset that have been dropped.
256+ // An example can be dropped for reasons including: too many tokens, contains
257+ // an invalid image, contains too many images, etc.
258+ int64 total_truncated_example_count = 10
259+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
260+
261+ // Output only. A partial sample of the indices (starting from 1) of the
262+ // dropped examples.
263+ repeated int64 truncated_example_indices = 11
264+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
251265
252- // A partial sample of the indices (starting from 1) of the truncated
253- // examples.
254- repeated int64 truncated_example_indices = 11 ;
266+ // Output only. For each index in `truncated_example_indices`, the user-facing
267+ // reason why the example was dropped.
268+ repeated string dropped_example_reasons = 12
269+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
255270}
256271
257272// The tuning data statistic values for
@@ -273,6 +288,9 @@ message SupervisedHyperParameters {
273288 // Adapter size 1.
274289 ADAPTER_SIZE_ONE = 1 ;
275290
291+ // Adapter size 2.
292+ ADAPTER_SIZE_TWO = 6 ;
293+
276294 // Adapter size 4.
277295 ADAPTER_SIZE_FOUR = 2 ;
278296
@@ -281,6 +299,9 @@ message SupervisedHyperParameters {
281299
282300 // Adapter size 16.
283301 ADAPTER_SIZE_SIXTEEN = 4 ;
302+
303+ // Adapter size 32.
304+ ADAPTER_SIZE_THIRTY_TWO = 5 ;
284305 }
285306
286307 // Optional. Number of complete passes the model makes over the entire
@@ -307,6 +328,11 @@ message SupervisedTuningSpec {
307328 // Optional. Hyperparameters for SFT.
308329 SupervisedHyperParameters hyper_parameters = 3
309330 [(google.api.field_behavior ) = OPTIONAL ];
331+
332+ // Optional. If set to true, disable intermediate checkpoints for SFT and only
333+ // the last checkpoint will be exported. Otherwise, enable intermediate
334+ // checkpoints for SFT. Default is false.
335+ bool export_last_checkpoint_only = 6 [(google.api.field_behavior ) = OPTIONAL ];
310336}
311337
312338// TunedModel Reference for legacy model migration.
@@ -331,3 +357,19 @@ message TunedModelRef {
331357 }];
332358 }
333359}
360+
361+ // TunedModelCheckpoint for the Tuned Model of a Tuning Job.
362+ message TunedModelCheckpoint {
363+ // The ID of the checkpoint.
364+ string checkpoint_id = 1 ;
365+
366+ // The epoch of the checkpoint.
367+ int64 epoch = 2 ;
368+
369+ // The step of the checkpoint.
370+ int64 step = 3 ;
371+
372+ // The Endpoint resource name that the checkpoint is deployed to. Format:
373+ // `projects/{project}/locations/{location}/endpoints/{endpoint}`.
374+ string endpoint = 4 ;
375+ }
0 commit comments