You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We added the option to use the tokenizer field to determine the chat template. (PR)
However we couldn't port the ones used in prod because we need to support system prompts. One way we could handle it would be:
Try to apply the chat template
Catch any error being thrown, if one is thrown get rid of the system prompt, inject it directly in the first user message and try to apply the chat template again.
If an error is thrown again well something is wrong with the chat template 😅
Haven't tested it yet with our prod config though.
The text was updated successfully, but these errors were encountered:
We added the option to use the
tokenizer
field to determine the chat template. (PR)However we couldn't port the ones used in prod because we need to support system prompts. One way we could handle it would be:
Haven't tested it yet with our prod config though.
The text was updated successfully, but these errors were encountered: