mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 00:54:41 +00:00
token count includes ids
This commit is contained in:
parent
0ca814e544
commit
6570a2005b
5 changed files with 26 additions and 9 deletions
|
@ -1390,7 +1390,7 @@ bool gpttype_generate_abort()
|
|||
return true;
|
||||
}
|
||||
|
||||
int gpttype_token_count(const std::string & input)
|
||||
std::vector<int> gpttype_get_token_arr(const std::string & input)
|
||||
{
|
||||
if(debugmode==1)
|
||||
{
|
||||
|
@ -1403,7 +1403,7 @@ int gpttype_token_count(const std::string & input)
|
|||
{
|
||||
printf("\nTokens Counted: %d\n",tokcount);
|
||||
}
|
||||
return tokcount;
|
||||
return toks;
|
||||
}
|
||||
|
||||
const std::string & gpttype_get_pending_output()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue