Skip to content

< Back


GreedySamplingPipeline

Namespace: LLama.Sampling

A sampling pipeline which always selects the most likely token

1
public class GreedySamplingPipeline : BaseSamplingPipeline, ISamplingPipeline, System.IDisposable

Inheritance ObjectBaseSamplingPipelineGreedySamplingPipeline
Implements ISamplingPipeline, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Properties

Grammar

Grammar to apply to constrain possible tokens

1
public Grammar Grammar { get; set; }

Property Value

Grammar

Constructors

GreedySamplingPipeline()

1
public GreedySamplingPipeline()

Methods

CreateChain(SafeLLamaContextHandle)

1
protected SafeLLamaSamplerChainHandle CreateChain(SafeLLamaContextHandle context)

Parameters

context SafeLLamaContextHandle

Returns

SafeLLamaSamplerChainHandle


< Back