Interface SupervisedTuningSpec

Tuning Spec for Supervised Tuning for first party models.

interface SupervisedTuningSpec {
    exportLastCheckpointOnly?: boolean;
    hyperParameters?: SupervisedHyperParameters;
    trainingDatasetUri?: string;
    tuningMode?: TuningMode;
    validationDatasetUri?: string;
}

Properties

exportLastCheckpointOnly?: boolean

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.

hyperParameters?: SupervisedHyperParameters

Optional. Hyperparameters for SFT.

trainingDatasetUri?: string

Required. Training dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset.

tuningMode?: TuningMode

Tuning mode.

validationDatasetUri?: string

Optional. Validation dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset.