mirror of
https://github.com/mudler/LocalAI.git
synced 2026-01-03 03:49:25 -05:00
* feat: split remaining backends and drop embedded backends - Drop silero-vad, huggingface, and stores backend from embedded binaries - Refactor Makefile and Dockerfile to avoid building grpc backends - Drop golang code that was used to embed backends - Simplify building by using goreleaser Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore(gallery): be specific with llama-cpp backend templates Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore(docs): update Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore(ci): minor fixes Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore: drop all ffmpeg references Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * fix: run protogen-go Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Always enable p2p mode Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Update gorelease file Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * fix(stores): do not always load Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Fix linting issues Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Simplify Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Mac OS fixup Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
---
|
|
name: "gemma"
|
|
|
|
config_file: |
|
|
backend: "llama-cpp"
|
|
mmap: true
|
|
context_size: 8192
|
|
template:
|
|
chat_message: |-
|
|
<start_of_turn>{{if eq .RoleName "assistant" }}model{{else}}{{ .RoleName }}{{end}}
|
|
{{ if .FunctionCall -}}
|
|
{{ else if eq .RoleName "tool" -}}
|
|
{{ end -}}
|
|
{{ if .Content -}}
|
|
{{.Content -}}
|
|
{{ end -}}
|
|
{{ if .FunctionCall -}}
|
|
{{toJson .FunctionCall}}
|
|
{{ end -}}<end_of_turn>
|
|
chat: |
|
|
{{.Input }}
|
|
<start_of_turn>model
|
|
completion: |
|
|
{{.Input}}
|
|
function: |
|
|
<start_of_turn>system
|
|
You have access to functions. If you decide to invoke any of the function(s),
|
|
you MUST put it in the format of
|
|
{"name": function name, "parameters": dictionary of argument name and its value}
|
|
|
|
You SHOULD NOT include any other text in the response if you call a function
|
|
{{range .Functions}}
|
|
{'type': 'function', 'function': {'name': '{{.Name}}', 'description': '{{.Description}}', 'parameters': {{toJson .Parameters}} }}
|
|
{{end}}
|
|
<end_of_turn>
|
|
{{.Input -}}
|
|
<start_of_turn>model
|
|
stopwords:
|
|
- '<|im_end|>'
|
|
- '<end_of_turn>'
|
|
- '<start_of_turn>'
|