Thanks to visit codestin.com
Credit goes to github.com

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

Conversation

CISC
Copy link
Collaborator

@CISC CISC commented Jun 6, 2025

Suffix was never applied, and in the case of llama_model_chat_template arch was appended instead of suffix.

@CISC CISC requested a review from ngxson June 6, 2025 11:43
@CISC CISC changed the title llama : fix LLM_KV with suffix llama : fix llama_model_chat_template with template name (LLM_KV with suffix) Jun 6, 2025
Copy link
Collaborator

@ngxson ngxson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This particular case looks good to me.

However, I'm just wondering if this suffix is currently used by other KV metadata. For example, the old logic will work with something like %s.key.%s (which will be replaced by arch.key.suffix), but will now breaks. So I think we should still verify this before merging

@CISC
Copy link
Collaborator Author

CISC commented Jun 7, 2025

I've grepped the sources and there doesn't appear to be any other usage of LLM_KV with suffix, and there are no other keys with a %s for anything other than arch, so I think it's safe.

@CISC CISC merged commit 0974ad7 into master Jun 7, 2025
45 checks passed
@CISC CISC deleted the cisc/fix-llm-kv-suffix branch June 7, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants