GreedySamplingPipeline
Namespace: LLama.Sampling
A sampling pipeline which always selects the most likely token
1 | |
Inheritance Object → BaseSamplingPipeline → GreedySamplingPipeline
Implements ISamplingPipeline, IDisposable
Properties
Grammar
Grammar to constrain valid tokens
1 | |
Property Value
Constructors
GreedySamplingPipeline()
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
Clone()
1 | |