Create localai.yaml
Browse files- localai.yaml +41 -0
localai.yaml
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: minerva-llama3
|
2 |
+
parameters:
|
3 |
+
model: huggingface://mudler/Minerva-3B-Llama3-Instruct-v0.1-GGUF/Minerva-3B-Llama3-Instruct-v0.1-q6_k.bin
|
4 |
+
stopwords:
|
5 |
+
- </s>
|
6 |
+
- <|im_end|>
|
7 |
+
- <dummy32000>
|
8 |
+
- <|eot_id|>
|
9 |
+
- <|end_of_text|>
|
10 |
+
template:
|
11 |
+
chat: |
|
12 |
+
<|begin_of_text|>{{.Input }}
|
13 |
+
<|start_header_id|>assistant<|end_header_id|>
|
14 |
+
chat_message: |
|
15 |
+
<|start_header_id|>{{if eq .RoleName "assistant"}}assistant{{else if eq .RoleName "system"}}system{{else if eq .RoleName "tool"}}tool{{else if eq .RoleName "user"}}user{{end}}<|end_header_id|>
|
16 |
+
|
17 |
+
{{ if .FunctionCall -}}
|
18 |
+
Function call:
|
19 |
+
{{ else if eq .RoleName "tool" -}}
|
20 |
+
Function response:
|
21 |
+
{{ end -}}
|
22 |
+
{{ if .Content -}}
|
23 |
+
{{.Content -}}
|
24 |
+
{{ else if .FunctionCall -}}
|
25 |
+
{{ toJson .FunctionCall -}}
|
26 |
+
{{ end -}}
|
27 |
+
</s>
|
28 |
+
completion: |
|
29 |
+
{{.Input}}
|
30 |
+
function: |
|
31 |
+
<|start_header_id|>system<|end_header_id|>
|
32 |
+
|
33 |
+
You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions. Here are the available tools:
|
34 |
+
<tools>
|
35 |
+
{{range .Functions}}
|
36 |
+
{'type': 'function', 'function': {'name': '{{.Name}}', 'description': '{{.Description}}', 'parameters': {{toJson .Parameters}} }}
|
37 |
+
{{end}}
|
38 |
+
</tools>
|
39 |
+
Use the following pydantic model json schema for each tool call you will make:
|
40 |
+
{'title': 'FunctionCall', 'type': 'object', 'properties': {'arguments': {'title': 'Arguments', 'type': 'object'}, 'name': {'title': 'Name', 'type': 'string'}}, 'required': ['arguments', 'name']}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
|
41 |
+
Function call:
|