Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions fastchat/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,22 @@ def get_conv_template(name: str) -> Conversation:
)
)

# Metharme formatting for Pygmalion models
# source: https://huggingface.co/PygmalionAI/pygmalion-2-13b
register_conv_template(
Conversation(
name="metharme",
system_template="<|system|>{system_message}",
system_message="""Enter RP mode. You shall reply to the user while staying
in character. Your responses must be detailed, creative, immersive, and drive the scenario
forward.""",
roles=("<|user|>", "<|model|>"),
sep_style=SeparatorStyle.NO_COLON_SINGLE,
sep="",
stop_str="<|user|>",
)
)


if __name__ == "__main__":
print("Vicuna template:")
Expand Down