mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-25 16:25:43 +00:00
fixed single token bans
This commit is contained in:
parent
a40038d8e6
commit
0df18d2ae2
1 changed files with 1 additions and 1 deletions
|
|
@ -3535,7 +3535,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
|
|||
{
|
||||
continue;
|
||||
}
|
||||
if(tokcount==1 && word.length()<2) //only use banned tokens for single characters
|
||||
if(tokcount==1 && word.length()<12) //only use banned tokens for single characters, we can assume that means less than 12 chars usually
|
||||
{
|
||||
banned_tokens.push_back(word);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue