jljiu commited on
Commit
4f971c2
·
verified ·
1 Parent(s): 64a8a01

Create Modelfile

Browse files
Files changed (1) hide show
  1. Modelfile +11 -0
Modelfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ./llama3.1_8b_chinese_chat_q8_0.gguf
2
+ TEMPLATE """
3
+ {{ if .System }}<|start_header_id|>system<|end_header_id|>
4
+ {{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
5
+ {{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
6
+ {{ .Response }}<|eot_id|>
7
+ """
8
+ PARAMETER stop "<|start_header_id|>"
9
+ PARAMETER stop "<|end_header_id|>"
10
+ PARAMETER stop "<|eot_id|>"
11
+ PARAMETER num_threads 2 # 设置CPU线程数,根据Space的CPU核心数调整