初始化项目,由ModelHub XC社区提供模型
Model: tletai/phi-4-mini-instruct-4b-usm-tau-py-0003 Source: Original Platform
This commit is contained in:
16
Modelfile
Normal file
16
Modelfile
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
FROM phi-4-mini-instruct.F16.gguf
|
||||
TEMPLATE """{{- if or .System .Tools }}<|system|>{{ if .System }}{{ .System }}{{ end }}
|
||||
{{- if .Tools }}{{ if not .System }}You are a helpful assistant with some tools.{{ end }}<|tool|>{{ .Tools }}<|/tool|><|end|>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- range $i, $_ := .Messages }}
|
||||
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
|
||||
{{- if ne .Role "system" }}<|{{ .Role }}|>{{ .Content }}
|
||||
{{- if .ToolCalls }}<|tool_call|>[{{ range .ToolCalls }}{"name":"{{ .Function.Name }}","arguments":{{ .Function.Arguments }}{{ end }}]<|/tool_call|>
|
||||
{{- end }}
|
||||
{{- if not $last }}<|end|>
|
||||
{{- end }}
|
||||
{{- if and (ne .Role "assistant") $last }}<|end|><|assistant|>{{ end }}
|
||||
{{- end }}
|
||||
{{- end }}"""
|
||||
Reference in New Issue
Block a user