mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 17:15:23 -04:00
Stop a Currently Running Model #254
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wesley-sappington on GitHub (Apr 2, 2025).
Hi all!
Quick question/feature request:
Can I stop running a model while it's running? (aka cancel a request) Sometimes my model takes so long to process, and new information comes in that warrants me canceling and re-prompting.
Importantly, I don't want this stopping function to unload the model from memory.
Thanks!
@sussynk commented on GitHub (Jul 3, 2025):
Not sure if I understand you correctly, but you can interrupt the model with the control + c keyboard shortcut, and control + d to exit the model if needed.