-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
[bug] chatglm3-6b No corresponding template chat-template #2051
Comments
you can specify the chat template on start up with |
I am using the latest version 0.2.5, but chatglm3 has changed the chat template https://github.com/THUDM/ChatGLM3/blob/main/PROMPT.md |
I've been looking at this template for a long time, but I don't understand how to write it. Could you please help me write a template that supports chatglm3? |
you can modify the .jinjia file like this
and start up with --chat-template Remember to set the stop token This works fine for my api serve. |
thank you! ti is useful for me, and could you please provide a chatglm2 template ?, cause the jinjia is hard to understand and use. thank you! |
As mentioned in the original post, this one should work for chatglm2: https://github.com/vllm-project/vllm/blob/main/examples/template_chatml.jinja I'm closing this issue since @ZhiWenMo has already provided the template for chatglm3, which answers the original question. |
https://github.com/vllm-project/vllm/blob/main/examples/template_chatml.jinja
This template is suitable for chatglm2, but not suitable for chatglm3. The new template address document is. https://github.com/THUDM/ChatGLM3/blob/main/PROMPT.md
The text was updated successfully, but these errors were encountered: