Llama::Sampler::TempExt
Inherits Llama::Sampler::Base / Reference / Object
Extended Temperature sampler
The Extended Temperature sampler provides more control over temperature sampling with additional parameters for dynamic temperature adjustment. This is based on the paper "Dynamic Temperature for Language Models" (https://arxiv.org/abs/2309.02772).
Example:
# Create a temperature sampler with base temp 0.8, delta 0.5, and exponent 1.0
sampler = Llama::Sampler::TempExt.new(0.8, 0.5, 1.0)