Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Br1an67
5281ddae64 Fix Hermes chat template validation error 2026-03-12 09:16:07 +00:00

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