SousiOmine commited on
Commit
61db660
·
verified ·
1 Parent(s): 9c3823f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -49
README.md CHANGED
@@ -3,56 +3,10 @@
3
 
4
  # Ollama Modelfile
5
  ```
 
6
 
7
- {{- if .Messages }}
8
- {{- if or .System .Tools }}<|im_start|>system
9
- {{- if .System }}
10
- {{ .System }}
11
- {{- end }}
12
- {{- if .Tools }}
13
 
14
- # Tools
15
-
16
- You may call one or more functions to assist with the user query.
17
-
18
- You are provided with function signatures within <tools></tools> XML tags:
19
- <tools>
20
- {{- range .Tools }}
21
- {"type": "function", "function": {{ .Function }}}
22
- {{- end }}
23
- </tools>
24
-
25
- For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
26
- <tool_call>
27
- {"name": <function-name>, "arguments": <args-json-object>}
28
- </tool_call>
29
- {{- end }}<|im_end|>
30
- {{ end }}
31
- {{- range $i, $_ := .Messages }}
32
- {{- $last := eq (len (slice $.Messages $i)) 1 -}}
33
- {{- if eq .Role "user" }}<|im_start|>user
34
- {{ .Content }}<|im_end|>
35
- {{ else if eq .Role "assistant" }}<|im_start|>assistant
36
- {{ if .Content }}{{ .Content }}
37
- {{- else if .ToolCalls }}<tool_call>
38
- {{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
39
- {{ end }}</tool_call>
40
- {{- end }}{{ if not $last }}<|im_end|>
41
- {{ end }}
42
- {{- else if eq .Role "tool" }}<|im_start|>user
43
- <tool_response>
44
- {{ .Content }}
45
- </tool_response><|im_end|>
46
- {{ end }}
47
- {{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
48
- {{ end }}
49
- {{- end }}
50
- {{- else }}
51
- {{- if .System }}<|im_start|>system
52
- {{ .System }}<|im_end|>
53
- {{ end }}{{ if .Prompt }}<|im_start|>user
54
- {{ .Prompt }}<|im_end|>
55
- {{ end }}<|im_start|>assistant
56
- {{ end }}{{ .Response }}{{ if .Response }}<|im_end|>{{ end }}
57
 
58
  ```
 
3
 
4
  # Ollama Modelfile
5
  ```
6
+ FROM hf.co/SousiOmine/cpullm-1.5b-pretrain-phase2-GGUF:Q6_K
7
 
8
+ PARAMETER num_ctx 8192
 
 
 
 
 
9
 
10
+ SYSTEM あなたはCPUで動作する親切で気の利くAIアシスタント「cpullm」です。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  ```