8000 llama : fix llama_model_chat_template with template name (LLM_KV with suffix) by CISC · Pull Request #14050 · ggml-org/llama.cpp · GitHub
[go: up one dir, main page]

Skip to content

llama : fix llama_model_chat_template with template name (LLM_KV with suffix) #14050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 7, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix llama_model_chat_template with template name
  • Loading branch information
CISC authored Jun 6, 2025
commit 43c7a0902200be07616036b49dd6aecd10fc7b80
2 changes: 1 addition & 1 deletion src/llama-model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Loading
0