Skip to content

< Back


ISamplingPipelineExtensions

Namespace: LLama.Sampling

Extension methods for ISamplingPipeline

1
public static class ISamplingPipelineExtensions

Inheritance ObjectISamplingPipelineExtensions
Attributes ExtensionAttribute

Methods

Sample(ISamplingPipeline, LLamaContext, Int32)

Sample a single token from the given context at the given position

1
public static LLamaToken Sample(ISamplingPipeline pipe, LLamaContext ctx, int index)

Parameters

pipe ISamplingPipeline

ctx LLamaContext
The context being sampled from

index Int32
Position to sample logits from

Returns

LLamaToken


< Back