Update src/llama.cpp
This commit is contained in:
parent
21ee3806e4
commit
95e433ceb5
1 changed files with 1 additions and 1 deletions
|
@ -6455,7 +6455,7 @@ static void llm_load_vocab(
|
|||
} else if (vocab.type == LLAMA_VOCAB_TYPE_WPM) {
|
||||
vocab.linefeed_id = vocab.special_pad_id;
|
||||
} else if (vocab.type == LLAMA_VOCAB_TYPE_RWKV) {
|
||||
const std::vector<int> ids = llama_tokenize_internal(model.vocab, "\n", false);
|
||||
const std::vector<int> ids = llama_tokenize_internal(vocab, "\n", false);
|
||||
GGML_ASSERT(!ids.empty() && "model vocab missing newline token");
|
||||
vocab.linefeed_id = ids[0];
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue