Table of Contents

Property RepeatPenalty

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

RepeatPenalty

Specifies the degree of penalty assigned to new token candidates based on their frequency in the preceding text.
This parameter helps prevent the model from generating repetitive or monotonous text.
Use a floating-point value within the range [0 (more lenient), 2 (more strict)].

public float RepeatPenalty { get; set; }

Property Value

float

The default value is 1.1.