Skip to content
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

[Fix] Fix gemma 3 conv template stop token #3191

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

CharlieFRuan
Copy link
Contributor

@CharlieFRuan CharlieFRuan commented Mar 27, 2025

Currently for all the gemma3 instruction models, we reused the previous gemma conv template. However, there is a difference in the stop token.

This PR add a new gemma3_instruction conv template, and will manually update the already-uploaded gemma 3 models on HF.

In gemma3, 107 is \n. So currently whenever the model tries to change to a new line, it ends generation.

@CharlieFRuan
Copy link
Contributor Author

cc @MasterJH5574 @joshua-j-hong

@MasterJH5574 MasterJH5574 merged commit e89a484 into mlc-ai:main Mar 27, 2025
2 checks passed
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