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

Prompt templates #11

Closed
clarkmcc opened this issue Jul 25, 2023 · 2 comments · Fixed by #12
Closed

Prompt templates #11

clarkmcc opened this issue Jul 25, 2023 · 2 comments · Fixed by #12
Labels
enhancement New feature or request

Comments

@clarkmcc
Copy link
Owner

Right now the backend automatically formats all prompts with

USER: {prompt}\nSYSTEM:

but as I understand it, this needs to be configurable based on the model in order for the model to produce the best responses.

@clarkmcc clarkmcc added the enhancement New feature or request label Jul 25, 2023
@clarkmcc
Copy link
Owner Author

clarkmcc commented Jul 25, 2023

Much better performance on llama 2 chat models when using the proper prompt templates

https://huggingface.co/TheBloke/Llama-2-13B-chat-GPTQ
https://huggingface.co/TheBloke/Llama-2-13B-chat-GPTQ/discussions/5

@clarkmcc
Copy link
Owner Author

LLaMA 2 Chat

Warmup

[INST] <<SYS>>
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe.
<</SYS>>
Please answer questions about the following document. Answer only the questions, don’t give a lot of information that was not requested.[/INST]

Template

[INST]{{prompt}}[/INST]

Vicuna

Warmup

A chat between a human and an assistant.

Template

USER: {{prompt}}
ASSISTANT: 

@clarkmcc clarkmcc linked a pull request Jul 26, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant