mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 00:54:41 +00:00
added a kobold API compatible implementation of stopping sequences
This commit is contained in:
parent
8bf2e50a11
commit
525184930d
7 changed files with 79 additions and 11 deletions
|
@ -27,7 +27,21 @@ double timer_check()
|
|||
return time_taken;
|
||||
}
|
||||
|
||||
|
||||
void print_vec(std::vector<std::string> &embd)
|
||||
{
|
||||
std::cout << "[";
|
||||
bool first = true;
|
||||
for (auto i : embd)
|
||||
{
|
||||
if (!first)
|
||||
{
|
||||
std::cout << ',';
|
||||
}
|
||||
first = false;
|
||||
std::cout << i;
|
||||
}
|
||||
std::cout << "]\n";
|
||||
}
|
||||
void print_tok_vec(std::vector<int> &embd)
|
||||
{
|
||||
std::cout << "[";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue