Constructor RepetitionPenalty
- Namespace
- LMKit.TextGeneration.Sampling
- Assembly
- LM-Kit.NET.dll
RepetitionPenalty(int)
Initializes a new instance of the RepetitionPenalty class with the specified lookback window size.
public RepetitionPenalty(int tokenCount)
Parameters
tokenCountintThe number of preceding tokens to consider when applying penalties. A typical value is 64, which corresponds to roughly 250 characters.
RepetitionPenalty()
Initializes a new instance of the RepetitionPenalty class with TokenCount set to 0, effectively disabling all penalties.
public RepetitionPenalty()