Skip to content

Commit

Permalink
docs(phi-2): add example (#1525)
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler authored Jan 1, 2024
1 parent 726fe41 commit f068efe
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/configurations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/jso
```

### Phi-2

```
cp -r examples/configurations/phi-2.yaml models/
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
"model": "phi-2",
"messages": [{"role": "user", "content": "How are you doing?", "temperature": 0.1}]
}'
```

### Mixtral

```
Expand Down
15 changes: 15 additions & 0 deletions examples/configurations/phi-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: phi-2
context_size: 2048
f16: true
gpu_layers: 90
mmap: true
parameters:
model: huggingface://TheBloke/phi-2-GGUF/phi-2.Q8_0.gguf
temperature: 0.2
top_k: 40
top_p: 0.95
template:
chat: &template |
Instruct: {{.Input}}
Output:
completion: *template

0 comments on commit f068efe

Please sign in to comment.