nsarrazin HF staff commited on
Commit
118aa57
1 Parent(s): 14f0244

Add openchat to huggingchat config (#573)

Browse files

* Add openchat to huggingchat config

* fix description openchat

* update temp

* update truncate for models to match model capacity

Files changed (2) hide show
  1. .env.template +36 -7
  2. PROMPTS.md +6 -0
.env.template CHANGED
@@ -28,7 +28,7 @@ MODELS=`[
28
  "top_p": 0.95,
29
  "repetition_penalty": 1.2,
30
  "top_k": 50,
31
- "truncate": 1000,
32
  "max_new_tokens": 1024
33
  }
34
  },
@@ -60,8 +60,8 @@ MODELS=`[
60
  "top_p": 0.95,
61
  "repetition_penalty": 1.2,
62
  "top_k": 50,
63
- "truncate": 1000,
64
- "max_new_tokens": 2048
65
  }
66
  },
67
  {
@@ -76,7 +76,7 @@ MODELS=`[
76
  "top_p": 0.95,
77
  "repetition_penalty": 1.2,
78
  "top_k": 50,
79
- "truncate": 1000,
80
  "max_new_tokens": 1024,
81
  "stop": ["User:"]
82
  },
@@ -105,8 +105,8 @@ MODELS=`[
105
  "top_p": 0.95,
106
  "repetition_penalty": 1.2,
107
  "top_k": 50,
108
- "truncate": 1000,
109
- "max_new_tokens": 2048,
110
  "stop": ["</s>"]
111
  },
112
  "promptExamples": [
@@ -121,7 +121,36 @@ MODELS=`[
121
  "prompt": "How do I make a delicious lemon cheesecake?"
122
  }
123
  ]
124
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  ]`
126
 
127
  OLD_MODELS=`[{"name":"bigcode/starcoder"}, {"name":"OpenAssistant/oasst-sft-6-llama-30b-xor"}, {"name":"HuggingFaceH4/zephyr-7b-alpha"}]`
 
28
  "top_p": 0.95,
29
  "repetition_penalty": 1.2,
30
  "top_k": 50,
31
+ "truncate": 3072,
32
  "max_new_tokens": 1024
33
  }
34
  },
 
60
  "top_p": 0.95,
61
  "repetition_penalty": 1.2,
62
  "top_k": 50,
63
+ "truncate": 4096,
64
+ "max_new_tokens": 4096
65
  }
66
  },
67
  {
 
76
  "top_p": 0.95,
77
  "repetition_penalty": 1.2,
78
  "top_k": 50,
79
+ "truncate": 1024,
80
  "max_new_tokens": 1024,
81
  "stop": ["User:"]
82
  },
 
105
  "top_p": 0.95,
106
  "repetition_penalty": 1.2,
107
  "top_k": 50,
108
+ "truncate": 3072,
109
+ "max_new_tokens": 1024,
110
  "stop": ["</s>"]
111
  },
112
  "promptExamples": [
 
121
  "prompt": "How do I make a delicious lemon cheesecake?"
122
  }
123
  ]
124
+ },
125
+ {
126
+ "name": "openchat/openchat_3.5",
127
+ "displayName": "openchat/openchat_3.5",
128
+ "description": "OpenChat 3.5 is the #1 model on MT-Bench, with only 7B parameters.",
129
+ "websiteUrl": "https://huggingface.co/openchat/openchat_3.5",
130
+ "preprompt": "",
131
+ "chatPromptTemplate" : "<s>{{#each messages}}{{#ifUser}}GPT4 Correct User: {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}}{{content}}<|end_of_turn|>GPT4 Correct Assistant:{{/ifUser}}{{#ifAssistant}}{{content}}<|end_of_turn|>{{/ifAssistant}}{{/each}}",
132
+ "parameters": {
133
+ "temperature": 0.6,
134
+ "top_p": 0.95,
135
+ "repetition_penalty": 1.2,
136
+ "top_k": 50,
137
+ "truncate": 6016,
138
+ "max_new_tokens": 2048,
139
+ "stop": ["<|end_of_turn|>"]
140
+ },
141
+ "promptExamples": [
142
+ {
143
+ "title": "Write an email from bullet list",
144
+ "prompt": "As a restaurant owner, write a professional email to the supplier to get these products every week: \n\n- Wine (x10)\n- Eggs (x24)\n- Bread (x12)"
145
+ }, {
146
+ "title": "Code a snake game",
147
+ "prompt": "Code a basic snake game in python, give explanations for each step."
148
+ }, {
149
+ "title": "Assist in a task",
150
+ "prompt": "How do I make a delicious lemon cheesecake?"
151
+ }
152
+ ]
153
+ }
154
  ]`
155
 
156
  OLD_MODELS=`[{"name":"bigcode/starcoder"}, {"name":"OpenAssistant/oasst-sft-6-llama-30b-xor"}, {"name":"HuggingFaceH4/zephyr-7b-alpha"}]`
PROMPTS.md CHANGED
@@ -37,3 +37,9 @@ System: {{preprompt}}\nUser:{{#each messages}}{{#ifUser}}{{content}}\nFalcon:{{/
37
  ```env
38
  {{#each messages}}{{#ifUser}}User: {{content}}{{/ifUser}}<end_of_utterance>\nAssistant: {{#ifAssistant}}{{content}}\n{{/ifAssistant}}{{/each}}
39
  ```
 
 
 
 
 
 
 
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
+ ```