File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mftcoder_accelerate/src/tokenizer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 42
42
"{% set content = '' %}"
43
43
"{% endif %}"
44
44
"{% if message['role'] == 'user' or message['role'] == 'human' %}"
45
- "{{ content + '<s>user \n ' + message['content'] + '\n ' }}"
45
+ "{{ content + '<s>human \n ' + message['content'] + '\n ' }}"
46
46
"{% elif message['role'] == 'assistant' or message['role'] == 'bot' %}"
47
- "{{ '<s>assistant \n ' + message['content'] + '\n ' + eos_token + '\n '}}"
47
+ "{{ '<s>bot \n ' + message['content'] + '\n ' + eos_token + '\n '}}"
48
48
"{% else %}"
49
49
"{{ raise_exception('Only user/human and assistant/bot roles are supported!') }}"
50
50
"{% endif %}"
51
51
"{% endfor %}"
52
52
"{% if add_generation_prompt %}"
53
- "{{ '<s>assistant \n ' }}"
53
+ "{{ '<s>bot \n ' }}"
54
54
"{% endif %}"
55
55
)
56
56
You can’t perform that action at this time.
0 commit comments