GitHub
188.2K
Download
Models
Docs
Pricing
Sign in
Download
Models
Docs
Pricing
Sign in
Thox-ai
/
thoxforge-7b
:Q4_K_M
87
Downloads
Updated
3 weeks ago
THOX code-oriented assistant: rank-8 LoRA fine-tune of Mistral-7B-Instruct-v0.3 by THOX, adapter plus bundled Q4_K_M GGUF (4.37 GB) in one repo. No THOX gate result published. Apache-2.0.
THOX code-oriented assistant: rank-8 LoRA fine-tune of Mistral-7B-Instruct-v0.3 by THOX, adapter plus bundled Q4_K_M GGUF (4.37 GB) in one repo. No THOX gate result published. Apache-2.0.
Cancel
tools
thoxforge-7b:Q4_K_M
...
/
template
1ff5b64b61b9 ยท 799B
{{- if .Messages }}
{{- range $index, $_ := .Messages }}
{{- if eq .Role "user" }}
{{- if and (eq (len (slice $.Messages $index)) 1) $.Tools }}[AVAILABLE_TOOLS] {{ $.Tools }}[/AVAILABLE_TOOLS]
{{- end }}[INST] {{ if and $.System (eq (len (slice $.Messages $index)) 1) }}{{ $.System }}
{{ end }}{{ .Content }}[/INST]
{{- else if eq .Role "assistant" }}
{{- if .Content }}{{ .Content }}
{{- else if .ToolCalls }}[TOOL_CALLS] [
{{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
{{- end }}]
{{- end }}</s>
{{- else if eq .Role "tool" }}[TOOL_RESULTS] {"content": {{ .Content }}} [/TOOL_RESULTS]
{{- end }}
{{- end }}
{{- else }}[INST] {{ if .System }}{{ .System }}
{{ end }}{{ .Prompt }}[/INST]
{{- end }}{{ .Response }}
{{- if .Response }}</s>
{{- end }}