rajammanabrolu
commited on
Commit
•
0697d61
1
Parent(s):
203d323
Update tiktoken.py
Browse files- tiktoken.py +1 -1
tiktoken.py
CHANGED
@@ -211,7 +211,7 @@ class TiktokenTokenizerWrapper(PreTrainedTokenizer):
|
|
211 |
"{% endif %}"
|
212 |
'{% if (add_generation_prompt == true) %}'
|
213 |
"{{ '\n' + '<|im_start|>' + 'assistant' + '\n' }}"
|
214 |
-
"{%
|
215 |
"{{ eos_token }}"
|
216 |
"{% endif %}"
|
217 |
'{% endfor %}')
|
|
|
211 |
"{% endif %}"
|
212 |
'{% if (add_generation_prompt == true) %}'
|
213 |
"{{ '\n' + '<|im_start|>' + 'assistant' + '\n' }}"
|
214 |
+
"{% elif (message['role'] == 'assistant') %}"
|
215 |
"{{ eos_token }}"
|
216 |
"{% endif %}"
|
217 |
'{% endfor %}')
|