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

Mistral Gen 2 template #1133

Open
Vladonai opened this issue Sep 22, 2024 · 2 comments
Open

Mistral Gen 2 template #1133

Vladonai opened this issue Sep 22, 2024 · 2 comments

Comments

@Vladonai
Copy link

Vladonai commented Sep 22, 2024

ver. 1.75.2

User tag:</s>\n[INST]
Assistant tag:[/INST]\n

Maybe the right thing to do
User tag:</s>\n<s>\n[INST]

Then the system prompt will have the form

<s>
[INST]User's Instructions[/INST]
Assistant's response
</s>

That would make sense, I think.

@LostRuins
Copy link
Owner

You'll have to check with @pandora-s-git who is from Mistral and contributed the new templates

@pandora-s-git
Copy link

Hi there, It is important to not include the newlines, if any question regarding the templates please take a look at the following document explaining all the details: https://github.com/mistralai/cookbook/blob/main/concept-deep-dive/tokenization/chat_templates.md

All these white spaces are of extreme importance if we want it to match perfectly with the expected tokens.

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

No branches or pull requests

3 participants