Class FrequencyPenalty
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
-
objectFrequencyPenalty
Constructors
FrequencyPenalty()
public FrequencyPenalty()
FrequencyPenalty(float)
public FrequencyPenalty(float value)
Parameters
valuefloat
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
Returns
- float?
implicit operator FrequencyPenalty(float)
public static implicit operator FrequencyPenalty(float v)
Parameters
vfloat