From c6a6f6354b9b1a58af1d5f91102b481ed390d56e Mon Sep 17 00:00:00 2001 From: ddh0 Date: Tue, 30 Dec 2025 13:49:06 -0600 Subject: [PATCH] update `SHARPNESS` constant to `10.0f` --- src/llama-sampling.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/llama-sampling.cpp b/src/llama-sampling.cpp index b3256d0962..34910e56bf 100644 --- a/src/llama-sampling.cpp +++ b/src/llama-sampling.cpp @@ -2358,10 +2358,10 @@ struct llama_sampler_adaptive_p { }; // adaptive probability transformation constants -static constexpr float DISTRIBUTION_WIDTH = 0.3f; -static constexpr float PEAK_LOGIT_VALUE = 5.0f; -static constexpr float SHARPNESS = 4.0f; -static constexpr float INV_WIDTH = 1.0f / DISTRIBUTION_WIDTH; +static constexpr float DISTRIBUTION_WIDTH = 0.3f; +static constexpr float PEAK_LOGIT_VALUE = 5.0f; +static constexpr float SHARPNESS = 10.0f; +static constexpr float INV_WIDTH = 1.0f / DISTRIBUTION_WIDTH; static const char * llama_sampler_adaptive_p_name(const struct llama_sampler * /*smpl*/) { return "adaptive-p";