Update src/llama.cpp

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

View file

@ -6459,7 +6459,7 @@ static void llm_load_vocab(
GGML_ASSERT(!ids.empty() && "model vocab missing newline token");
vocab.linefeed_id = ids[0];
} else {
const std::vector<int> ids = llama_tokenize_internal(model.vocab, "\xC4\x8A", false); // U+010A
const std::vector<int> ids = llama_tokenize_internal(vocab, "\xC4\x8A", false); // U+010A
GGML_ASSERT(!ids.empty() && "model vocab missing newline token");
vocab.linefeed_id = ids[0];
}