Table of Contents

Property NgramAllowedLength

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

NgramAllowedLength

Specifies the repeat length that NgramPenaltyMultiplier leaves free of charge.
Repeats up to this many tokens are not penalized at all, which is what keeps common phrases and names usable.
Use a value within the range [1, 64].

public int NgramAllowedLength { get; set; }

Property Value

int

The default value is 2.

Share