Fix Hermes chat template validation error

This commit is contained in:
Br1an67 2026-03-12 09:16:07 +00:00 committed by Daniel Han
commit 5281ddae64

View file

@ -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