llama_sampler_penalties : clamp penalty_last_n to zero
This commit is contained in:
parent
bfe76d4a17
commit
250df0e909
1 changed files with 2 additions and 0 deletions
|
@ -1505,6 +1505,8 @@ struct llama_sampler * llama_sampler_init_penalties(
|
|||
ignore_eos = false;
|
||||
}
|
||||
|
||||
penalty_last_n = std::max(penalty_last_n, 0);
|
||||
|
||||
return new llama_sampler {
|
||||
/* .iface = */ &llama_sampler_penalties_i,
|
||||
/* .ctx = */ new llama_sampler_penalties {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue