mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	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
```
			
			
This commit is contained in:
		| @@ -1729,7 +1729,7 @@ void llama_vocab::impl::load(llama_model_loader & ml, const LLM_KV & kv) { | |||||||
|                 continue; |                 continue; | ||||||
|             } |             } | ||||||
|             if (new_id >= id_to_token.size()) { |             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); |                     __func__, key.c_str(), new_id, id); | ||||||
|             } else { |             } else { | ||||||
|                 id = new_id; |                 id = new_id; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Bevenius
					Daniel Bevenius