Update tokenizer_utils.py
This commit is contained in:
parent
2e4bca5cbf
commit
f554e663ec
1 changed files with 2 additions and 2 deletions
|
|
@ -586,10 +586,10 @@ pass
|
|||
|
||||
|
||||
def _fix_chat_template(chat_template):
|
||||
endfor = "{% endfor %}"
|
||||
endfor = "{% endif %}"
|
||||
where = chat_template.find(endfor)
|
||||
if where == -1:
|
||||
endfor = "{%- endfor %}"
|
||||
endfor = "{%- endif %}"
|
||||
where = chat_template.find(endfor)
|
||||
if where == -1:
|
||||
return chat_template
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue