class
Llama::Sampler::Greedy
- Llama::Sampler::Greedy
- Llama::Sampler::Base
- Reference
- Object
Overview
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
Defined in:
llama/sampler/greedy.crConstructors
-
.new
Creates a new greedy sampler