Table of Contents

Class SupervisedHyperParameters

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Hyperparameters for Supervised Fine-Tuning (SFT).

[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public class SupervisedHyperParameters
Inheritance
SupervisedHyperParameters
Inherited Members
Extension Methods

Properties

AdapterSize

Optional. Adapter size for tuning. Used when tuning in PEFT adapter mode.

[JsonPropertyName("adapterSize")]
public AdapterSize? AdapterSize { get; set; }

Property Value

AdapterSize?

BatchSize

Optional. Batch size for tuning. This feature is only available for open source models.

[JsonPropertyName("batchSize")]
public int? BatchSize { get; set; }

Property Value

int?

EpochCount

Optional. Number of complete passes the model makes over the entire training dataset during training.

[JsonPropertyName("epochCount")]
public int? EpochCount { get; set; }

Property Value

int?

LearningRate

Optional. Learning rate for tuning. Mutually exclusive with learningRateMultiplier. This feature is only available for open source models.

[JsonPropertyName("learningRate")]
public double? LearningRate { get; set; }

Property Value

double?

LearningRateMultiplier

Optional. Multiplier for adjusting the default learning rate. Mutually exclusive with learningRate. This feature is only available for first-party models.

[JsonPropertyName("learningRateMultiplier")]
public double? LearningRateMultiplier { get; set; }

Property Value

double?