[GH-ISSUE #7789] How to prevent Ollama requests to change the running model on Ollama? #82659

Closed
opened 2026-05-09 15:28:19 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @WoodenTiger000 on GitHub (Nov 22, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7789

How can we prevent Ollama requests to change the running model on Ollama?

Originally created by @WoodenTiger000 on GitHub (Nov 22, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7789 How can we prevent Ollama requests to change the running model on Ollama?
GiteaMirror added the feature request label 2026-05-09 15:28:19 -05:00
Author
Owner

@jmorganca commented on GitHub (Dec 29, 2024):

If I understand correctly, this is the model loading/unloading when runtime parameters change? As long as key runtime parameters such as num_ctx don't change and the model should stay loaded. Let me know if this doesn't solve the issue for you. Alternatively you can use OLLAMA_KEEP_ALIVE=-1 to make sure models don't unload themselves after a set amount of time.

<!-- gh-comment-id:2564851652 --> @jmorganca commented on GitHub (Dec 29, 2024): If I understand correctly, this is the model loading/unloading when runtime parameters change? As long as key runtime parameters such as `num_ctx` don't change and the model should stay loaded. Let me know if this doesn't solve the issue for you. Alternatively you can use `OLLAMA_KEEP_ALIVE=-1` to make sure models don't unload themselves after a set amount of time.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#82659