We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e333d5 commit 6d6877dCopy full SHA for 6d6877d
src/llama-sampling.cpp
@@ -1750,7 +1750,7 @@ static const char * llama_sampler_top_n_sigma_name(const struct llama_sampler *
1750
static void llama_sampler_top_n_sigma_apply(struct llama_sampler * smpl, llama_token_data_array * cur_p) {
1751
const auto * ctx = (llama_sampler_top_n_sigma *) smpl->ctx;
1752
1753
- if (ctx->n < 0.0f) {
+ if (ctx->n <= 0.0f) {
1754
return;
1755
}
1756
0 commit comments