Table of Contents

Event BeforeTokenSampling

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

Fired just before the runtime samples the next token.

Use this to dynamically adjust sampling parameters or logit bias during generation. Setting Stop requests early stop.

public event EventHandler<BeforeTokenSamplingEventArgs> BeforeTokenSampling

Returns

EventHandler<BeforeTokenSamplingEventArgs>
Fired just before the runtime samples the next token. Use this to dynamically adjust sampling parameters or logit bias during generation. Setting requests early stop.
Implements