docs(phi-2): add example (#1525)

This commit is contained in:
Ettore Di Giacinto authored and GitHub committed 2024-01-01 10:51:47 +01:00
1 parent 726fe416bb
commit f068efe509
2 files changed
+26

No files matched your search

+11
View File
@@ -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
```
+15
View File
@@ -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