Class JobCreateParams.Method.Dpo.Hyperparameters
-
- All Implemented Interfaces:
public final class JobCreateParams.Method.Dpo.HyperparametersThe hyperparameters used for the fine-tuning job.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classJobCreateParams.Method.Dpo.Hyperparameters.BuilderA builder for Hyperparameters.
public final classJobCreateParams.Method.Dpo.Hyperparameters.BatchSizeNumber of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.
public final classJobCreateParams.Method.Dpo.Hyperparameters.BetaThe beta value for the DPO method. A higher beta value will increase the weight of the penalty between the policy and reference model.
public final classJobCreateParams.Method.Dpo.Hyperparameters.LearningRateMultiplierScaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
public final classJobCreateParams.Method.Dpo.Hyperparameters.NEpochsThe number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
-
Method Summary
-
-
Method Detail
-
batchSize
final Optional<JobCreateParams.Method.Dpo.Hyperparameters.BatchSize> batchSize()
Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.
-
beta
final Optional<JobCreateParams.Method.Dpo.Hyperparameters.Beta> beta()
The beta value for the DPO method. A higher beta value will increase the weight of the penalty between the policy and reference model.
-
learningRateMultiplier
final Optional<JobCreateParams.Method.Dpo.Hyperparameters.LearningRateMultiplier> learningRateMultiplier()
Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
-
nEpochs
final Optional<JobCreateParams.Method.Dpo.Hyperparameters.NEpochs> nEpochs()
The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
-
_batchSize
final JsonField<JobCreateParams.Method.Dpo.Hyperparameters.BatchSize> _batchSize()
Returns the raw JSON value of batchSize.
Unlike batchSize, this method doesn't throw if the JSON field has an unexpected type.
-
_beta
final JsonField<JobCreateParams.Method.Dpo.Hyperparameters.Beta> _beta()
Returns the raw JSON value of beta.
Unlike beta, this method doesn't throw if the JSON field has an unexpected type.
-
_learningRateMultiplier
final JsonField<JobCreateParams.Method.Dpo.Hyperparameters.LearningRateMultiplier> _learningRateMultiplier()
Returns the raw JSON value of learningRateMultiplier.
Unlike learningRateMultiplier, this method doesn't throw if the JSON field has an unexpected type.
-
_nEpochs
final JsonField<JobCreateParams.Method.Dpo.Hyperparameters.NEpochs> _nEpochs()
Returns the raw JSON value of nEpochs.
Unlike nEpochs, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final JobCreateParams.Method.Dpo.Hyperparameters.Builder toBuilder()
-
validate
final JobCreateParams.Method.Dpo.Hyperparameters validate()
-
builder
final static JobCreateParams.Method.Dpo.Hyperparameters.Builder builder()
Returns a mutable builder for constructing an instance of Hyperparameters.
-
-
-
-