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

[REQUEST] Add Llama 3 Instruct chat template #1087

Open
ddh0 opened this issue Apr 30, 2024 · 2 comments
Open

[REQUEST] Add Llama 3 Instruct chat template #1087

ddh0 opened this issue Apr 30, 2024 · 2 comments

Comments

@ddh0
Copy link

ddh0 commented Apr 30, 2024

Hi!

I've just started using Chat UI and I think it would be helpful to have the Llama 3 Instruct chat template + system prompt listed in PROMPTS.md so it can be easily adopted by users. I would open a PR but I don't understand how the formatting works. :)

Thank you!

@acoppola16
Copy link

I'm unable to fork the repo and push a commit ATM but until then @ddh0 give this a try.

<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\n{{preprompt}}<|eot_id|>{{#each messages}}{{#ifUser}}<|start_header_id|>user<|end_header_id|>\n\n{{content}}<|eot_id|><|start_header_id|>assistant<|end_header_id|>{{/ifUser}}{{#ifAssistant}}{{content}}<|eot_id|>{{/ifAssistant}}{{/each}}

@Cucunnber
Copy link

I'm unable to fork the repo and push a commit ATM but until then @ddh0 give this a try.

<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\n{{preprompt}}<|eot_id|>{{#each messages}}{{#ifUser}}<|start_header_id|>user<|end_header_id|>\n\n{{content}}<|eot_id|><|start_header_id|>assistant<|end_header_id|>{{/ifUser}}{{#ifAssistant}}{{content}}<|eot_id|>{{/ifAssistant}}{{/each}}

Thx, it's useful.

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