初始化项目,由ModelHub XC社区提供模型
Model: simonlesaumon/Mistral-NeMo-12B-Unslopper-FR-v1 Source: Original Platform
This commit is contained in:
20
Modelfile
Normal file
20
Modelfile
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
FROM mistral-nemo-instruct-2407.Q4_K_M.gguf
|
||||
TEMPLATE """
|
||||
{{- range $i, $_ := .Messages }}
|
||||
{{- if eq .Role "user" }}
|
||||
{{- if and $.Tools (le (len (slice $.Messages $i)) 2) }}[AVAILABLE_TOOLS]{{ $.Tools }}[/AVAILABLE_TOOLS]
|
||||
{{- end }}[INST]{{ if and $.System (eq (len (slice $.Messages $i)) 1) }}{{ $.System }}
|
||||
|
||||
{{ end }}{{ .Content }}[/INST]
|
||||
{{- else if eq .Role "assistant" }}
|
||||
{{- if .Content }} {{ .Content }}{{ if not (eq (len (slice $.Messages $i)) 1) }}</s>{{ end }}
|
||||
{{- else if .ToolCalls }}[TOOL_CALLS][
|
||||
{{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
|
||||
{{- end }}]</s>
|
||||
{{- end }}
|
||||
{{- else if eq .Role "tool" }}[TOOL_RESULTS]{"content": {{ .Content }}}[/TOOL_RESULTS]
|
||||
{{- end }}
|
||||
{{- end }}"""
|
||||
PARAMETER stop "[INST]"
|
||||
PARAMETER stop "[/INST]"
|
||||
Reference in New Issue
Block a user