Skip to content

Commit

Permalink
update templates
Browse files Browse the repository at this point in the history
  • Loading branch information
LZHgrla committed Oct 9, 2023
1 parent 3a08bd6 commit eae7da8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xtuner/utils/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
from mmengine.config import ConfigDict

PROMPT_TEMPLATE = ConfigDict(
default=dict(
SYSTEM='<|System|>:{system}\n',
INSTRUCTION='<|User|>:{input}\n<|Bot|>:'),
internlm_chat=dict(
SYSTEM='<|System|>:{system}\n',
INSTRUCTION='<|User|>:{input}<eoh>\n<|Bot|>:'),
moss_sft=dict(SYSTEM='{system}\n', INSTRUCTION='<|Human|>: {input}<eoh>'),
llama_2_chat=dict(
llama2_chat=dict(
SYSTEM=(
'[INST] <<SYS>>\n You are a helpful, respectful and honest '
'assistant. Always answer as helpfully as possible, while being '
Expand Down

0 comments on commit eae7da8

Please sign in to comment.