[GH-ISSUE #2617] Modelfile doesn't update (keep_alive?) #1544

Closed
opened 2026-04-12 11:27:15 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Red-exe-Engineer on GitHub (Feb 20, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2617

I've noticed that whenever I run ollama create <name> -f </path/to/modelfile> the Ollama server needs to restart or wait for keep_alive to quit before the changes fully apply.
ollama show --modelfile <name> shows as being updated, however when trying to interact it seems like it's running the old modelfile.

Example: giving a model with the template {{ .Prompt }}, if you update the modelfile and overwrite the template the old one will stay loaded despite ollama show --template <model> and /show template saying otherwise.

I've tried to ask around on Discord without success, so I'm creating an issue. Please note that I'm running Ollama on Termux and have only done some testing, however I'm sure something's wrong.

I'll be away for a few hours, hope you guys find the issue!

Originally created by @Red-exe-Engineer on GitHub (Feb 20, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2617 I've noticed that whenever I run `ollama create <name> -f </path/to/modelfile>` the Ollama server needs to restart or wait for `keep_alive` to quit before the changes fully apply. `ollama show --modelfile <name>` shows as being updated, however when trying to interact it seems like it's running the old modelfile. Example: giving a model with the template `{{ .Prompt }}`, if you update the modelfile and overwrite the template the old one will stay loaded despite `ollama show --template <model>` and `/show template` saying otherwise. I've tried to ask around on Discord without success, so I'm creating an issue. Please note that I'm running Ollama on Termux and have only done some testing, however I'm sure something's wrong. I'll be away for a few hours, hope you guys find the issue!
Author
Owner

@jmorganca commented on GitHub (Feb 20, 2024):

Hi, I'm so sorry about this. This is a known issue that will be fixed in the next release.

<!-- gh-comment-id:1954856757 --> @jmorganca commented on GitHub (Feb 20, 2024): Hi, I'm so sorry about this. This is a [known issue](https://github.com/ollama/ollama/issues/2492) that will be fixed in the next release.
Author
Owner

@Red-exe-Engineer commented on GitHub (Feb 20, 2024):

Hi, I'm so sorry about this. This is a known issue that will be fixed in the next release.

Thank you for telling me. I'll await it patiently.

<!-- gh-comment-id:1954864461 --> @Red-exe-Engineer commented on GitHub (Feb 20, 2024): > Hi, I'm so sorry about this. This is a [known issue](https://github.com/ollama/ollama/issues/2492) that will be fixed in the next release. Thank you for telling me. I'll await it patiently.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1544