mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Add a 'stop' method to abort model loading #134
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 @willbelr on GitHub (Aug 21, 2024).
When the script is killed while a model is loading, Ollama server will detect that the client connection was closed and abort loading and associated request. A method to achieve this gracefully would be very useful, especially when loading very large model. I tried calling Client._client.close() but without success.