Update llama.cpp
trailing ws
This commit is contained in:
parent
fdcd96868a
commit
8f83ca592d
1 changed files with 2 additions and 1 deletions
|
@ -9339,7 +9339,8 @@ static std::string llama_decode_text(const std::string & text) {
|
|||
// does not write null-terminator to buf
|
||||
int llama_token_to_piece(const struct llama_model * model, llama_token token, char * buf, int length) {
|
||||
return llama_token_to_piece(model, token, buf, length, false);
|
||||
}
|
||||
}
|
||||
|
||||
// does not write null-terminator to buf
|
||||
int llama_token_to_piece(const struct llama_model * model, llama_token token, char * buf, int length, bool print_all_types = false) {
|
||||
if (0 <= token && token < llama_n_vocab(model)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue