mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 01:24:36 +00:00
llama : fix llama_model_chat_template with template name (LLM_KV with suffix) (#14050)
This commit is contained in:
parent
745aa5319b
commit
0974ad7a7c
3 changed files with 9 additions and 5 deletions
|
@ -13788,7 +13788,7 @@ uint64_t llama_model_size(const llama_model * model) {
|
|||
}
|
||||
|
||||
const char * llama_model_chat_template(const llama_model * model, const char * name) {
|
||||
const auto key = name ? LLM_KV(model->arch, name)(LLM_KV_TOKENIZER_CHAT_TEMPLATE_N)
|
||||
const auto key = name ? LLM_KV(model->arch, name)(LLM_KV_TOKENIZER_CHAT_TEMPLATE)
|
||||
: LLM_KV(model->arch)(LLM_KV_TOKENIZER_CHAT_TEMPLATE);
|
||||
const auto & it = model->gguf_kv.find(key);
|
||||
if (it == model->gguf_kv.end()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue