Skip to content

Commit

Permalink
add phi-2-orange
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Mar 31, 2024
1 parent f43354e commit 5cfb84f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions embedded/models/phi-2-orange.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: phi-2-chat
mmap: true
parameters:
model: huggingface://l3utterfly/phi-2-orange-GGUF/phi-2-orange.Q6_K.gguf

template:
chat_message: |
<|im_start|>{{if eq .RoleName "assistant"}}assistant{{else if eq .RoleName "system"}}system{{else if eq .RoleName "user"}}user{{end}}
{{if .Content}}{{.Content}}{{end}}
<|im_end|>
chat: |
{{.Input}}
<|im_start|>assistant
completion: |
{{.Input}}
context_size: 4096
f16: true
stopwords:
- <|im_end|>
- <dummy32000>

description: |
This model is a chatbot that can be used for general conversation.
[Model card](https://huggingface.co/TheBloke/phi-2-orange-GGUF)
usage: |
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
"model": "phi-2-chat",
"messages": [{"role": "user", "content": "How are you doing?", "temperature": 0.1}]
}'

0 comments on commit 5cfb84f

Please sign in to comment.