MirostateSamplingPipeline
Namespace: LLama.Sampling
A sampling pipeline which uses mirostat (v1) to select tokens
1 |
|
Inheritance Object → BaseSamplingPipeline → MirostateSamplingPipeline
Implements ISamplingPipeline, IDisposable
Properties
Mu
Currently learned mu value
1 |
|
Property Value
Tau
target entropy
1 |
|
Property Value
Eta
learning rate
1 |
|
Property Value
Grammar
Grammar to constrain valid tokens
1 |
|
Property Value
Constructors
MirostateSamplingPipeline()
1 |
|
Methods
ProcessLogits(SafeLLamaContextHandle, Span<Single>, ReadOnlySpan<LLamaToken>)
1 |
|
Parameters
logits
Span<Single>
lastTokens
ReadOnlySpan<LLamaToken>
ProcessTokenDataArray(SafeLLamaContextHandle, LLamaTokenDataArray, ReadOnlySpan<LLamaToken>)
1 |
|
Parameters
candidates
LLamaTokenDataArray
lastTokens
ReadOnlySpan<LLamaToken>
Returns
Reset()
1 |
|
Clone()
1 |
|