Update src/llama.cpp

This commit is contained in:
Georgi Gerganov 2024-09-25 16:19:49 +03:00 committed by GitHub
parent 21ee3806e4
commit 95e433ceb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {