summaryrefslogtreecommitdiff
path: root/common/sampling.cpp
diff options
context:
space:
mode:
authorAlexey Parfenov <zxed@alkatrazstudio.net>2024-02-16 11:33:25 +0000
committerGitHub <noreply@github.com>2024-02-16 13:33:25 +0200
commit6dcc02d2444c779c18d49c364c5d5c5728b6b484 (patch)
tree938e984485a0146a61d4254911c308fe83a6c789 /common/sampling.cpp
parent5f5808ca7b7f23a1fa7a77241842bb84a0e55108 (diff)
server : add "samplers" param to control the samplers order (#5494)
Diffstat (limited to 'common/sampling.cpp')
-rw-r--r--common/sampling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/sampling.cpp b/common/sampling.cpp
index a001750d..53013138 100644
--- a/common/sampling.cpp
+++ b/common/sampling.cpp
@@ -139,7 +139,7 @@ static void sampler_queue(
case llama_sampler_type::TYPICAL_P: llama_sample_typical (ctx_main, &cur_p, typical_p, min_keep); break;
case llama_sampler_type::TOP_P : llama_sample_top_p (ctx_main, &cur_p, top_p, min_keep); break;
case llama_sampler_type::MIN_P : llama_sample_min_p (ctx_main, &cur_p, min_p, min_keep); break;
- case llama_sampler_type::TEMP:
+ case llama_sampler_type::TEMPERATURE:
if (dynatemp_range > 0) {
float dynatemp_min = std::max(0.0f, temp - dynatemp_range);
float dynatemp_max = std::max(0.0f, temp + dynatemp_range);