Table of Contents

Property RepeatPenalty

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

RepeatPenalty

Specifies a multiplicative penalty applied to any token that has already appeared in the lookback window.
Unlike FrequencyPenalty, this penalty is applied uniformly regardless of how many times the token occurred.
Values greater than 1 discourage repetition; a value of 1 disables this penalty.
Use a floating-point value within the range [0, 2].

public float RepeatPenalty { get; set; }

Property Value

float

The default value is 1.1.