Skip to content

Commit 62cd9bb

Browse files
authored
use range neq zero instead of lt (#1388)
1 parent 12c501f commit 62cd9bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpttype_adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ const std::vector<samplers> & sampler_order, llama_grammar * grammar, float dyna
16781678
sampler_typical(&candidates_p, typical_p, 1);
16791679
break;
16801680
case KCPP_SAMPLER_TEMP:
1681-
if (dynatemp_range>0)
1681+
if (dynatemp_range!=0)
16821682
{
16831683
float dynatemp_min = temp - dynatemp_range;
16841684
float dynatemp_max = temp + dynatemp_range;

0 commit comments

Comments
 (0)