nsarrazin HF staff commited on
Commit
3d83131
1 Parent(s): d9fc75b

Add phi chat prompt template (#1071)

Browse files
Files changed (1) hide show
  1. .env.template +1 -0
.env.template CHANGED
@@ -206,6 +206,7 @@ MODELS=`[
206
  "modelUrl": "https://huggingface.co/microsoft/Phi-3-mini-4k-instruct",
207
  "websiteUrl": "https://azure.microsoft.com/en-us/blog/introducing-phi-3-redefining-whats-possible-with-slms/",
208
  "preprompt": "",
 
209
  "parameters": {
210
  "stop": ["<|end|>", "<|endoftext|>", "<|assistant|>"],
211
  "max_new_tokens": 1024,
 
206
  "modelUrl": "https://huggingface.co/microsoft/Phi-3-mini-4k-instruct",
207
  "websiteUrl": "https://azure.microsoft.com/en-us/blog/introducing-phi-3-redefining-whats-possible-with-slms/",
208
  "preprompt": "",
209
+ "chatPromptTemplate": "{{preprompt}}{{#each messages}}{{#ifUser}}<|user|>\n{{content}}<|end|>\n<|assistant|>\n{{/ifUser}}{{#ifAssistant}}{{content}}<|end|>\n{{/ifAssistant}}{{/each}}",
210
  "parameters": {
211
  "stop": ["<|end|>", "<|endoftext|>", "<|assistant|>"],
212
  "max_new_tokens": 1024,