Models
GitHub
Discord
Docs
Cloud
Sign in
Download
Models
Download
GitHub
Discord
Docs
Cloud
Sign in
huihui_ai
/
acereason-nemotron-abliterated
:14b
1,335
Downloads
Updated
3 months ago
This is an uncensored version of nvidia/AceReason-Nemotron created with abliteration Edit
This is an uncensored version of nvidia/AceReason-Nemotron created with abliteration Edit
Cancel
7b
14b
acereason-nemotron-abliterated:14b
...
/
template
869feade9338 · 1.9kB
{{- if .Messages }}
{{- if .System }}<|System|>
{{ .System }}<|end▁of▁sentence|>
{{- end }}
{{- $last_role := "" }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
{{- if eq .Role "user" }}<|User|>
{{ .Content }}<|end▁of▁sentence|>
{{- else if eq .Role "assistant" }}
{{- if .Content }}<|Assistant|>
{{ .Content }}<|end▁of▁sentence|>
{{- else if .ToolCalls }}
{{- $is_first := true }}
<|Assistant|><|tool▁calls▁begin|>
{{- range .ToolCalls }}
{{- if $is_first }}
<|tool▁call▁begin|>{{ .Type }}<|tool▁sep|>{{ .Function.Name }}\n```json\n{{ .Function.Arguments }}\n```<|tool▁call▁end|>
{{- $is_first = false }}
{{- else }}
\n<|tool▁call▁begin|>{{ .Type }}<|tool▁sep|>{{ .Function.Name }}\n```json\n{{ .Function.Arguments }}\n```<|tool▁call▁end|>
{{- end }}
{{- end }}
<|tool▁calls▁end|><|end▁of▁sentence|>
{{- end }}
{{- else if eq .Role "tool" }}
{{- $is_output_first := true }}
{{- if $is_output_first }}
<|User|><|tool▁outputs▁begin|><|tool▁output▁begin|>{{ .Content }}<|tool▁output▁end|>
{{- $is_output_first = false }}
{{- else }}
\n<|tool▁output▁begin|>{{ .Content }}<|tool▁output▁end|>
{{- end }}
{{- if $last }}<|tool▁outputs▁end|><|end▁of▁sentence|>
{{- end }}
{{- end }}
{{- if $last }}
{{- $last_role = .Role }}
{{- end }}
{{- if and (ne .Role "assistant") $last }}<|Assistant|>
{{- end }}
{{- end }}
{{- if and .Messages .AddGenerationPrompt (ne $last_role "tool") }}<|Assistant|><think>\n
{{- end }}
{{- else }}
{{- if .System }}<|System|>
{{ .System }}<|end▁of▁sentence|>
{{- end }}
{{- if .Prompt }}<|User|>
{{ .Prompt }}<|end▁of▁sentence|>
{{- end }}
<|Assistant|>
{{ .Response }}{{ if .Response }}<|end▁of▁sentence|>{{ end }}
{{- end }}