Skip to content

Commit

Permalink
Merge pull request #42 from ymcui/message_fix
Browse files Browse the repository at this point in the history
Fix system prompt and improve messages
  • Loading branch information
ymcui authored Aug 2, 2023
2 parents 8ef2788 + 4fb0189 commit d267eb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/inference/inference_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ def generate_prompt(instruction):

print('='*85)
print("+ 该模式下仅支持单轮问答,无多轮对话能力。\n"
"+ 如要进行多轮对话,请使用llama.cpp或llamachat工具。")
"+ 如要进行多轮对话,请使用llama.cpp或本项目中的gradio_demo.py。")
print('-'*85)
print("+ This mode only supports single-turn QA.\n"
"+ If you want to experience multi-turn dialogue, please use llama.cpp or llamachat.")
"+ If you want to experience multi-turn dialogue, please use llama.cpp or gradio_demo.py.")
print('='*85)

while True:
Expand Down
2 changes: 1 addition & 1 deletion scripts/openai_server_demo/openai_api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

model.eval()

DEFAULT_SYSTEM_PROMPT = """你是一个乐于助人的助手。"""
DEFAULT_SYSTEM_PROMPT = """You are a helpful assistant. 你是一个乐于助人的助手。"""

TEMPLATE_WITH_SYSTEM_PROMPT = (
"[INST] <<SYS>>\n"
Expand Down

0 comments on commit d267eb7

Please sign in to comment.