Skip to content

Commit

Permalink
Add the Deepseek v2 template
Browse files Browse the repository at this point in the history
  • Loading branch information
synw committed Jun 25, 2024
1 parent aa517a9 commit fe10473
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
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.7.3",
"version": "0.7.4",
"description": "Prompt templates for language models",
"license": "MIT",
"scripts": {
Expand Down
14 changes: 14 additions & 0 deletions src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,20 @@ const templates: Record<string, LmTemplate> = {
},
"stop": ["<|EOT|>", "### Instruction:"]
},
"deepseek2": {
"id": "deepseek2",
"name": "Deepseek v2",
"system": {
"schema": "<|begin▁of▁sentence|>{system}",
},
"user": "User: {prompt}",
"assistant": "Assistant:",
"linebreaks": {
"user": 2,
"system": 2,
},
"stop": ["<|end▁of▁sentence|>"]
},
"opencodeinterpreter": {
"id": "opencodeinterpreter",
"name": "Open code interpreter",
Expand Down

0 comments on commit fe10473

Please sign in to comment.