A way to keep the model longer around? #551
-
Is there a setting to make sure Ollama keeps the model in memory longer? A way to set a time range? |
Beta Was this translation helpful? Give feedback.
Answered by
ItzCrazyKns
Jan 5, 2025
Replies: 1 comment 3 replies
-
If you run only one model only you can tell Ollama to keep it loaded in Memory for a longer time after the model request with the parameter Keep_alive (default 5 minutes) There is no indication but you can try time in seconds and pass the parameter when you first run Ollama in your system |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a setting in the config.toml file called
KEEP_ALIVE
, you can use it to specify how long you want the model to be loaded for. https://github.com/ItzCrazyKns/Perplexica/blob/master/sample.config.toml#L4