Namespace: LLama.Sampling
A sampling pipeline which uses mirostat (v1) to select tokens
public class MirostateSamplingPipeline : BaseSamplingPipeline, ISamplingPipeline, System.IDisposable
Inheritance Object → BaseSamplingPipeline → MirostateSamplingPipeline
Implements ISamplingPipeline, IDisposable
Currently learned mu value
public float Mu { get; }
target entropy
public float Tau { get; set; }
learning rate
public float Eta { get; set; }
Grammar to constrain valid tokens
public SafeLLamaGrammarHandle Grammar { get; set; }
public MirostateSamplingPipeline()
protected void ProcessLogits(SafeLLamaContextHandle ctx, Span<float> logits, ReadOnlySpan<LLamaToken> lastTokens)
logits Span<Single>
lastTokens ReadOnlySpan<LLamaToken>
protected LLamaToken ProcessTokenDataArray(SafeLLamaContextHandle ctx, LLamaTokenDataArray candidates, ReadOnlySpan<LLamaToken> lastTokens)
candidates LLamaTokenDataArray
lastTokens ReadOnlySpan<LLamaToken>
public void Reset()
public ISamplingPipeline Clone()