Transformers
llama-factory
llama3
Inference Endpoints
mudler commited on
Commit
17be672
1 Parent(s): 4c2a4fd

Create localai.yaml

Browse files
Files changed (1) hide show
  1. localai.yaml +41 -0
localai.yaml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: mirai-nova
2
+ context_size: 8192
3
+ parameters:
4
+ model: huggingface://mudler/Mirai-Nova-Llama3-LocalAI-8B-v0.1-GGUF/Mirai-Nova-Llama3-LocalAI-8B-v0.1-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
+ template:
14
+ chat: |
15
+ <|begin_of_text|>{{.Input }}
16
+ <|start_header_id|>assistant<|end_header_id|>
17
+ chat_message: |-
18
+ <|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|>
19
+ {{ if .Content -}}
20
+ {{.Content -}}
21
+ {{ else if .FunctionCall -}}
22
+ { "name": "{{ index .FunctionCall "name"}}", "arguments": {{index .FunctionCall "arguments"}} }{{ end -}}<|eot_id|>
23
+ completion: |
24
+ {{.Input}}
25
+ function: |-
26
+ <|begin_of_text|><|start_header_id|>system<|end_header_id|>
27
+ {{$tools:=""}}
28
+ You have access to the following tools:
29
+ {{range .Functions -}}
30
+ > Tool Name: {{.Name}}
31
+ {{ $tools = print $tools .Name " " -}}
32
+ Tool Description: {{.Description}}
33
+ Tool Args:
34
+ {{ range $key,$val:= (index .Parameters "properties") -}}
35
+ - {{$key}} ({{ index $val "type"}}): {{index $val "description" }}
36
+ {{ end -}}
37
+ {{ end -}}Answer only in JSON by using the following format if using a tool:
38
+ {"name": "tool_name", "arguments": { "arg_1": "value" } }
39
+ Function must be one of [{{$tools}}]).<|eot_id|>
40
+ {{.Input}}
41
+ <|start_header_id|>assistant<|end_header_id|>