Property PresencePenalty
- Namespace
- LMKit.TextGeneration.Sampling
- Assembly
- LM-Kit.NET.dll
PresencePenalty
Specifies an additive penalty applied to any token that has appeared at least once in the lookback window.
Unlike FrequencyPenalty, this penalty does not scale with occurrence count.
Positive values encourage the model to explore new topics; negative values encourage staying on topic; zero disables this penalty.
Use a floating-point value within the range [-2, 2].
public float PresencePenalty { get; set; }
Property Value
- float
The default value is 0 (disabled).