Prompt template wrong in the description?

#7
by h3ndrik - opened

What's with the Prompt template? Why is it different from what Meta suggests?

I think it's the correct one in https://huggingface.co/TheBloke/Llama-2-13B-chat-GPTQ which is the GPTQ version of this very model. So something is up and a correction needs to be made.

This appears to be a definitive post about it: https://huggingface.co/blog/llama2#how-to-prompt-llama-2

It suggests:

<s>[INST] <<SYS>>
{{ system_prompt }}
<</SYS>>

{{ user_message }} [/INST]

Eg:

<s>[INST] <<SYS>>
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe.  Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.

If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
<</SYS>>

There's a llama in my garden 😱 What should I do? [/INST]

Extended chat:

<s>[INST] <<SYS>>
{{ system_prompt }}
<</SYS>>

{{ user_msg_1 }} [/INST] {{ model_answer_1 }} </s><s>[INST] {{ user_msg_2 }} [/INST]

Sign up or log in to comment