Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix multiple input chat tempalte #2576

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

fix multiple input chat tempalte #2576

wants to merge 5 commits into from

Conversation

baberabb
Copy link
Contributor

For multiple input tasks the context = [], which made the chat template raise an exception. This PR applies the chat template to the choices as we use them as context in case of multiple input.

footgun: The llama tokenizer adds a system message automatically to all prompts, and if using few-shots the fewshot samples and the ctx are formatted separately which leads to two system messages in the prompt.

@teknium1
Copy link

Worked for me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants