Skip to content

Commit 8f70fc3

Browse files
authored
llama : remove 'd' from bad special token log (#11212)
This commit removes the 'd' from the log message in llama-vocab.cpp when logging a bad special token. The motivation for this is that currently the output can look something like the following: ```console load: bad special token: 'tokenizer.ggml.image_token_id' = 128256d, using default id -1 ```
1 parent 1244cdc commit 8f70fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-vocab.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,7 @@ void llama_vocab::impl::load(llama_model_loader & ml, const LLM_KV & kv) {
17291729
continue;
17301730
}
17311731
if (new_id >= id_to_token.size()) {
1732-
LLAMA_LOG_WARN("%s: bad special token: '%s' = %ud, using default id %d\n",
1732+
LLAMA_LOG_WARN("%s: bad special token: '%s' = %u, using default id %d\n",
17331733
__func__, key.c_str(), new_id, id);
17341734
} else {
17351735
id = new_id;

0 commit comments

Comments
 (0)