Chat template fix
What this PR does
- Adds a try catch when applying chat template as some models do not support system prompt in their templates.
Unfortunately we cannot have two user messages in a row. What we would need to do is to prepend the description to the first user message.
hi @haileyschoelkopf ! Coming back to this, I was running some tests and it seems like mistral fixed their tokenizer (they now support system prompts). As this fix was made for them I think we can remove it and if a model's tokenizer does not work, it might be up to them to support standard templating.
Hi! Any progress on this? gemma-2-9b-it still requires code editing to evaluate with chat template.
merged in #2475
@baberabb I'm still hitting this error using version 0.4.7 , which came out in December 2024 and should have included your PR from November 2024, I believe?
https://github.com/EleutherAI/lm-evaluation-harness/issues/2069#issuecomment-2994459740
Can you please let me know what I should be doing?