Show / Hide Table of Contents

Class TrainingConfig

The fine-tuning method and hyperparameters used for fine-tuning a custom model.

Inheritance
object
TrainingConfig
LoraTrainingConfig
TFewTrainingConfig
VanillaTrainingConfig
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.GenerativeaiService.Models
Assembly: OCI.DotNetSDK.Generativeai.dll
Syntax
[JsonConverter(typeof(TrainingConfigModelConverter))]
public class TrainingConfig

Properties

EarlyStoppingPatience

Declaration
[JsonProperty(PropertyName = "earlyStoppingPatience")]
public int? EarlyStoppingPatience { get; set; }
Property Value
Type Description
int?

Stop training if the loss metric does not improve beyond 'early_stopping_threshold' for this many times of evaluation.

EarlyStoppingThreshold

Declaration
[JsonProperty(PropertyName = "earlyStoppingThreshold")]
public double EarlyStoppingThreshold { get; set; }
Property Value
Type Description
double

How much the loss must improve to prevent early stopping.

LearningRate

Declaration
[JsonProperty(PropertyName = "learningRate")]
public double LearningRate { get; set; }
Property Value
Type Description
double

The initial learning rate to be used during training

LogModelMetricsIntervalInSteps

Declaration
[JsonProperty(PropertyName = "logModelMetricsIntervalInSteps")]
public int? LogModelMetricsIntervalInSteps { get; set; }
Property Value
Type Description
int?

Determines how frequently to log model metrics.
Every step is logged for the first 20 steps and then follows this parameter for log frequency. Set to 0 to disable logging the model metrics.

TotalTrainingEpochs

Declaration
[JsonProperty(PropertyName = "totalTrainingEpochs")]
public int? TotalTrainingEpochs { get; set; }
Property Value
Type Description
int?

The maximum number of training epochs to run for.

TrainingBatchSize

Declaration
[JsonProperty(PropertyName = "trainingBatchSize")]
public int? TrainingBatchSize { get; set; }
Property Value
Type Description
int?

The batch size used during training.

In this article
Back to top