Skip to content

Commit

Permalink
Fix PR for recent change
Browse files Browse the repository at this point in the history
  • Loading branch information
goerch committed Sep 29, 2023
1 parent c09330e commit 9cfb714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7667,7 +7667,7 @@ 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) {
if (0 <= token && token < llama_model_n_vocab(model)) {
if (0 <= token && token < llama_n_vocab(model)) {
switch (llama_vocab_get_type(model->vocab)) {
case LLAMA_VOCAB_TYPE_SPM: {
if (llama_is_normal_token(model->vocab, token)) {
Expand Down

0 comments on commit 9cfb714

Please sign in to comment.