[GH-ISSUE #6596] Unloading a model #4154

Closed
opened 2026-04-12 15:04:33 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @tallesl on GitHub (Sep 2, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6596

Originally assigned to: @pdevine on GitHub.

Is systemctl restart ollama the way to go?

Originally created by @tallesl on GitHub (Sep 2, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6596 Originally assigned to: @pdevine on GitHub. Is `systemctl restart ollama` the way to go?
GiteaMirror added the feature request label 2026-04-12 15:04:33 -05:00
Author
Owner

@rick-github commented on GitHub (Sep 2, 2024):

curl localhost:11434/api/generate -d '{"model":"model-name","keep_alive":0}'

<!-- gh-comment-id:2325209608 --> @rick-github commented on GitHub (Sep 2, 2024): `curl localhost:11434/api/generate -d '{"model":"model-name","keep_alive":0}'`
Author
Owner

@dhiltgen commented on GitHub (Sep 3, 2024):

I believe @pdevine is working on some refined CLI UX to make this a bit easier.

<!-- gh-comment-id:2327429383 --> @dhiltgen commented on GitHub (Sep 3, 2024): I believe @pdevine is working on some refined CLI UX to make this a bit easier.
Author
Owner

@jmorganca commented on GitHub (Sep 4, 2024):

Merging this with https://github.com/ollama/ollama/issues/4764

Until then, you can use with @rick-github suggested! Thanks for the issue.

<!-- gh-comment-id:2330325512 --> @jmorganca commented on GitHub (Sep 4, 2024): Merging this with https://github.com/ollama/ollama/issues/4764 Until then, you can use with @rick-github suggested! Thanks for the issue.
Author
Owner

@pdevine commented on GitHub (Sep 11, 2024):

PR is #6739

<!-- gh-comment-id:2344096455 --> @pdevine commented on GitHub (Sep 11, 2024): PR is #6739
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4154