chat-ui-template / defaults /MODEL_PROMPT_TEMPLATE
nsarrazin's picture
nsarrazin HF staff
add MODEL_PROMPT_TEMPLATE to params
42b97a1
raw
history blame contribute delete
No virus
199 Bytes
<s>{{#each messages}}{{#ifUser}}[INST] {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}} {{content}} [/INST]{{/ifUser}}{{#ifAssistant}}{{content}}</s> {{/ifAssistant}}{{/each}}