Table of Contents

Property TokenCount

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

TokenCount

Specifies the length of preceding text to be considered for penalties, in terms of token count.
One token is roughly equivalent to 4 characters in standard English text.
Use a value within the range [0, 2048].
Use 0 to disable any penalty.

public int TokenCount { get; set; }

Property Value

int

The default value is 64.