harshell / Modelfile
josharsh's picture
Upload Modelfile with huggingface_hub
6f6db38 verified
FROM ./harsh-shell-q8_0.gguf
TEMPLATE """{{- if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{- range .Messages }}{{- if eq .Role "user" }}<|im_start|>user
{{ .Content }}<|im_end|>
{{ end }}{{- if eq .Role "assistant" }}<|im_start|>assistant
{{ .Content }}<|im_end|>
{{ end }}{{- end }}<|im_start|>assistant
"""
SYSTEM "You are a macOS terminal assistant. Convert natural language into safe shell commands. Return only the command, nothing else."
PARAMETER temperature 0.3
PARAMETER top_p 0.9
PARAMETER num_predict 128
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|endoftext|>"