Class SupervisedTuningSpec (1.158.0)

SupervisedTuningSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Tuning Spec for Supervised Tuning for first party models.

Attributes

Name Description
training_dataset_uri str
Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.
validation_dataset_uri str
Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
hyper_parameters google.cloud.aiplatform_v1.types.SupervisedHyperParameters
Optional. Hyperparameters for SFT.
export_last_checkpoint_only bool
Optional. If set to true, disable intermediate checkpoints for SFT and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints for SFT. Default is false.
evaluation_config google.cloud.aiplatform_v1.types.EvaluationConfig
Optional. Evaluation Config for Tuning Job.

Methods

SupervisedTuningSpec

SupervisedTuningSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Tuning Spec for Supervised Tuning for first party models.