From 2e4c05e00a2fe144df3933b93a20854e29724c95 Mon Sep 17 00:00:00 2001 From: Yazan Agha-Schrader Date: Tue, 28 Nov 2023 07:15:03 +0100 Subject: [PATCH] Update promptFormats.js --- examples/server/public/promptFormats.js | 36 ++++++++++++------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/server/public/promptFormats.js b/examples/server/public/promptFormats.js index a9b23812c..6bbecd60f 100644 --- a/examples/server/public/promptFormats.js +++ b/examples/server/public/promptFormats.js @@ -12,12 +12,6 @@ export const promptFormats = { char: "Response", user: "Instruction" }, -"bakllava": { - template: "{{history}}{{char}}:", - historyTemplate: "{{name}}: {{message}}\n", - char: "ASSISTANT", - user: "USER" -}, "chatml": { template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}", historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>", @@ -60,18 +54,6 @@ export const promptFormats = { char: "ASSISTANT", user: "USER" }, -"llama2": { - template: "[INST] <>\n{{prompt}}\n<>\n\n{{history}} [/INST] {{char}} [INST] ", - historyTemplate: "{{name}}: {{message}} [/INST]", - char: "llama", - user: "user" -}, -"llava": { - template: "{{history}}{{char}}:", - historyTemplate: "{{name}}: {{message}}\n", - char: "ASSISTANT", - user: "USER" -}, "leoHessianai": { template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}", historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>", @@ -84,6 +66,12 @@ export const promptFormats = { char: "ASSISTANT", user: "USER" }, +"llama2": { + template: "[INST] <>\n{{prompt}}\n<>\n\n{{history}} [/INST] {{char}} [INST] ", + historyTemplate: "{{name}}: {{message}} [/INST]", + char: "llama", + user: "user" +}, "marx": { template: "{{history}}\n{{char}}:", historyTemplate: "{{name}}: {{message}}", @@ -138,6 +126,12 @@ export const promptFormats = { char: "Response", user: "Input" }, +"openChat": { + template: "{{history}}{{char}}", + historyTemplate: "GPT4 {{user}}: {{message}}<|end_of_turn|>", + char: "Assistant", + user: "User" +}, "openhermes2Mistral": { template: "<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}\n<|im_start|>{{char}}", historyTemplate: "<|im_start|>{{user}}\n{{message}}<|im_end|>", @@ -174,6 +168,12 @@ export const promptFormats = { char: "ASSISTANT", user: "USER" }, +"starlingLM": { + template: "{{history}}{{char}}", + historyTemplate: "GPT4 {{user}}: {{message}}<|end_of_turn|>", + char: "Assistant", + user: "User" +}, "sydney": { template: "{{prompt}}\n\n{{history}}\n{{char}}", historyTemplate: "### {{name}}:\n{{message}}\n",