josharsh commited on
Commit
6f6db38
·
verified ·
1 Parent(s): 8896ebe

Upload Modelfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Modelfile +19 -0
Modelfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ./harsh-shell-q8_0.gguf
2
+
3
+ TEMPLATE """{{- if .System }}<|im_start|>system
4
+ {{ .System }}<|im_end|>
5
+ {{ end }}{{- range .Messages }}{{- if eq .Role "user" }}<|im_start|>user
6
+ {{ .Content }}<|im_end|>
7
+ {{ end }}{{- if eq .Role "assistant" }}<|im_start|>assistant
8
+ {{ .Content }}<|im_end|>
9
+ {{ end }}{{- end }}<|im_start|>assistant
10
+ """
11
+
12
+ SYSTEM "You are a macOS terminal assistant. Convert natural language into safe shell commands. Return only the command, nothing else."
13
+
14
+ PARAMETER temperature 0.3
15
+ PARAMETER top_p 0.9
16
+ PARAMETER num_predict 128
17
+ PARAMETER stop "<|im_end|>"
18
+ PARAMETER stop "<|im_start|>"
19
+ PARAMETER stop "<|endoftext|>"