refactor constants

This commit is contained in:
hiyouga
2023-11-10 14:16:10 +08:00
parent 415bca900e
commit 3697a3dc9a
6 changed files with 243 additions and 83 deletions

View File

@@ -447,6 +447,25 @@ register_template(
)
r"""
Supports: https://huggingface.co/tiiuae/falcon-180B-chat
"""
register_template(
name="falcon",
prefix=[
"{{system}}"
],
prompt=[
"User: {{query}}\nFalcon:"
],
system="",
sep=[
"\n"
],
efficient_eos=True
)
r"""
Supports: https://huggingface.co/internlm/internlm-chat-7b
https://huggingface.co/internlm/internlm-chat-20b