Table of Contents

Property FrequencyPenalty

Namespace
LMKit.TextGeneration.Sampling
Assembly
LM-Kit.NET.dll

FrequencyPenalty

Specifies an additive penalty that scales with how often a token has appeared in the lookback window.
Higher values more strongly discourage tokens that have been used frequently.
Positive values reduce repetition; negative values encourage it; zero disables this penalty.
Use a floating-point value within the range [-2, 2].

public float FrequencyPenalty { get; set; }

Property Value

float

The default value is 0 (disabled).