[GH-ISSUE #453] Add some way to keep the model in memory #212

Closed
opened 2026-04-12 09:44:07 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @spott on GitHub (Sep 1, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/453

It can take a while to load a model into memory, which currently needs to be done after every api call when using Ollama serve.

ggml has a --mlock option that keeps the model in memory, so it can be repeatedly queried without falling out of memory, it would be great if there was a way to do the same with Ollama.

Originally created by @spott on GitHub (Sep 1, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/453 It can take a while to load a model into memory, which currently needs to be done after every api call when using Ollama serve. ggml has a --mlock option that keeps the model in memory, so it can be repeatedly queried without falling out of memory, it would be great if there was a way to do the same with Ollama.
Author
Owner

@spott commented on GitHub (Sep 1, 2023):

I'm no longer experiencing this behavior, I'm going to close this.

<!-- gh-comment-id:1703225002 --> @spott commented on GitHub (Sep 1, 2023): I'm no longer experiencing this behavior, I'm going to close this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#212