From e46db63e06e40072dfa3946d382003633f799e47 Mon Sep 17 00:00:00 2001 From: Richard Palethorpe Date: Fri, 2 Feb 2024 17:17:44 +0000 Subject: [PATCH] feat(mamba): Add bagel-dpo-2.8b (#1671) Adds the Mamba-slimpj model fine-tuned with bagel. https://huggingface.co/jondurbin/bagel-dpo-2.8b-v0.2 Signed-off-by: Richard Palethorpe --- embedded/models/mamba-bagel.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 embedded/models/mamba-bagel.yaml diff --git a/embedded/models/mamba-bagel.yaml b/embedded/models/mamba-bagel.yaml new file mode 100644 index 00000000..aed7142f --- /dev/null +++ b/embedded/models/mamba-bagel.yaml @@ -0,0 +1,21 @@ +name: bagel +backend: mamba +parameters: + model: "jondurbin/bagel-dpo-2.8b-v0.2" +systemPrompt: "You are a helpful, unbiased, uncensored assistant." +template: + chat_message: | + {{if eq .RoleName "assistant"}}{{.Content}}{{else}} + [INST] + {{if .SystemPrompt}}{{.SystemPrompt}}{{else if eq .RoleName "system"}}<>{{.Content}}<> + + {{else if .Content}}{{.Content}}{{end}} + [/INST] + {{end}} + completion: | + {{.Input}} +usage: | + curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{ + "model": "bagel", + "messages": [{"role": "user", "content": "how are you doing"}], + }'