Chatbot: fix chatml template

This commit is contained in:
turboderp
2024-07-03 22:34:46 +02:00
parent 95e093a2b2
commit e56cfe2219

View File

@@ -229,6 +229,7 @@ class PromptFormat_chatml(PromptFormat):
def stop_conditions(self, tokenizer):
return \
[tokenizer.eos_token_id,
tokenizer.single_id("<|im_end|>"),
"""<|im_end|>"""]
def encoding_options(self):