Skip to content

Commit d728b84

Browse files
committed
chore(model gallery): add localai-functioncall-qwen2.5-7b-v0.5
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent c330360 commit d728b84

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

gallery/index.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3673,6 +3673,22 @@
36733673
- filename: SubtleOne_Qwen2.5-32b-Erudite-Writer-Q4_K_M.gguf
36743674
sha256: fb059c88be4d7d579f0776cead4ca44cf7423b834c5502ce67ef41b15cd0973b
36753675
uri: huggingface://bartowski/SubtleOne_Qwen2.5-32b-Erudite-Writer-GGUF/SubtleOne_Qwen2.5-32b-Erudite-Writer-Q4_K_M.gguf
3676+
- !!merge <<: *qwen25
3677+
name: "localai-functioncall-qwen2.5-7b-v0.5"
3678+
url: "github:mudler/LocalAI/gallery/qwen-fcall.yaml@master"
3679+
icon: https://cdn-uploads.huggingface.co/production/uploads/647374aa7ff32a81ac6d35d4/Dzbdzn27KEc3K6zNNi070.png
3680+
urls:
3681+
- https://huggingface.co/mudler/LocalAI-functioncall-qwen2.5-7b-v0.5
3682+
- https://huggingface.co/mudler/LocalAI-functioncall-qwen2.5-7b-v0.5-Q4_K_M-GGUF
3683+
description: |
3684+
A model tailored to be conversational and execute function calls with LocalAI. This model is based on qwen2.5 (7B).
3685+
overrides:
3686+
parameters:
3687+
model: localai-functioncall-qwen2.5-7b-v0.5-q4_k_m.gguf
3688+
files:
3689+
- filename: localai-functioncall-qwen2.5-7b-v0.5-q4_k_m.gguf
3690+
sha256: 4e7b7fe1d54b881f1ef90799219dc6cc285d29db24f559c8998d1addb35713d4
3691+
uri: huggingface://mudler/LocalAI-functioncall-qwen2.5-7b-v0.5-Q4_K_M-GGUF/localai-functioncall-qwen2.5-7b-v0.5-q4_k_m.gguf
36763692
- &llama31
36773693
url: "github:mudler/LocalAI/gallery/llama3.1-instruct.yaml@master" ## LLama3.1
36783694
icon: https://avatars.githubusercontent.com/u/153379578

gallery/qwen-fcall.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: "qwen-fcall"
3+
4+
config_file: |
5+
mmap: true
6+
function:
7+
json_regex_match:
8+
- "(?s)<Output>(.*?)</Output>"
9+
capture_llm_results:
10+
- (?s)<Thought>(.*?)</Thought>
11+
replace_llm_results:
12+
- key: (?s)<Thought>(.*?)</Thought>
13+
value: ""
14+
grammar:
15+
properties_order: "name,arguments"
16+
template:
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|>
30+
function: |
31+
<|im_start|>system
32+
You are an AI assistant that executes function calls, and these are the tools at your disposal:
33+
{{range .Functions}}
34+
{'type': 'function', 'function': {'name': '{{.Name}}', 'description': '{{.Description}}', 'parameters': {{toJson .Parameters}} }}
35+
{{end}}
36+
<|im_end|>
37+
{{.Input -}}
38+
<|im_start|>assistant
39+
chat: |
40+
{{.Input -}}
41+
<|im_start|>assistant
42+
completion: |
43+
{{.Input}}
44+
context_size: 4096
45+
f16: true
46+
stopwords:
47+
- '<|im_end|>'
48+
- '<dummy32000>'
49+
- '</s>'

0 commit comments

Comments
 (0)