Skip to content

Commit 3d83131

Browse files
authored
Add phi chat prompt template (#1071)
1 parent d9fc75b commit 3d83131

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.env.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ MODELS=`[
206206
"modelUrl": "https://huggingface.co/microsoft/Phi-3-mini-4k-instruct",
207207
"websiteUrl": "https://azure.microsoft.com/en-us/blog/introducing-phi-3-redefining-whats-possible-with-slms/",
208208
"preprompt": "",
209+
"chatPromptTemplate": "{{preprompt}}{{#each messages}}{{#ifUser}}<|user|>\n{{content}}<|end|>\n<|assistant|>\n{{/ifUser}}{{#ifAssistant}}{{content}}<|end|>\n{{/ifAssistant}}{{/each}}",
209210
"parameters": {
210211
"stop": ["<|end|>", "<|endoftext|>", "<|assistant|>"],
211212
"max_new_tokens": 1024,

0 commit comments

Comments
 (0)