Unverified Commit 3d1cb0af authored by Yineng Zhang's avatar Yineng Zhang Committed by GitHub
Browse files

feat: add chat template for internlm2-chat (#802)

parent 7d352b4f
......@@ -436,3 +436,14 @@ register_conv_template(
sep2="</s>",
)
)
# Reference: https://github.com/InternLM/lmdeploy/blob/387bf54b4f124e72aab30ae9755f562e435d3d01/lmdeploy/model.py#L425-L442
register_conv_template(
Conversation(
name="internlm2-chat",
system_template="<|im_start|>system\n{system_message}",
roles=("<|im_start|>user", "<|im_start|>assistant"),
sep="\n",
stop_str=["<|im_end|>", "<|action_end|>"],
)
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment