Fm::GenerationOptions
Options that control how the model generates its response.
options = Fm::GenerationOptions.new(temperature: 0.7, max_response_tokens: 500_u32)
options = Fm::GenerationOptions.new(seed: 42_u64) # reproducible output
options = Fm::GenerationOptions.new(sampling_mode: Fm::SamplingMode.random(top: 40))
Constructors
Instance methods
effective_sampling_mode
Returns the effective sampling mode, preferring sampling_mode over sampling.
seed
Seed for reproducible generation. When set, the same prompt with the same seed produces deterministic output.