We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consider using Ollama's new unload / stop command for unloading
their docs:
ollama ps
ollama stop llama3.1
If an empty prompt is provided and the keep_alive parameter is set to 0, a model will be unloaded from memory.
keep_alive
0
curl http://localhost:11434/api/generate -d '{ "model": "llama3.1", "keep_alive": 0 }'
A single JSON object is returned:
{ "model": "llama3.1", "created_at": "2024-09-12T03:54:03.516566Z", "response": "", "done": true, "done_reason": "unload" }
If the messages array is empty and the keep_alive parameter is set to 0, a model will be unloaded from memory.
curl http://localhost:11434/api/chat -d '{ "model": "llama3.1", "messages": [], "keep_alive": 0 }'
{ "model": "llama3.1", "created_at":"2024-09-12T21:33:17.547535Z", "message": { "role": "assistant", "content": "" }, "done_reason": "unload", "done": true }
The text was updated successfully, but these errors were encountered:
sammcj
No branches or pull requests
Description
consider using Ollama's new unload / stop command for unloading
their docs:
List which models are currently loaded
Stop a model which is currently running
Unload a model
If an empty prompt is provided and the
keep_alive
parameter is set to0
, a model will be unloaded from memory.Request
Response
A single JSON object is returned:
Unload a model
If the messages array is empty and the
keep_alive
parameter is set to0
, a model will be unloaded from memory.Request
Response
A single JSON object is returned:
The text was updated successfully, but these errors were encountered: