[GH-ISSUE #11045] Graceful Handling of Disk Space Issues and Temporary Files for Incomplete Model Downloads #53799

Closed
opened 2026-04-29 04:46:48 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @davidjimenez75 on GitHub (Jun 11, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11045

Currently, Ollama does not check if there is enough available disk space before starting a model download. This can result in the entire hard drive being filled, especially with large models like llama4, which requires around 67 GB of space.

If the download fails due to lack of space or another issue, the following problems arise:

The temporary files remain in the partial download folder, but there is no built-in command to clean them.

Running "ollama rm llama4" does not work, since the model is not considered "installed" yet.

I humbly suggest two improvements:

Ollama should check disk space before starting a model download and warn the user if there is not enough space.

The ollama rm command should allow the removal of incomplete or partial downloads, so users can easily clean up disk space without manually searching for temp files.

This would improve user experience and prevent system issues caused by a full disk. Thank you!

Originally created by @davidjimenez75 on GitHub (Jun 11, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11045 Currently, Ollama does not check if there is enough available disk space before starting a model download. This can result in the entire hard drive being filled, especially with large models like llama4, which requires around 67 GB of space. If the download fails due to lack of space or another issue, the following problems arise: The temporary files remain in the partial download folder, but there is no built-in command to clean them. Running "ollama rm llama4" does not work, since the model is not considered "installed" yet. I humbly suggest two improvements: Ollama should check disk space before starting a model download and warn the user if there is not enough space. The ollama rm command should allow the removal of incomplete or partial downloads, so users can easily clean up disk space without manually searching for temp files. This would improve user experience and prevent system issues caused by a full disk. Thank you!
GiteaMirror added the feature request label 2026-04-29 04:46:48 -05:00
Author
Owner

@rick-github commented on GitHub (Jun 11, 2025):

Restarting the server will perform housekeeping, removing failed or interrupted downloads.

<!-- gh-comment-id:2961824276 --> @rick-github commented on GitHub (Jun 11, 2025): Restarting the server will perform housekeeping, removing failed or interrupted downloads.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#53799