Fix Hermes chat template validation error
This commit is contained in:
parent
bced78373f
commit
5281ddae64
1 changed files with 1 additions and 1 deletions
|
|
@ -604,7 +604,7 @@ def load_correct_tokenizer(
|
|||
# Ignore mistral type models since they don't have an add_generation_prompt
|
||||
if any(
|
||||
s in str(getattr(tokenizer, "name_or_path", "")).lower()
|
||||
for s in ["mistral", "qwen3guard"]
|
||||
for s in ["mistral", "qwen3guard", "hermes"]
|
||||
):
|
||||
chat_template = old_chat_template
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue