Table of Contents

Property SamplersSequence

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

SamplersSequence

Specifies an enumeration for RandomSamplers that outlines a customizable sequence of sampler algorithms.
This enumeration facilitates the dynamic arrangement of various sampling strategies, enabling precise control over the random sampling process.

public IReadOnlyList<RandomSampling.RandomSamplers> SamplersSequence { get; set; }

Property Value

IReadOnlyList<RandomSampling.RandomSamplers>

The sequence is initially set to a default order: TopK, which prioritizes the highest-ranking predictions;
TailFree, designed to mitigate the long-tail effect;
LocallyTypical, focusing on contextually relevant selections;
TopP, filtering predictions to cumulate a specific probability threshold;
MinP, excluding predictions below a defined probability;
and Temperature, adjusting selection randomness through temperature scaling.
Users can customize this sequence according to their specific sampling requirements.