summaryrefslogtreecommitdiff
path: root/llama.cpp
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-10-17 22:34:26 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-10-17 22:34:26 +0300
commite1675d133c31e1c8de2f06be7164e12c0ba6cf2c (patch)
treeede4492217015d91c1091283e7c6005375c78c7d /llama.cpp
parent8402566a7c436bfbde8e7b0461faee50298106a0 (diff)
llama : avoid fprintf in favor of LLAMA_LOG (#3538)
Diffstat (limited to 'llama.cpp')
-rw-r--r--llama.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llama.cpp b/llama.cpp
index 82b7638a..37df8877 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -2327,13 +2327,13 @@ static void llm_load_vocab(
}
if (special_tokens_definition_mismatch || special_tokens_count_from_verification != special_tokens_count_by_type) {
- fprintf(stderr, "%s: warning: Mismatch in special tokens definition ( %u/%zu vs %u/%zu ).\n",
+ LLAMA_LOG_WARN("%s: mismatch in special tokens definition ( %u/%zu vs %u/%zu ).\n",
__func__,
special_tokens_count_from_verification, vocab.id_to_token.size(),
special_tokens_count_by_type, vocab.id_to_token.size()
);
} else {
- fprintf(stderr, "%s: Special tokens definition check successful ( %u/%zu ).\n",
+ LLAMA_LOG_INFO("%s: special tokens definition check successful ( %u/%zu ).\n",
__func__,
special_tokens_count_from_verification, vocab.id_to_token.size()
);