Skip to content

Commit

Permalink
Add the Gemma template
Browse files Browse the repository at this point in the history
  • Loading branch information
synw committed Aug 1, 2024
1 parent fe10473 commit 811c46b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,14 @@ const templates: Record<string, LmTemplate> = {
"schema": "<<SYS>>\n{system_prompt}\n<</SYS>>",
},
},
"gemma": {
"id": "gemma",
"name": "Gemma",
"user": "<start_of_turn>user\n{prompt}",
"assistant": "<end_of_turn>\n<start_of_turn>model",
"stop": ["<end_of_turn>"],
"afterShot": "\n"
},
};

export { templates }

0 comments on commit 811c46b

Please sign in to comment.