Llama::Sampler::Xtc
Inherits Llama::Sampler::Base / Reference / Object
XTC sampler
The XTC sampler combines aspects of several sampling methods for improved text generation quality. It was introduced in the Text Generation WebUI project.
Example:
sampler = Llama::Sampler::Xtc.new(0.3, 0.8, 1, 42)
Constructors
Creates a new XTC sampler
Parameters:
- p: Probability threshold
- t: Temperature value
- min_keep: Minimum number of tokens to keep
- seed: Random seed for sampling
Raises:
- Llama::Error if the sampler cannot be created