ISamplingPipelineExtensions
Namespace: LLama.Sampling
Extensions methods for ISamplingPipeline
1 | |
Inheritance Object → ISamplingPipelineExtensions
Methods
Sample(ISamplingPipeline, SafeLLamaContextHandle, Span<Single>, List<LLamaToken>)
Sample a single token from the given logits
1 | |
Parameters
pipeline ISamplingPipeline
ctx SafeLLamaContextHandle
The context being sampled from
logits Span<Single>
The logits produced by the model
lastTokens List<LLamaToken>
A list of tokens recently returned by the model