@@ -20,6 +20,7 @@ import "google/api/field_behavior.proto";
2020import "google/api/resource.proto" ;
2121import "google/cloud/aiplatform/v1beta1/content.proto" ;
2222import "google/cloud/aiplatform/v1beta1/encryption_spec.proto" ;
23+ import "google/cloud/aiplatform/v1beta1/evaluation_service.proto" ;
2324import "google/cloud/aiplatform/v1beta1/job_state.proto" ;
2425import "google/protobuf/struct.proto" ;
2526import "google/protobuf/timestamp.proto" ;
@@ -174,6 +175,10 @@ message TuningJob {
174175 // written to. This field is only available and required for open source
175176 // models.
176177 string output_uri = 25 [(google.api.field_behavior ) = OPTIONAL ];
178+
179+ // Output only. Evaluation runs for the Tuning Job.
180+ repeated EvaluateDatasetRun evaluate_dataset_runs = 32
181+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
177182}
178183
179184// The Model Registry Model and Online Prediction Endpoint associated with
@@ -485,6 +490,10 @@ message SupervisedTuningSpec {
485490 // checkpoints for SFT. Default is false.
486491 bool export_last_checkpoint_only = 6 [(google.api.field_behavior ) = OPTIONAL ];
487492
493+ // Optional. Evaluation Config for Tuning Job.
494+ EvaluationConfig evaluation_config = 5
495+ [(google.api.field_behavior ) = OPTIONAL ];
496+
488497 // Tuning mode.
489498 TuningMode tuning_mode = 7 ;
490499}
@@ -622,6 +631,32 @@ message VeoTuningSpec {
622631 [(google.api.field_behavior ) = OPTIONAL ];
623632}
624633
634+ // Evaluation Config for Tuning Job.
635+ message EvaluationConfig {
636+ // Required. The metrics used for evaluation.
637+ repeated Metric metrics = 1 [(google.api.field_behavior ) = REQUIRED ];
638+
639+ // Required. Config for evaluation output.
640+ OutputConfig output_config = 2 [(google.api.field_behavior ) = REQUIRED ];
641+
642+ // Optional. Autorater config for evaluation.
643+ AutoraterConfig autorater_config = 3 [(google.api.field_behavior ) = OPTIONAL ];
644+ }
645+
646+ // Evaluate Dataset Run Result for Tuning Job.
647+ message EvaluateDatasetRun {
648+ // Output only. The operation ID of the evaluation run. Format:
649+ // `projects/{project}/locations/{location}/operations/{operation_id}`.
650+ string operation_name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
651+
652+ // Output only. The checkpoint id used in the evaluation run. Only populated
653+ // when evaluating checkpoints.
654+ string checkpoint_id = 2 [(google.api.field_behavior ) = OUTPUT_ONLY ];
655+
656+ // Output only. The error of the evaluation run if any.
657+ google.rpc.Status error = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
658+ }
659+
625660// TunedModelCheckpoint for the Tuned Model of a Tuning Job.
626661message TunedModelCheckpoint {
627662 // The ID of the checkpoint.
0 commit comments