mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
fix top picks bug, lower input anti abuse thresholds (+1 squashed commits)
Squashed commits: [a81d9b21] fix top picks bug, lower input anti abuse thresholds
This commit is contained in:
parent
6a27003a06
commit
bbebc76817
2 changed files with 13 additions and 4 deletions
|
@ -449,6 +449,15 @@ void ContextRewind(std::vector<int> &embd, std::vector<int> ¤t_context_tok
|
||||||
last_n_tokens.resize(last_n_tokens.size() - amount_rewind);
|
last_n_tokens.resize(last_n_tokens.size() - amount_rewind);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(amount_rewind >= top_picks_history.size())
|
||||||
|
{
|
||||||
|
top_picks_history.clear();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
top_picks_history.resize(top_picks_history.size() - amount_rewind);
|
||||||
|
}
|
||||||
|
|
||||||
if (amount_rewind >= current_context_tokens.size())
|
if (amount_rewind >= current_context_tokens.size())
|
||||||
{
|
{
|
||||||
current_context_tokens.clear();
|
current_context_tokens.clear();
|
||||||
|
|
|
@ -26,10 +26,10 @@ bias_max_value = 100.0
|
||||||
logprobs_max = 5
|
logprobs_max = 5
|
||||||
|
|
||||||
# abuse prevention
|
# abuse prevention
|
||||||
stop_token_max = 512
|
stop_token_max = 256
|
||||||
ban_token_max = 1024
|
ban_token_max = 512
|
||||||
logit_bias_max = 1024
|
logit_bias_max = 512
|
||||||
dry_seq_break_max = 256
|
dry_seq_break_max = 128
|
||||||
|
|
||||||
# global vars
|
# global vars
|
||||||
handle = None
|
handle = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue