add phi-3 prompt template

This commit is contained in:
Yazan Agha-Schrader 2024-05-29 05:28:52 +02:00
parent efbbc95321
commit be675948d4

View file

@ -6,6 +6,9 @@ export const promptFormats = {
char: "ASSISTANT",
user: "USER"
},
"alpaca": {
template: `{{prompt}}
@ -17,6 +20,9 @@ export const promptFormats = {
char: "Response",
user: "Instruction"
},
"bakllava": {
template: `{{history}}{{char}}:`,
historyTemplate: `{{name}}: {{message}}
@ -24,6 +30,9 @@ export const promptFormats = {
char: "ASSISTANT",
user: "USER"
},
"chatml": {
template: `<|im_start|>system
{{prompt}}<|im_end|>
@ -34,6 +43,9 @@ historyTemplate: `<|im_start|>{{user}}
char: "assistant",
user: "user"
},
"codeCherryPop": {
template: `{{prompt}}
@ -45,6 +57,9 @@ user: "user"
char: "Response",
user: "Instruction"
},
"deepseekCoder": {
template: `{{prompt}}
{{history}}
@ -54,6 +69,9 @@ user: "user"
char: "Response",
user: "Instruction"
},
"dolphinMistral": {
template: `<|im_start|>system
{{prompt}}<|im_end|>
@ -64,6 +82,9 @@ user: "user"
char: "assistant",
user: "user"
},
"evolvedSeeker": {
template: `<|im_start|>system
{{prompt}}<|im_end|>
@ -74,6 +95,9 @@ user: "user"
char: "assistant",
user: "user"
},
"goliath120b": {
template: `{{prompt}}
@ -83,6 +107,9 @@ user: "user"
char: "ASSISTANT",
user: "USER"
},
"jordan": {
template: `{{prompt}}
@ -92,6 +119,9 @@ user: "user"
char: "ASSISTANT",
user: "USER"
},
"llama2": {
template: `<s>[INST] <<SYS>>
{{prompt}}
@ -102,6 +132,9 @@ user: "user"
char: "llama",
user: "user"
},
"llava": {
template: `{{history}}{{char}}:`,
historyTemplate: `{{name}}: {{message}}
@ -109,6 +142,9 @@ user: "user"
char: "ASSISTANT",
user: "USER"
},
"leoHessianai": {
template: `<|im_start|>system
{{prompt}}<|im_end|>
@ -119,12 +155,18 @@ user: "user"
char: "assistant",
user: "user"
},
"leoMistral": {
template: `{{prompt}} {{history}} {{char}}`,
historyTemplate: `{{name}}: {{message}}`,
char: "ASSISTANT",
user: "USER"
},
"marx": {
template: `{{history}}
{{char}}:`,
@ -132,6 +174,9 @@ user: "user"
char: "ASSISTANT",
user: "USER"
},
"med42": {
template: `<|system|>: {{prompt}}
{{history}}
@ -140,6 +185,9 @@ user: "user"
char: "assistant",
user: "prompter"
},
"metaMath": {
template: `{{prompt}}
@ -151,12 +199,18 @@ user: "user"
char: "Response",
user: "Instruction"
},
"mistralInstruct": {
template: `<s>[INST] ({{prompt}}) {{history}} {{char}}</s>`,
historyTemplate: `{{name}} {{message}}`,
char: "[/INST] Assistant:",
user: "[INST] User:"
},
"mistralOpenOrca": {
template: `<|im_start|>system
{{prompt}}<|im_end|>
@ -167,6 +221,9 @@ user: "user"
char: "assistant",
user: "user"
},
"mythomax": {
template: `{{prompt}}
@ -178,6 +235,9 @@ user: "user"
char: "Response",
user: "Instruction"
},
"neuralchat": {
template: `### System:
{{prompt}}
@ -188,6 +248,9 @@ user: "user"
char: "Assistant",
user: "User"
},
"nousCapybara": {
template: `{{history}}
{{char}}`,
@ -196,6 +259,9 @@ user: "user"
char: "ASSISTANT",
user: "USER"
},
"nousHermes": {
template: `### Instruction: {{prompt}}
{{history}}
@ -205,12 +271,18 @@ user: "user"
char: "Response",
user: "Input"
},
"openChat": {
template: `{{history}}{{char}}`,
historyTemplate: `GPT4 {{user}}: {{message}}<|end_of_turn|>`,
char: "Assistant",
user: "User"
},
"openhermes2Mistral": {
template: `<|im_start|>system
{{prompt}}<|im_end|>
@ -221,6 +293,9 @@ user: "user"
char: "assistant",
user: "user"
},
"orcamini": {
template: `{{prompt}}
@ -232,6 +307,21 @@ user: "user"
char: "Response",
user: "Instruction"
},
"phi3": {
template: `{{history}}
{{char}}
`,
historyTemplate: `{{user}}
{{message}}<|end|>`,
char: "<|assistant|>",
user: "<|user|>"
},
"sauerkraut": {
template: `{{prompt}}
{{history}}
@ -240,6 +330,9 @@ user: "user"
char: "Assistant",
user: "User"
},
"samantha": {
template: `{{prompt}}
@ -249,6 +342,9 @@ user: "user"
char: "ASSISTANT",
user: "USER"
},
"samanthaMistral": {
template: `<|im_start|>system
{{prompt}}<|im_end|>
@ -259,6 +355,9 @@ user: "user"
char: "assistant",
user: "user"
},
"scarlett": {
template: `{{prompt}}
@ -268,18 +367,27 @@ user: "user"
char: "ASSISTANT",
user: "USER"
},
"starlingLM": {
template: `{{history}}{{char}}`,
historyTemplate: `GPT4 Correct {{user}}: {{message}}<|end_of_turn|>`,
char: "Assistant",
user: "User"
},
"starlingLMCode": {
template: `{{history}}{{char}}`,
historyTemplate: `Code {{user}}: {{message}}<|end_of_turn|>`,
char: "Assistant",
user: "User"
},
"sydney": {
template: `{{prompt}}
@ -291,6 +399,9 @@ user: "user"
char: "Response",
user: "Instruction"
},
"synthia": {
template: `SYSTEM: {{prompt}}
{{history}}
@ -299,6 +410,9 @@ user: "user"
char: "ASSISTANT",
user: "USER"
},
"tess": {
template: `SYSTEM: {{prompt}}
{{history}}
@ -307,6 +421,9 @@ user: "user"
char: "ASSISTANT",
user: "USER"
},
"vicuna": {
template: `{{prompt}}
{{history}}
@ -316,12 +433,18 @@ user: "user"
char: "ASSISTANT",
user: "USER"
},
"yi34b": {
template: `{{history}} {{char}}`,
historyTemplate: `{{name}}: {{message}}`,
char: "Assistant",
user: "Human"
},
"zephyr": {
template: `<|system|>
{{prompt}}</s>