Class CreateTuningJobConfig.Builder
- Enclosing class:
- CreateTuningJobConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CreateTuningJobConfig.BuilderadapterSize(AdapterSize adapterSize) Setter for adapterSize.adapterSize(AdapterSize.Known knownType) Setter for adapterSize given a known enum.adapterSize(String adapterSize) Setter for adapterSize given a string.abstract CreateTuningJobConfig.BuilderSetter for batchSize.abstract CreateTuningJobConfigbuild()abstract CreateTuningJobConfig.Builderdescription(String description) Setter for description.abstract CreateTuningJobConfig.BuilderepochCount(Integer epochCount) Setter for epochCount.abstract CreateTuningJobConfig.BuilderexportLastCheckpointOnly(boolean exportLastCheckpointOnly) Setter for exportLastCheckpointOnly.abstract CreateTuningJobConfig.BuilderhttpOptions(HttpOptions httpOptions) Setter for httpOptions.httpOptions(HttpOptions.Builder httpOptionsBuilder) Setter for httpOptions builder.abstract CreateTuningJobConfig.BuilderSetter for labels.abstract CreateTuningJobConfig.BuilderlearningRate(Float learningRate) Setter for learningRate.abstract CreateTuningJobConfig.BuilderlearningRateMultiplier(Float learningRateMultiplier) Setter for learningRateMultiplier.abstract CreateTuningJobConfig.BuilderpreTunedModelCheckpointId(String preTunedModelCheckpointId) Setter for preTunedModelCheckpointId.abstract CreateTuningJobConfig.BuildertunedModelDisplayName(String tunedModelDisplayName) Setter for tunedModelDisplayName.abstract CreateTuningJobConfig.BuildervalidationDataset(TuningValidationDataset validationDataset) Setter for validationDataset.validationDataset(TuningValidationDataset.Builder validationDatasetBuilder) Setter for validationDataset builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpOptions
Setter for httpOptions.httpOptions: Used to override HTTP request options.
-
httpOptions
Setter for httpOptions builder.httpOptions: Used to override HTTP request options.
-
validationDataset
public abstract CreateTuningJobConfig.Builder validationDataset(TuningValidationDataset validationDataset) Setter for validationDataset.validationDataset: Validation dataset for tuning. The dataset must be formatted as a JSONL file.
-
validationDataset
public CreateTuningJobConfig.Builder validationDataset(TuningValidationDataset.Builder validationDatasetBuilder) Setter for validationDataset builder.validationDataset: Validation dataset for tuning. The dataset must be formatted as a JSONL file.
-
tunedModelDisplayName
Setter for tunedModelDisplayName.tunedModelDisplayName: The display name of the tuned Model. The name can be up to 128 characters long and can consist of any UTF-8 characters.
-
description
Setter for description.description: The description of the TuningJob
-
epochCount
Setter for epochCount.epochCount: Number of complete passes the model makes over the entire training dataset during training.
-
learningRateMultiplier
Setter for learningRateMultiplier.learningRateMultiplier: Multiplier for adjusting the default learning rate.
-
exportLastCheckpointOnly
public abstract CreateTuningJobConfig.Builder exportLastCheckpointOnly(boolean exportLastCheckpointOnly) Setter for exportLastCheckpointOnly.exportLastCheckpointOnly: If set to true, disable intermediate checkpoints for SFT and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints for SFT.
-
preTunedModelCheckpointId
public abstract CreateTuningJobConfig.Builder preTunedModelCheckpointId(String preTunedModelCheckpointId) Setter for preTunedModelCheckpointId.preTunedModelCheckpointId: The optional checkpoint id of the pre-tuned model to use for tuning, if applicable.
-
adapterSize
Setter for adapterSize.adapterSize: Adapter size for tuning.
-
adapterSize
Setter for adapterSize given a known enum.adapterSize: Adapter size for tuning.
-
adapterSize
Setter for adapterSize given a string.adapterSize: Adapter size for tuning.
-
batchSize
Setter for batchSize.batchSize: The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples.
-
learningRate
Setter for learningRate.learningRate: The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples.
-
labels
Setter for labels.labels: Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
-
build
-