From 42bdcee4739f15e6f609f76da3f24618588ddcd9 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Fri, 4 Aug 2023 08:56:38 -0700 Subject: [PATCH] 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 --- examples/midjourney-prompter/Modelfile | 2 +- library/modelfiles/nous-hermes | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/midjourney-prompter/Modelfile b/examples/midjourney-prompter/Modelfile index c46017b7..a9866a41 100644 --- a/examples/midjourney-prompter/Modelfile +++ b/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 """ diff --git a/library/modelfiles/nous-hermes b/library/modelfiles/nous-hermes index 1360b943..c9e7be1f 100644 --- a/library/modelfiles/nous-hermes +++ b/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.""" \ No newline at end of file