Skip to content

Commit

Permalink
update prompt_template_example
Browse files Browse the repository at this point in the history
Signed-off-by: Shengyang Sun <[email protected]>
  • Loading branch information
shengyangs committed Aug 16, 2024
1 parent d0ca4ab commit b0659b3
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ def get_prompt_template_example(special_tokens):
source = {
'system': '{system message}',
'conversations': [
{'from': 'User', 'value': '{turn 1 user message}', 'label': None},
{'from': 'Assistant', 'value': '{turn 1 assistant message}', 'label': '{turn 1 assistant label}'},
{'from': 'User', 'value': '{turn 2 user message}', 'label': None},
{'from': 'Assistant', 'value': '{turn 2 assistant message}', 'label': '{turn 2 assistant label}'},
{'from': '{user role}', 'value': '{turn 1 user message}', 'label': None},
{'from': '{assistant role}', 'value': '{turn 1 assistant message}', 'label': '{turn 1 assistant label}'},
{'from': '{user role}', 'value': '{turn 2 user message}', 'label': None},
{'from': '{assistant role}', 'value': '{turn 2 assistant message}', 'label': '{turn 2 assistant label}'},
],
"mask": "User",
"mask": "{user role}",
"type": "VALUE_TO_TEXT",
"system_token": '{system token}',
}
_, conversation, _, _ = _get_header_conversation_type_mask_role(source, special_tokens)
return conversation
Expand Down

0 comments on commit b0659b3

Please sign in to comment.