minor style fixes

no functional changes
This commit is contained in:
ddh0 2025-12-30 15:47:14 -06:00
parent c6a6f6354b
commit 080749909e
2 changed files with 6 additions and 3 deletions

View File

@ -1334,6 +1334,7 @@ extern "C" {
/// @param seed RNG seed /// @param seed RNG seed
/// ///
/// ref: https://github.com/ggml-org/llama.cpp/pull/17927 /// ref: https://github.com/ggml-org/llama.cpp/pull/17927
///
LLAMA_API struct llama_sampler * llama_sampler_init_adaptive_p( LLAMA_API struct llama_sampler * llama_sampler_init_adaptive_p(
float target, float target,
float decay, float decay,

View File

@ -2346,7 +2346,9 @@ struct llama_sampler * llama_sampler_init_dry_testing(int32_t context_size, floa
// of selected tokens, used to compute an adapted target at each sampling step. // of selected tokens, used to compute an adapted target at each sampling step.
// //
// see llama.h for a full description of the sampler // see llama.h for a full description of the sampler
//
// ref: https://github.com/ggml-org/llama.cpp/pull/17927 // ref: https://github.com/ggml-org/llama.cpp/pull/17927
//
struct llama_sampler_adaptive_p { struct llama_sampler_adaptive_p {
const float target; // target probability (0.0 - 1.0; negative = disabled) const float target; // target probability (0.0 - 1.0; negative = disabled)
const float decay; // EMA decay; history ~= 1/(1-decay) tokens (0.0 - 0.99) const float decay; // EMA decay; history ~= 1/(1-decay) tokens (0.0 - 0.99)