ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
Loading...
Searching...
No Matches
foresthub::core::Options Struct Reference

Model-specific generation options. More...

#include <options.hpp>

Public Member Functions

OptionsWithMaxTokens (int max_tokens)
 Set the maximum number of tokens to generate.
OptionsWithTemperature (float temperature)
 Set the sampling temperature.
OptionsWithTopK (int top_k)
 Set the top-k sampling limit.
OptionsWithTopP (float top_p)
 Set the nucleus sampling cutoff.
OptionsWithFrequencyPenalty (float frequency_penalty)
 Set the frequency penalty.
OptionsWithPresencePenalty (float presence_penalty)
 Set the presence penalty.
OptionsWithSeed (int seed)
 Set the random seed for deterministic output.

Public Attributes

foresthub::Optional< int > max_tokens
 Maximum tokens to generate.
foresthub::Optional< float > temperature
 Randomness (0.0 to 1.0).
foresthub::Optional< int > top_k
 Maximum tokens to consider.
foresthub::Optional< float > top_p
 Nucleus sampling cutoff.
foresthub::Optional< float > frequency_penalty
 Reduces repetition.
foresthub::Optional< float > presence_penalty
 Encourages new concepts.
foresthub::Optional< int > seed
 Seed for deterministic generation.

Detailed Description

Model-specific generation options.


The documentation for this struct was generated from the following file: