Table of Contents

Class FrequencyPenalty

Namespace
Glitch9.AIDevKit

Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.

[Serializable]
public class FrequencyPenalty : NullableRangedFloat<FrequencyPenalty>
Inheritance
object
FrequencyPenalty

Constructors

FrequencyPenalty()

public FrequencyPenalty()

FrequencyPenalty(float)

public FrequencyPenalty(float value)

Parameters

value float

Properties

Default

public override float Default { get; }

Property Value

float

Max

public override float Max { get; }

Property Value

float

Min

public override float Min { get; }

Property Value

float

Operators

implicit operator float?(FrequencyPenalty)

public static implicit operator float?(FrequencyPenalty p)

Parameters

p FrequencyPenalty

Returns

float?

implicit operator FrequencyPenalty(float)

public static implicit operator FrequencyPenalty(float v)

Parameters

v float

Returns

FrequencyPenalty