From: Galunid Date: Tue, 31 Mar 2026 07:14:01 +0000 (+0200) Subject: common : Disable backend sampling if reasoning budget is enabled (#21209) X-Git-Tag: upstream/0.0.8611~21 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=5ce013cd7e9cd3397150795c57ac477758691fcb;p=pkg%2Fggml%2Fsources%2Fllama.cpp common : Disable backend sampling if reasoning budget is enabled (#21209) --- diff --git a/common/sampling.cpp b/common/sampling.cpp index 5259c5f3c..2f60be194 100644 --- a/common/sampling.cpp +++ b/common/sampling.cpp @@ -383,6 +383,12 @@ struct common_sampler * common_sampler_init(const struct llama_model * model, st params.backend_sampling = false; } + if (rbudget && params.backend_sampling) { + LOG_WRN("%s: backend sampling is not compatible with reasoning budget, disabling\n", __func__); + + params.backend_sampling = false; + } + auto * result = new common_sampler { /* .params = */ params, /* .grmr = */ grmr,