File size: 901 Bytes
9e17c17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# minSode - HyperTensor CECI graft of SmolLM2-135M-Instruct (see README for what was changed and measured quality)
# Usage (from a directory containing the repo files):
#   ollama create minsode -f Modelfile && ollama run minsode
# Or, once the GGUF is in the repo:  ollama run hf.co/NagusameCS/minSode
FROM ./minSode-Q8_0.gguf

TEMPLATE """{{- if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
{{- if ne .Role "system" }}<|im_start|>{{ .Role }}
{{ .Content }}<|im_end|>
{{ end }}
{{- if and $last (ne .Role "assistant") }}<|im_start|>assistant
{{ end }}
{{- end }}"""

SYSTEM """You are a helpful AI assistant named SmolLM, trained by Hugging Face"""

PARAMETER stop "<|im_end|>"
PARAMETER stop "<|im_start|>"
PARAMETER temperature 0.7
PARAMETER top_p 0.9
PARAMETER top_k 40
PARAMETER num_predict 256