liblloyal 1.0.0
Branched Inference for llama.cpp
Loading...
Searching...
No Matches
lloyal::branch::CachedSamplingParams Struct Reference

Concrete sampling params snapshot for memoization. More...

#include <lloyal/branch.hpp>

Public Member Functions

bool operator== (const CachedSamplingParams &) const =default
 

Public Attributes

float temperature = 0.8f
 
int32_t top_k = 40
 
float top_p = 0.95f
 
float typical_p = 1.0f
 
float min_p = 0.05f
 
float penalty_repeat = 1.0f
 
float penalty_freq = 0.0f
 
float penalty_present = 0.0f
 
int32_t penalty_last_n = 64
 
uint32_t seed = 0
 

Detailed Description

Concrete sampling params snapshot for memoization.

Captures resolved parameter values at chain creation time. Used by set_sampler_params() to skip rebuilding the chain when params haven't changed. Satisfies SamplingParamsLike for re-creation.

Definition at line 215 of file branch.hpp.

Member Function Documentation

◆ operator==()

bool lloyal::branch::CachedSamplingParams::operator== ( const CachedSamplingParams ) const
default

Member Data Documentation

◆ min_p

float lloyal::branch::CachedSamplingParams::min_p = 0.05f

◆ penalty_freq

float lloyal::branch::CachedSamplingParams::penalty_freq = 0.0f

◆ penalty_last_n

int32_t lloyal::branch::CachedSamplingParams::penalty_last_n = 64

◆ penalty_present

float lloyal::branch::CachedSamplingParams::penalty_present = 0.0f

◆ penalty_repeat

float lloyal::branch::CachedSamplingParams::penalty_repeat = 1.0f

◆ seed

uint32_t lloyal::branch::CachedSamplingParams::seed = 0

◆ temperature

float lloyal::branch::CachedSamplingParams::temperature = 0.8f

◆ top_k

int32_t lloyal::branch::CachedSamplingParams::top_k = 40

◆ top_p

float lloyal::branch::CachedSamplingParams::top_p = 0.95f

◆ typical_p

float lloyal::branch::CachedSamplingParams::typical_p = 1.0f

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