You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched existing ideas and did not find a similar one
I added a very descriptive title
I've clearly described the feature request and motivation for it
Feature request
Ollama provides a parameter when making a curl request called keep_alive that takes a number in seconds or any negative number to keep it alive forever. This parameter should be added when defining an Ollama llm.
Motivation
This will make sure the model stays loaded for the amount of time specified and speeds up concurrent calls. There doesn't seem to be a way to set this on the server and is done only through the request, so it would be nice to customize that when using Ollama with langchain. It does seem like there is a keep alive parameter built into the request already as the model does not offload immediately, but specifying a time would be nice for production applications.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Ollama provides a parameter when making a curl request called keep_alive that takes a number in seconds or any negative number to keep it alive forever. This parameter should be added when defining an Ollama llm.
Motivation
This will make sure the model stays loaded for the amount of time specified and speeds up concurrent calls. There doesn't seem to be a way to set this on the server and is done only through the request, so it would be nice to customize that when using Ollama with langchain. It does seem like there is a keep alive parameter built into the request already as the model does not offload immediately, but specifying a time would be nice for production applications.
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions