compress: Fix missing c_str()
This commit is contained in:
parent
77dd5d05a5
commit
b9a32f464f
1 changed files with 2 additions and 2 deletions
|
@ -73,13 +73,13 @@ std::vector<uint8_t> encode(llama_context *ctx, std::vector<llama_token> inp, gp
|
|||
llama_token candidate = tok.id;
|
||||
if (candidate == inp[index])
|
||||
{
|
||||
LOG("%s", llama_token_to_piece(ctx, candidate));
|
||||
LOG("%s", llama_token_to_piece(ctx, candidate).c_str());
|
||||
match = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(match<0){
|
||||
LOG_ERR("\n couldn't match %s", llama_token_to_piece(ctx, inp[index]));
|
||||
LOG_ERR("\n couldn't match %s", llama_token_to_piece(ctx, inp[index]).c_str());
|
||||
exit(1);
|
||||
}
|
||||
sample_ids.push_back(match);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue