Skip to content

Commit 6d6877d

Browse files
committed
sampling: make nsigma == 0 a no-op
1 parent 1e333d5 commit 6d6877d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-sampling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@ static const char * llama_sampler_top_n_sigma_name(const struct llama_sampler *
17501750
static void llama_sampler_top_n_sigma_apply(struct llama_sampler * smpl, llama_token_data_array * cur_p) {
17511751
const auto * ctx = (llama_sampler_top_n_sigma *) smpl->ctx;
17521752

1753-
if (ctx->n < 0.0f) {
1753+
if (ctx->n <= 0.0f) {
17541754
return;
17551755
}
17561756

0 commit comments

Comments
 (0)