Transformers
llama-factory
llama3
Inference Endpoints
File size: 1,576 Bytes
17be672
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: mirai-nova
context_size: 8192
parameters:
  model: huggingface://mudler/Mirai-Nova-Llama3-LocalAI-8B-v0.1-GGUF/Mirai-Nova-Llama3-LocalAI-8B-v0.1-q4_k_m.bin
stopwords:
- <|im_end|>
- <dummy32000>
- <|eot_id|>
- <|end_of_text|>

function:
  return_name_in_function_response: true
template:
  chat: |
    <|begin_of_text|>{{.Input }}
    <|start_header_id|>assistant<|end_header_id|>
  chat_message: |-
    <|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|>
    {{ if .Content -}}
    {{.Content -}}
    {{ else if .FunctionCall -}}
    { "name": "{{ index .FunctionCall "name"}}", "arguments": {{index .FunctionCall "arguments"}} }{{ end -}}<|eot_id|>
  completion: |
    {{.Input}}
  function: |-
    <|begin_of_text|><|start_header_id|>system<|end_header_id|>
    {{$tools:=""}}
    You have access to the following tools:
    {{range .Functions -}}
    > Tool Name: {{.Name}}
    {{ $tools = print $tools .Name " " -}}
    Tool Description: {{.Description}}
    Tool Args:
    {{ range $key,$val:= (index .Parameters "properties") -}}
      - {{$key}} ({{ index $val "type"}}): {{index $val "description" }}
    {{ end -}}
    {{ end -}}Answer only in JSON by using the following format if using a tool:
    {"name": "tool_name", "arguments": { "arg_1": "value" } }
    Function must be one of [{{$tools}}]).<|eot_id|>
    {{.Input}}
    <|start_header_id|>assistant<|end_header_id|>