]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama : remove 'd' from bad special token log (#11212)
authorDaniel Bevenius <redacted>
Mon, 13 Jan 2025 12:38:20 +0000 (13:38 +0100)
committerGitHub <redacted>
Mon, 13 Jan 2025 12:38:20 +0000 (13:38 +0100)
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
```

src/llama-vocab.cpp

index d0fb85cea3127caccec2aefd63fdc91133d355b3..96b74e93a51ee0e8e7aa88ac9142fab031093a82 100644 (file)
@@ -1729,7 +1729,7 @@ void llama_vocab::impl::load(llama_model_loader & ml, const LLM_KV & kv) {
                 continue;
             }
             if (new_id >= id_to_token.size()) {
-                LLAMA_LOG_WARN("%s: bad special token: '%s' = %ud, using default id %d\n",
+                LLAMA_LOG_WARN("%s: bad special token: '%s' = %u, using default id %d\n",
                     __func__, key.c_str(), new_id, id);
             } else {
                 id = new_id;