mudler commited on
Commit
31eb74d
·
verified ·
1 Parent(s): 55a0c2e

Create localai-q4_k_m.yaml

Browse files
Files changed (1) hide show
  1. localai-q4_k_m.yaml +50 -0
localai-q4_k_m.yaml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: LocalAI-Llama3.1-8b-Function-Call-v0.3
2
+ context_size: 8192
3
+ parameters:
4
+ model: huggingface://mudler/LocalAI-Llama3.1-8b-Function-Call-v0.3-GGUF/LocalAI-Llama3.1-8b-Function-Call-v0.3-q4_k_m.bin
5
+ stopwords:
6
+ - <|im_end|>
7
+ - <dummy32000>
8
+ - <|eot_id|>
9
+ - <|end_of_text|>
10
+
11
+ function:
12
+ return_name_in_function_response: true
13
+ function_name_key: name
14
+ grammar:
15
+ disable: false
16
+ mixed_mode: false
17
+ no_mixed_free_string: true
18
+ properties_order: "name,arguments"
19
+
20
+ template:
21
+ chat: |
22
+ <|begin_of_text|>{{.Input }}
23
+ <|start_header_id|>assistant<|end_header_id|>
24
+ chat_message: |-
25
+ <|start_header_id|>{{if .FunctionCall}}assistant{{ else if eq .RoleName "assistant"}}assistant{{else if eq .RoleName "system"}}system{{else if eq .RoleName "tool"}}tool_response{{else if eq .RoleName "user"}}user{{end}}<|end_header_id|>
26
+
27
+ {{ if .Content -}}
28
+ {{.Content -}}
29
+ {{ else if .FunctionCall -}}
30
+ { "name": "{{ index .FunctionCall "name"}}", "arguments": {{index .FunctionCall "arguments"}} }{{ end -}}<|eot_id|>
31
+ completion: |
32
+ {{.Input}}
33
+ # see
34
+ function: |-
35
+ <|begin_of_text|><|start_header_id|>system<|end_header_id|>
36
+ {{$tools:=""}}
37
+ You have access to the following tools:
38
+ {{range .Functions -}}
39
+ > Tool Name: {{.Name}}
40
+ {{ $tools = print $tools .Name " " -}}
41
+ Tool Description: {{.Description}}
42
+ Tool Args:
43
+ {{ range $key,$val:= (index .Parameters "properties") -}}
44
+ - {{$key}} ({{ index $val "type"}}): {{index $val "description" }}
45
+ {{ end -}}
46
+ {{ end -}}Answer only in JSON by using the following format if using a tool:
47
+ {"name": "tool_name", "arguments": { "arg_1": "value" } }
48
+ Function must be one of [{{$tools}}]).<|eot_id|>
49
+ {{.Input}}
50
+ <|start_header_id|>assistant<|end_header_id|>