[GH-ISSUE #2312] Regarding the issue of ollama run model's default storage path #47847

Closed
opened 2026-04-28 05:30:02 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @chengshenlian on GitHub (Feb 1, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2312

When I attempt to run a large 80GB model using ollama run in a Linux environment, I encounter an issue of insufficient storage space. This is because the model-related files are by default stored in the ~/.ollama directory, and my system partition has limited space for files of this size.
I would like to know if there is a configuration or method available to change the default storage path for model files, allowing me to specify a directory with sufficient space to store these large files. Such a feature would be extremely useful for managing large models, especially in storage-constrained environments.

Originally created by @chengshenlian on GitHub (Feb 1, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2312 When I attempt to run a large 80GB model using ollama run in a Linux environment, I encounter an issue of insufficient storage space. This is because the model-related files are by default stored in the `~/.ollama` directory, and my system partition has limited space for files of this size. I would like to know if there is a configuration or method available to change the default storage path for model files, allowing me to specify a directory with sufficient space to store these large files. Such a feature would be extremely useful for managing large models, especially in storage-constrained environments.
Author
Owner

@bmabir17 commented on GitHub (Feb 1, 2024):

Use 'OLLAMA_MODELS' environment variable to set model path

<!-- gh-comment-id:1921837371 --> @bmabir17 commented on GitHub (Feb 1, 2024): Use 'OLLAMA_MODELS' environment variable to set model path
Author
Owner
<!-- gh-comment-id:1921838684 --> @easp commented on GitHub (Feb 1, 2024): https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-set-them-to-a-different-location
Author
Owner

@pdevine commented on GitHub (Feb 1, 2024):

Going to go ahead and close this.

<!-- gh-comment-id:1922098564 --> @pdevine commented on GitHub (Feb 1, 2024): Going to go ahead and close this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#47847