Skip to content

Commit f068efe

Browse files
authored
docs(phi-2): add example (#1525)
1 parent 726fe41 commit f068efe

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

examples/configurations/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/jso
6767
6868
```
6969

70+
### Phi-2
71+
72+
```
73+
cp -r examples/configurations/phi-2.yaml models/
74+
75+
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
76+
"model": "phi-2",
77+
"messages": [{"role": "user", "content": "How are you doing?", "temperature": 0.1}]
78+
}'
79+
```
80+
7081
### Mixtral
7182

7283
```

examples/configurations/phi-2.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: phi-2
2+
context_size: 2048
3+
f16: true
4+
gpu_layers: 90
5+
mmap: true
6+
parameters:
7+
model: huggingface://TheBloke/phi-2-GGUF/phi-2.Q8_0.gguf
8+
temperature: 0.2
9+
top_k: 40
10+
top_p: 0.95
11+
template:
12+
chat: &template |
13+
Instruct: {{.Input}}
14+
Output:
15+
completion: *template

0 commit comments

Comments
 (0)