Table of Contents

Property TokenCount

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

TokenCount

Specifies the lookback window size, in tokens, shared by every repetition control.
Only tokens within this window are considered.
One token is roughly equivalent to 4 characters in standard English text.
Use a value within the range [0, 2048].
Use 0 to disable all repetition controls.

public int TokenCount { get; set; }

Property Value

int

The default value is 0 (disabled).

Share