Skip to content

Commit 93ef595

Browse files
Xarbirusggerganov
andauthored
llama: correct vocab size for logging
Co-authored-by: Georgi Gerganov <[email protected]>
1 parent 9704f0e commit 93ef595

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/llama.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6063,7 +6063,8 @@ static void llm_load_vocab(
60636063

60646064
// read vocab size from metadata
60656065
if (!ml.get_key(LLM_KV_VOCAB_SIZE, vocab.n_vocab, false)) {
6066-
LLAMA_LOG_WARN("%s: there is no vocab_size in metadata, vocab.n_vocab will be set to 0\n", __func__);
6066+
vocab.n_vocab = 0;
6067+
LLAMA_LOG_WARN("%s: there is no vocab_size in metadata, vocab.n_vocab will be set to %u\n", __func__, vocab.n_vocab);
60676068
}
60686069
return;
60696070
}

0 commit comments

Comments
 (0)