[GH-ISSUE #1482] Permanently changing System prompt #801

Closed
opened 2026-04-12 10:28:44 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @luvchurchill on GitHub (Dec 12, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1482

I want to change the system prompt, after I write my own /set system and I check it /show system it is what I changed it to.
The problem is that when I quit, it changes back to the default boring prompt.
Is there a way to change it permanently?
Thanks

Originally created by @luvchurchill on GitHub (Dec 12, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1482 I want to change the system prompt, after I write my own ``/set system`` and I check it ``/show system`` it is what I changed it to. The problem is that when I quit, it changes back to the default boring prompt. Is there a way to change it permanently? Thanks
Author
Owner

@phalexo commented on GitHub (Dec 12, 2023):

You can put an input template into a model file, with the system prompt and then do

ollama create "YourModelName" -f YourModelFile.

<!-- gh-comment-id:1852472889 --> @phalexo commented on GitHub (Dec 12, 2023): You can put an input template into a model file, with the system prompt and then do ollama create "YourModelName" -f YourModelFile.
Author
Owner

@luvchurchill commented on GitHub (Dec 12, 2023):

That creates a completely new model tho, right?

<!-- gh-comment-id:1852489052 --> @luvchurchill commented on GitHub (Dec 12, 2023): That creates a completely new model tho, right?
Author
Owner

@mxyng commented on GitHub (Dec 12, 2023):

Yes in the sense that it's a new model in ollama list. However, if you're using existing model templates, it will reuse the model weights and the only additional disk is a file for the system prompt.

You can also give the new model the same name to update it:

e.g.

$ ollama pull mistral
$ cat <<EOF >Modelfile
FROM mistral
SYSTEM "You are a good language model."
EOF
$ ollama create mistral
<!-- gh-comment-id:1852584986 --> @mxyng commented on GitHub (Dec 12, 2023): Yes in the sense that it's a new model in `ollama list`. However, if you're using existing model templates, it will reuse the model weights and the only additional disk is a file for the system prompt. You can also give the new model the same name to update it: e.g. ``` $ ollama pull mistral $ cat <<EOF >Modelfile FROM mistral SYSTEM "You are a good language model." EOF $ ollama create mistral ```
Author
Owner

@luvchurchill commented on GitHub (Dec 12, 2023):

Oh, ok that's what I was wondering about (disk space, etc.) thanks

<!-- gh-comment-id:1852939888 --> @luvchurchill commented on GitHub (Dec 12, 2023): Oh, ok that's what I was wondering about (disk space, etc.) thanks
Author
Owner

@phalexo commented on GitHub (Dec 12, 2023):

One thing to note though. If you have created a model entry from a local
gguf file, you would be duplicating data.

On Tue, Dec 12, 2023, 5:54 PM luvchurchill @.***> wrote:

Oh, ok that's what I was wondering about (disk space, etc.) thanks


Reply to this email directly, view it on GitHub
https://github.com/jmorganca/ollama/issues/1482#issuecomment-1852939888,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABDD3ZOE7NZ6ELIF5LFLKXLYJDOATAVCNFSM6AAAAABARWFIEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSHEZTSOBYHA
.
You are receiving this because you commented.Message ID:
@.***>

<!-- gh-comment-id:1852952662 --> @phalexo commented on GitHub (Dec 12, 2023): One thing to note though. If you have created a model entry from a local gguf file, you would be duplicating data. On Tue, Dec 12, 2023, 5:54 PM luvchurchill ***@***.***> wrote: > Oh, ok that's what I was wondering about (disk space, etc.) thanks > > — > Reply to this email directly, view it on GitHub > <https://github.com/jmorganca/ollama/issues/1482#issuecomment-1852939888>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABDD3ZOE7NZ6ELIF5LFLKXLYJDOATAVCNFSM6AAAAABARWFIEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSHEZTSOBYHA> > . > You are receiving this because you commented.Message ID: > ***@***.***> >
Author
Owner

@svperior-jon commented on GitHub (Apr 22, 2024):

how do you delete a :latest once you want to remove?

<!-- gh-comment-id:2069328402 --> @svperior-jon commented on GitHub (Apr 22, 2024): how do you delete a <NEWMODELNAME>:latest once you want to remove?
Author
Owner

@svperior-jon commented on GitHub (Apr 22, 2024):

newmodelname:

<!-- gh-comment-id:2069329414 --> @svperior-jon commented on GitHub (Apr 22, 2024): <newmodelname:>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#801