[GH-ISSUE #6222] /save does not preserve existing parameters #50399

Open
opened 2026-04-28 15:37:11 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @sdmorrey on GitHub (Aug 7, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6222

Originally assigned to: @pdevine on GitHub.

What is the issue?

I am working on a modelfile and did the following...

ollama run --verbose llama3.1:8b
/set parameter num_ctx 131072
/set parameter num_predict -2

/save llama3.1:8b-128k
/bye

I then kill and restart ollama and run the new modelfile

ollama run --verbose llama3.1:8b-128k

Performing a /show modefile shows that my parameters were saved but then I realize I want mlock

/set parameter use_mlock true
/save llama3.1:8b-128k
/bye

Now if I kill ollama and restart it with
ollama run --verbose llama3.1:8b-128k

Doing a show modelfile shows that the only parameter is use_mlock.

The expected behavior is that it would preserve pre-existing parameters between saves. That does not appear to be occuring.

OS

macOS

GPU

Other

CPU

Intel

Ollama version

0.3.3

Originally created by @sdmorrey on GitHub (Aug 7, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6222 Originally assigned to: @pdevine on GitHub. ### What is the issue? I am working on a modelfile and did the following... ``` ollama run --verbose llama3.1:8b /set parameter num_ctx 131072 /set parameter num_predict -2 /save llama3.1:8b-128k /bye ``` I then kill and restart ollama and run the new modelfile ``` ollama run --verbose llama3.1:8b-128k ``` Performing a /show modefile shows that my parameters were saved but then I realize I want mlock ``` /set parameter use_mlock true /save llama3.1:8b-128k /bye ``` Now if I kill ollama and restart it with ollama run --verbose llama3.1:8b-128k Doing a show modelfile shows that the only parameter is use_mlock. The expected behavior is that it would preserve pre-existing parameters between saves. That does not appear to be occuring. ### OS macOS ### GPU Other ### CPU Intel ### Ollama version 0.3.3
GiteaMirror added the bug label 2026-04-28 15:37:11 -05:00
Author
Owner

@Maltz42 commented on GitHub (Aug 7, 2024):

It also doesn't preserve messages prior to the current session anymore. It appears that particular thing broke beginning in v0.3.2 - maybe the parameters issue is related?

<!-- gh-comment-id:2272606629 --> @Maltz42 commented on GitHub (Aug 7, 2024): It also doesn't preserve messages prior to the current session anymore. It appears that particular thing broke beginning in v0.3.2 - maybe the parameters issue is related?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#50399