Skip to content

Commit

Permalink
add empty template
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyouga committed Apr 15, 2024
1 parent cf52911 commit b3ac14f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/llmtuner/data/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,13 @@ def get_template_and_fix_tokenizer(
)


_register_template(
name="empty",
format_user=StringFormatter(slots=["{{content}}"]),
format_assistant=StringFormatter(slots=["{{content}}"]),
)


_register_template(
name="falcon",
format_user=StringFormatter(slots=["User: {{content}}\nFalcon:"]),
Expand Down

0 comments on commit b3ac14f

Please sign in to comment.