class

Llama::Sampler::Greedy

Inherits Llama::Sampler::Base / Reference / Object

The Greedy sampler always selects the token with the highest probability. This is the simplest sampling method and produces deterministic output.

Example:

sampler = Llama::Sampler::Greedy.new

Constructors

new

Creates a new greedy sampler

Raises:

  • Llama::Error if the sampler cannot be created
Source