Fix additional settings related to inv dynatemp (#1391)

* update additional dynatemp settings

* Label fix

* remove min restrict

* 1 more

* update to match lite
This commit is contained in:
Reithan
2025-02-28 03:02:22 -08:00
committed by GitHub
parent b0b067cd96
commit 02971ca323
4 changed files with 11 additions and 15 deletions
+1 -1
View File
@@ -1640,7 +1640,7 @@ const std::vector<samplers> & sampler_order, llama_grammar * grammar, float dyna
else if (nsigma > 0.0f)
{
sample_top_k(&candidates_p, top_k);
if (dynatemp_range > 0) {
if (dynatemp_range != 0) {
float dynatemp_min = temp - dynatemp_range;
float dynatemp_max = temp + dynatemp_range;
//do not allow negative values