use range neq zero instead of lt (#1388)

This commit is contained in:
Reithan 2025-02-24 02:47:19 -08:00 committed by GitHub
parent 12c501f723
commit 62cd9bb0b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1678,7 +1678,7 @@ const std::vector<samplers> & sampler_order, llama_grammar * grammar, float dyna
sampler_typical(&candidates_p, typical_p, 1);
break;
case KCPP_SAMPLER_TEMP:
if (dynatemp_range>0)
if (dynatemp_range!=0)
{
float dynatemp_min = temp - dynatemp_range;
float dynatemp_max = temp + dynatemp_range;