瀏覽代碼

update library modelfiles with new syntax

Jeffrey Morgan 1 年之前
父節點
當前提交
1511219763
共有 4 個文件被更改,包括 12 次插入8 次删除
  1. 1 1
      library/modelfiles/nous-hermes
  2. 5 3
      library/modelfiles/orca
  3. 5 3
      library/modelfiles/vicuna
  4. 1 1
      library/modelfiles/wizard-vicuna

+ 1 - 1
library/modelfiles/nous-hermes

@@ -1,5 +1,5 @@
 FROM ../models/nous-hermes-13b.ggmlv3.q4_0.bin
-PROMPT """
+TEMPLATE """
 ### Instruction:
 {{ .Prompt }}
 

+ 5 - 3
library/modelfiles/orca

@@ -1,8 +1,8 @@
 FROM ../models/orca-mini-3b.ggmlv3.q4_0.bin
-PROMPT """
-{{- if not .Context }}
+TEMPLATE """
+{{- if .First }}
 ### System:
-You are an AI assistant that follows instruction extremely well. Help as much as you can.
+{{ .System }}
 {{- end }}
 
 ### User:
@@ -10,3 +10,5 @@ You are an AI assistant that follows instruction extremely well. Help as much as
 
 ### Response:
 """
+
+SYSTEM """You are an AI assistant that follows instruction extremely well. Help as much as you can."""

+ 5 - 3
library/modelfiles/vicuna

@@ -1,9 +1,11 @@
 FROM ../models/vicuna-7b-v1.3.ggmlv3.q4_0.bin
-PROMPT """
-{{ if not .Context }}
-A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
+TEMPLATE """
+{{ if .First }}
+{{ .System }}
 {{- end }}
 
 USER: {{ .Prompt }}
 ASSISTANT:
 """
+
+SYSTEM """A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions."""

+ 1 - 1
library/modelfiles/wizard-vicuna

@@ -1,5 +1,5 @@
 FROM ../models/Wizard-Vicuna-13B-Uncensored.ggmlv3.q4_0.bin
-PROMPT """
+TEMPLATE """
 USER: {{ .Prompt }}
 ASSISTANT:
 """