Skip to content

Commit 4301940

Browse files
committed
feat(aio): use minicpm as moondream2 stopped working
ggml-org/llama.cpp#12322 (comment) Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent a0faf87 commit 4301940

File tree

1 file changed

+39
-17
lines changed

1 file changed

+39
-17
lines changed

aio/cpu/vision.yaml

+39-17
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,49 @@
1-
context_size: 2046
1+
context_size: 4096
22
f16: true
3-
mmproj: moondream2-mmproj-f16.gguf
3+
mmap: true
4+
mmproj: minicpm-v-2_6-mmproj-f16.gguf
45
name: gpt-4o
56
parameters:
6-
model: moondream2-text-model-f16.gguf
7-
roles:
8-
assistant: "\nAnswer: "
9-
system: "\nSystem: "
10-
user: "\nQuestion: "
7+
model: minicpm-v-2_6-Q4_K_M.gguf
118
stopwords:
12-
- 'Question:'
9+
- <|im_end|>
10+
- <dummy32000>
11+
- </s>
1312
- <|endoftext|>
1413
template:
1514
chat: |
16-
{{.Input}}
17-
Answer:
15+
{{.Input -}}
16+
<|im_start|>assistant
17+
chat_message: |
18+
<|im_start|>{{ .RoleName }}
19+
{{ if .FunctionCall -}}
20+
Function call:
21+
{{ else if eq .RoleName "tool" -}}
22+
Function response:
23+
{{ end -}}
24+
{{ if .Content -}}
25+
{{.Content }}
26+
{{ end -}}
27+
{{ if .FunctionCall -}}
28+
{{toJson .FunctionCall}}
29+
{{ end -}}<|im_end|>
1830
completion: |
19-
Complete the following sentence: {{.Input}}
31+
{{.Input}}
32+
function: |
33+
<|im_start|>system
34+
You are a function calling AI model. You are provided with functions to execute. 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:
35+
{{range .Functions}}
36+
{'type': 'function', 'function': {'name': '{{.Name}}', 'description': '{{.Description}}', 'parameters': {{toJson .Parameters}} }}
37+
{{end}}
38+
For each function call return a json object with function name and arguments
39+
<|im_end|>
40+
{{.Input -}}
41+
<|im_start|>assistant
2042
2143
download_files:
22-
- filename: moondream2-text-model-f16.gguf
23-
sha256: 4e17e9107fb8781629b3c8ce177de57ffeae90fe14adcf7b99f0eef025889696
24-
uri: huggingface://moondream/moondream2-gguf/moondream2-text-model-f16.gguf
25-
- filename: moondream2-mmproj-f16.gguf
26-
sha256: 4cc1cb3660d87ff56432ebeb7884ad35d67c48c7b9f6b2856f305e39c38eed8f
27-
uri: huggingface://moondream/moondream2-gguf/moondream2-mmproj-f16.gguf
44+
- filename: minicpm-v-2_6-Q4_K_M.gguf
45+
sha256: 3a4078d53b46f22989adbf998ce5a3fd090b6541f112d7e936eb4204a04100b1
46+
uri: huggingface://openbmb/MiniCPM-V-2_6-gguf/ggml-model-Q4_K_M.gguf
47+
- filename: minicpm-v-2_6-mmproj-f16.gguf
48+
uri: huggingface://openbmb/MiniCPM-V-2_6-gguf/mmproj-model-f16.gguf
49+
sha256: 4485f68a0f1aa404c391e788ea88ea653c100d8e98fe572698f701e5809711fd

0 commit comments

Comments
 (0)