Browse Source

update to nous-hermes modelfile
it will now accept a system prompt from a model
that uses nous-hermes.
also updated the midjourney-prompter to use
a better name.

Signed-off-by: Matt Williams <m@technovangelist.com>

Matt Williams 1 year ago
parent
commit
42bdcee473
2 changed files with 7 additions and 2 deletions
  1. 1 1
      examples/midjourney-prompter/Modelfile
  2. 6 1
      library/modelfiles/nous-hermes

+ 1 - 1
examples/midjourney-prompter/Modelfile

@@ -1,6 +1,6 @@
 # Modelfile for creating a Midjourney prompts from a topic
 # This prompt was adapted from the original at https://www.greataiprompts.com/guide/midjourney/best-chatgpt-prompt-for-midjourney/
-# Run `ollama create mj -f ./Modelfile` and then `ollama run mj` and enter a topic
+# Run `ollama create midjourney-prompter -f ./Modelfile` and then `ollama run midjourney-prompter` and enter a topic
 
 FROM nous-hermes
 SYSTEM """

+ 6 - 1
library/modelfiles/nous-hermes

@@ -1,7 +1,12 @@
 FROM ../models/nous-hermes-13b.ggmlv3.q4_0.bin
 TEMPLATE """
+{{- if .First }}
 ### Instruction:
+{{ .System }}
+{{- end }}
+### Input:
 {{ .Prompt }}
-
 ### Response:
 """
+
+SYSTEM """You are an AI assistant that follows instruction extremely well. Help as much as you can."""