TuningJob class final
Represents a TuningJob that runs with Google owned models.
- Inheritance
-
- Object
- ProtoMessage
- TuningJob
Constructors
-
TuningJob({String? baseModel, PreTunedModel? preTunedModel, SupervisedTuningSpec? supervisedTuningSpec, DistillationSpec? distillationSpec, PartnerModelTuningSpec? partnerModelTuningSpec, VeoTuningSpec? veoTuningSpec, String name = '', String tunedModelDisplayName = '', String description = '', String customBaseModel = '', JobState state = JobState.$default, Timestamp? createTime, Timestamp? startTime, Timestamp? endTime, Timestamp? updateTime, Status? error, Map<
String, String> labels = const {}, String experiment = '', TunedModel? tunedModel, TuningDataStats? tuningDataStats, String pipelineJob = '', EncryptionSpec? encryptionSpec, String serviceAccount = '', String outputUri = '', List<EvaluateDatasetRun> evaluateDatasetRuns = const []}) - TuningJob.fromJson(Object? j)
-
factory
Properties
- baseModel → String?
-
The base model that is being tuned. See Supported
models.
final
- createTime → Timestamp?
-
Output only. Time when the
TuningJobwas created.final - customBaseModel → String
-
Optional. The user-provided path to custom model weights. Set this field
to tune a custom model. The path must be a Cloud Storage directory that
contains the model weights in .safetensors format along with associated
model metadata files. If this field is set, the base_model field must still
be set to indicate which base model the custom model is derived from. This
feature is only available for open source models.
final
- description → String
-
Optional. The description of the
TuningJob.final - distillationSpec → DistillationSpec?
-
Tuning Spec for Distillation.
final
- encryptionSpec → EncryptionSpec?
-
Customer-managed encryption key options for a TuningJob. If this is set,
then all resources created by the TuningJob will be encrypted with the
provided encryption key.
final
- endTime → Timestamp?
-
Output only. Time when the TuningJob entered any of the following
JobStates:JOB_STATE_SUCCEEDED,JOB_STATE_FAILED,JOB_STATE_CANCELLED,JOB_STATE_EXPIRED.final - error → Status?
-
Output only. Only populated when job's state is
JOB_STATE_FAILEDorJOB_STATE_CANCELLED.final -
evaluateDatasetRuns
→ List<
EvaluateDatasetRun> -
Output only. Evaluation runs for the Tuning Job.
final
- experiment → String
-
Output only. The Experiment associated with this
TuningJob.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
labels
→ Map<
String, String> -
Optional. The labels with user-defined metadata to organize
TuningJoband generated resources such asModelandEndpoint.final - name → String
-
Output only. Identifier. Resource name of a TuningJob. Format:
projects/{project}/locations/{location}/tuningJobs/{tuning_job}final - outputUri → String
-
Optional. Cloud Storage path to the directory where tuning job outputs are
written to. This field is only available and required for open source
models.
final
- partnerModelTuningSpec → PartnerModelTuningSpec?
-
Tuning Spec for open sourced and third party Partner models.
final
- pipelineJob → String
-
Output only. The resource name of the PipelineJob associated with the
TuningJob. Format:projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}.final - preTunedModel → PreTunedModel?
-
The pre-tuned model for continuous tuning.
final
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceAccount → String
-
The service account that the tuningJob workload runs as.
If not specified, the Vertex AI Secure Fine-Tuned Service Agent in the
project will be used. See
https://cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-service-agent
final
- startTime → Timestamp?
-
Output only. Time when the
TuningJobfor the first time entered theJOB_STATE_RUNNINGstate.final - state → JobState
-
Output only. The detailed state of the job.
final
- supervisedTuningSpec → SupervisedTuningSpec?
-
Tuning Spec for Supervised Fine Tuning.
final
- tunedModel → TunedModel?
-
Output only. The tuned model resources associated with this
TuningJob.final - tunedModelDisplayName → String
-
Optional. The display name of the
TunedModel. The name can be up to 128 characters long and can consist of any UTF-8 characters.final - tuningDataStats → TuningDataStats?
-
Output only. The tuning data statistics associated with this
TuningJob.final - updateTime → Timestamp?
-
Output only. Time when the
TuningJobwas most recently updated.final - veoTuningSpec → VeoTuningSpec?
-
Tuning Spec for Veo Tuning.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String