Skip to content

Commit

Permalink
Version 0.3.6: add Phi and Minichat prompt templates
Browse files Browse the repository at this point in the history
  • Loading branch information
synw committed Dec 27, 2023
1 parent 3cad850 commit b12261e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "modprompt",
"version": "0.3.5",
"version": "0.3.6",
"description": "Prompt templates for language models",
"license": "MIT",
"scripts": {
Expand Down
26 changes: 18 additions & 8 deletions src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ const templates: Record<string, LmTemplate> = {
"prefix": "<s>",
"stop": ["</s>"],
},
"amazon": {
"id": "amazon",
"name": "Amazon",
"user": "<|prompter|>{prompt}</s>",
"assistant": "<|assistant|>",
"afterShot": "\n",
"stop": ["</s>"],
},
"mistral": {
"id": "mistral",
"name": "Mistral",
Expand Down Expand Up @@ -183,6 +175,24 @@ const templates: Record<string, LmTemplate> = {
"user": 2,
"assistant": 1
},
},
"minichat": {
"id": "minichat",
"name": "Minichat",
"user": "<s> [|User|] {prompt} </s>",
"assistant": "[|Assistant|]",
"stop": ["</s>", "[|User|]"],
"afterShot": "\n",
},
"phi": {
"id": "phi",
"name": "Phi",
"user": "Instruct: {prompt}",
"assistant": "Output:",
"linebreaks": {
"user": 1
},
"stop": ["</s>", "Instruct:"]
}
};

Expand Down

0 comments on commit b12261e

Please sign in to comment.