mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-17 08:19:49 +02: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:
@@ -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);
|
||||
}
|
||||
|
||||
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())
|
||||
{
|
||||
current_context_tokens.clear();
|
||||
|
||||
Reference in New Issue
Block a user