chore(model gallery): add LocalAI-functioncall-phi-4-v0.3 (#4599)

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2025-01-14 09:27:18 +01:00 committed by GitHub
parent 69c6e5b192
commit 1b3e89c89c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 0 deletions

View File

@ -23,6 +23,22 @@
- filename: phi-4-Q4_K_M.gguf
uri: huggingface://bartowski/phi-4-GGUF/phi-4-Q4_K_M.gguf
sha256: 009aba717c09d4a35890c7d35eb59d54e1dba884c7c526e7197d9c13ab5911d9
- !!merge <<: *phi4
url: "github:mudler/LocalAI/gallery/phi-4-chat-fcall.yaml@master"
name: "LocalAI-functioncall-phi-4-v0.3"
icon: https://cdn-uploads.huggingface.co/production/uploads/647374aa7ff32a81ac6d35d4/Dzbdzn27KEc3K6zNNi070.png
urls:
- https://huggingface.co/mudler/LocalAI-functioncall-phi-4-v0.3
- https://huggingface.co/mudler/LocalAI-functioncall-phi-4-v0.3-Q4_K_M-GGUF
description: |
A model tailored to be conversational and execute function calls with LocalAI. This model is based on phi-4.
overrides:
parameters:
model: localai-functioncall-phi-4-v0.3-q4_k_m.gguf
files:
- filename: localai-functioncall-phi-4-v0.3-q4_k_m.gguf
sha256: 23fee048ded2a6e2e1a7b6bbefa6cbf83068f194caa9552aecbaa00fec8a16d5
uri: huggingface://mudler/LocalAI-functioncall-phi-4-v0.3-Q4_K_M-GGUF/localai-functioncall-phi-4-v0.3-q4_k_m.gguf
- !!merge <<: *phi4
url: "github:mudler/LocalAI/gallery/phi-4-chat-fcall.yaml@master"
name: "LocalAI-functioncall-phi-4-v0.2"

View File

@ -3,6 +3,16 @@ name: "phi-4-chat"
config_file: |
mmap: true
function:
json_regex_match:
- "(?s)<Output>(.*?)</Output>"
capture_llm_results:
- (?s)<Thought>(.*?)</Thought>
replace_llm_results:
- key: (?s)<Thought>(.*?)</Thought>
value: ""
grammar:
properties_order: "name,arguments"
template:
chat_message: |
<|im_start|>{{ .RoleName }}<|im_sep|>