minFjollede / Modelfile
NagusameCS's picture
Fix packaging (transformers 4.x tokenizer/RoPE, tokenizer truncation, license, base_model) and correct the model card with measured quality (audit 2026-10-09); add Q8_0 GGUF and a working Ollama Modelfile
7f3b611 verified
Raw History Blame Contribute Delete
921 Bytes
# minFjollede - 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 minfjollede -f Modelfile && ollama run minfjollede
# Or, once the GGUF is in the repo: ollama run hf.co/NagusameCS/minFjollede
FROM ./minFjollede-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