mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 00:54:41 +00:00
added presence penalty into lite ui
This commit is contained in:
parent
b814bb217d
commit
8823e8b06d
3 changed files with 17 additions and 5 deletions
|
@ -398,7 +398,7 @@ void sample_rep_pen(int n_ctx, int rep_pen_range, float rep_pen, float presence_
|
|||
llama_token_data_array * candidates = candidates_p;
|
||||
float penalty = rep_pen;
|
||||
|
||||
if (last_tokens_size == 0 || penalty == 1.0f) {
|
||||
if (last_tokens_size == 0 || (penalty == 1.0f && presence_penalty==0)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue