Skip to content
Snippets Groups Projects
Commit 2310b3bc authored by bys0318's avatar bys0318
Browse files

support chatglm3

parent d5e67a53
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,9 @@ def parse_args(args=None):
# This is the customized building prompt for chat models
def build_chat(tokenizer, prompt, model_name):
if "chatglm" in model_name:
if "chatglm3" in model_name:
prompt = tokenizer.build_chat_input(prompt)
elif "chatglm" in model_name:
prompt = tokenizer.build_prompt(prompt)
elif "longchat" in model_name or "vicuna" in model_name:
from fastchat.model import get_conversation_template
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment