Skip to content

Commit

Permalink
aquila bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jstzwj committed Apr 29, 2024
1 parent db21902 commit 68e0a5d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 0 additions & 3 deletions chatproto/conversation/models/aquila.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
system_message="A chat between a curious human and an artificial intelligence assistant. "
"The assistant gives helpful, detailed, and polite answers to the human's questions.\n\n",
roles=("### Human: ", "### Assistant: "),
offset=0,
sep_style=SeparatorStyle.NO_COLON_TWO,
sep="\n",
sep2="</s>",
Expand All @@ -34,7 +33,6 @@
system_message="A chat between a curious human and an artificial intelligence assistant. "
"The assistant gives helpful, detailed, and polite answers to the human's questions.",
roles=("Human", "Assistant"),
offset=0,
sep_style=SeparatorStyle.ADD_COLON_TWO,
sep="###",
sep2="</s>",
Expand All @@ -47,7 +45,6 @@
aquila_v1 = ConversationSettings(
name="aquila-v1",
roles=("<|startofpiece|>", "<|endofpiece|>"),
offset=0,
sep_style=SeparatorStyle.NO_COLON_TWO,
sep="",
sep2="</s>",
Expand Down
14 changes: 14 additions & 0 deletions chatproto/conversation/models/gemma.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from ..settings import ConversationSettings, SeparatorStyle

# Gemma
# reference: https://huggingface.co/google/gemma-7b-it?text=%3Cstart_of_turn%3Euser%0AHow+does+the+brain+work%3F%3Cend_of_turn%3E%0A%3Cstart_of_turn%3Emodel
gemma = ConversationSettings(
name="gemma",
roles=("<start_of_turn>user", "<start_of_turn>model"),
system_template="<bos>{system_message}",
sep_style=SeparatorStyle.ADD_NEW_LINE_SINGLE,
sep="<end_of_turn>\n",
stop_str="<end_of_turn>",
)

# FIXME: <bos>

0 comments on commit 68e0a5d

Please sign in to comment.