Spaces:
Build error
Build error
Delete PROMPTS.md
Browse files- PROMPTS.md +0 -69
PROMPTS.md
DELETED
|
@@ -1,69 +0,0 @@
|
|
| 1 |
-
# Prompt templates
|
| 2 |
-
|
| 3 |
-
These are the templates used to format the conversation history for different models used in HuggingChat. Set them in your `.env.local` [like so](https://github.com/huggingface/chat-ui#chatprompttemplate).
|
| 4 |
-
|
| 5 |
-
## Llama 2
|
| 6 |
-
|
| 7 |
-
```env
|
| 8 |
-
<s>[INST] <<SYS>>\n{{preprompt}}\n<</SYS>>\n\n{{#each messages}}{{#ifUser}}{{content}} [/INST] {{/ifUser}}{{#ifAssistant}}{{content}} </s><s>[INST] {{/ifAssistant}}{{/each}}
|
| 9 |
-
```
|
| 10 |
-
|
| 11 |
-
## CodeLlama
|
| 12 |
-
|
| 13 |
-
```env
|
| 14 |
-
<s>[INST] <<SYS>>\n{{preprompt}}\n<</SYS>>\n\n{{#each messages}}{{#ifUser}}{{content}} [/INST] {{/ifUser}}{{#ifAssistant}}{{content}} </s><s>[INST] {{/ifAssistant}}{{/each}}
|
| 15 |
-
```
|
| 16 |
-
|
| 17 |
-
## Falcon
|
| 18 |
-
|
| 19 |
-
```env
|
| 20 |
-
System: {{preprompt}}\nUser:{{#each messages}}{{#ifUser}}{{content}}\nFalcon:{{/ifUser}}{{#ifAssistant}}{{content}}\nUser:{{/ifAssistant}}{{/each}}
|
| 21 |
-
```
|
| 22 |
-
|
| 23 |
-
## Mistral
|
| 24 |
-
|
| 25 |
-
```env
|
| 26 |
-
<s>{{#each messages}}{{#ifUser}}[INST] {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}} {{content}} [/INST]{{/ifUser}}{{#ifAssistant}}{{content}}</s> {{/ifAssistant}}{{/each}}
|
| 27 |
-
```
|
| 28 |
-
|
| 29 |
-
## Zephyr
|
| 30 |
-
|
| 31 |
-
```env
|
| 32 |
-
<|system|>\n{{preprompt}}</s>\n{{#each messages}}{{#ifUser}}<|user|>\n{{content}}</s>\n<|assistant|>\n{{/ifUser}}{{#ifAssistant}}{{content}}</s>\n{{/ifAssistant}}{{/each}}
|
| 33 |
-
```
|
| 34 |
-
|
| 35 |
-
## IDEFICS
|
| 36 |
-
|
| 37 |
-
```env
|
| 38 |
-
{{#each messages}}{{#ifUser}}User: {{content}}{{/ifUser}}<end_of_utterance>\nAssistant: {{#ifAssistant}}{{content}}\n{{/ifAssistant}}{{/each}}
|
| 39 |
-
```
|
| 40 |
-
|
| 41 |
-
## OpenChat
|
| 42 |
-
|
| 43 |
-
```env
|
| 44 |
-
<s>{{#each messages}}{{#ifUser}}GPT4 User: {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}}{{content}}<|end_of_turn|>GPT4 Assistant: {{/ifUser}}{{#ifAssistant}}{{content}}<|end_of_turn|>{{/ifAssistant}}{{/each}}
|
| 45 |
-
```
|
| 46 |
-
|
| 47 |
-
## Mixtral
|
| 48 |
-
|
| 49 |
-
```env
|
| 50 |
-
<s> {{#each messages}}{{#ifUser}}[INST]{{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}} {{content}} [/INST]{{/ifUser}}{{#ifAssistant}} {{content}}</s> {{/ifAssistant}}{{/each}}
|
| 51 |
-
```
|
| 52 |
-
|
| 53 |
-
## ChatML
|
| 54 |
-
|
| 55 |
-
```env
|
| 56 |
-
{{#if @root.preprompt}}<|im_start|>system\n{{@root.preprompt}}<|im_end|>\n{{/if}}{{#each messages}}{{#ifUser}}<|im_start|>user\n{{content}}<|im_end|>\n<|im_start|>assistant\n{{/ifUser}}{{#ifAssistant}}{{content}}<|im_end|>\n{{/ifAssistant}}{{/each}}
|
| 57 |
-
```
|
| 58 |
-
|
| 59 |
-
## CodeLlama 70B
|
| 60 |
-
|
| 61 |
-
```env
|
| 62 |
-
<s>{{#if @root.preprompt}}Source: system\n\n {{@root.preprompt}} <step> {{/if}}{{#each messages}}{{#ifUser}}Source: user\n\n {{content}} <step> {{/ifUser}}{{#ifAssistant}}Source: assistant\n\n {{content}} <step> {{/ifAssistant}}{{/each}}Source: assistant\nDestination: user\n\n ``
|
| 63 |
-
```
|
| 64 |
-
|
| 65 |
-
## Gemma
|
| 66 |
-
|
| 67 |
-
```env
|
| 68 |
-
{{#each messages}}{{#ifUser}}<start_of_turn>user\n{{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}}{{content}}<end_of_turn>\n<start_of_turn>model\n{{/ifUser}}{{#ifAssistant}}{{content}}<end_of_turn>\n{{/ifAssistant}}{{/each}}
|
| 69 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|