111 1 week ago

A fine-tuned 3B coding specialist engineered to run unmodified Claude Code CLI natively inside Ollama on consumer GPUs under 4 GB VRAM (GTX 1650 / RTX 3050). Features native AST tool calling, zero capability refusals, multi-file autonomous generation, and

tools
0e3536babe65 ยท 1.6kB
{{- if .Suffix }}<|fim_prefix|>{{ .Prompt }}<|fim_suffix|>{{ .Suffix }}<|fim_middle|>
{{- else if .Messages }}
{{- if or .System .Tools }}<|im_start|>system
{{- if .System }}
{{ .System }}
{{- end }}
{{- range .Messages }}
{{- if eq .Role "system" }}
{{ .Content }}
{{- end }}
{{- end }}
{{- if .Tools }}
# Tools
You may call one or more functions to assist with the user query.
You are provided with function signatures within <tools></tools>:
<tools>
{{- range .Tools }}
{"type": "function", "function": {{ .Function }}}
{{- end }}
</tools>
For each function call, return a json object with function name and arguments with NO other text:
{"name": "<exact-tool-name>", "arguments": <args-json-object>}
{{- end }}<|im_end|>
{{ end }}
{{- range $i, $_ := .Messages }}
{{- if ne .Role "system" }}
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
{{- if eq .Role "user" }}<|im_start|>user
{{ .Content }}<|im_end|>
{{ else if eq .Role "assistant" }}<|im_start|>assistant
{{ if .Content }}{{ .Content }}
{{- else if .ToolCalls }}
{
{{ range .ToolCalls }}"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}
{{ end }}}
{{- end }}{{ if not $last }}<|im_end|>
{{ end }}
{{- else if eq .Role "tool" }}<|im_start|>user
<tool_response>
{{ .Content }}
</tool_response><|im_end|>
{{ end }}
{{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
{{ end }}
{{- end }}
{{- end }}
{{- else }}
{{- if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ if .Prompt }}<|im_start|>user
{{ .Prompt }}<|im_end|>
{{ end }}<|im_start|>assistant
{{ end }}{{ if .Response }}{{ .Response }}<|im_end|>{{ end }}