[GH-ISSUE #1270] Specify where to download and look for models #62688

Closed
opened 2026-05-03 09:58:18 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @Talleyrand-34 on GitHub (Nov 25, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1270

Originally created by @Talleyrand-34 on GitHub (Nov 25, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1270
Author
Owner

@igorschlum commented on GitHub (Nov 25, 2023):

Hi @Talleyrand-34 could you provide a description or close this Issu?
If your question is related on where your models are stored on you computer, on mac they are store in this folder.
/Users/igor/.ollama/models/manifests/registry.ollama.ai/library

<!-- gh-comment-id:1826261031 --> @igorschlum commented on GitHub (Nov 25, 2023): Hi @Talleyrand-34 could you provide a description or close this Issu? If your question is related on where your models are stored on you computer, on mac they are store in this folder. /Users/igor/.ollama/models/manifests/registry.ollama.ai/library
Author
Owner

@Talleyrand-34 commented on GitHub (Nov 25, 2023):

Sorry for not being accurate enough. When pulling and running models add the option (flag in cli) to specify where to download temporary and final files

<!-- gh-comment-id:1826364268 --> @Talleyrand-34 commented on GitHub (Nov 25, 2023): Sorry for not being accurate enough. When pulling and running models add the option (flag in cli) to specify where to download temporary and final files
Author
Owner

@technovangelist commented on GitHub (Nov 26, 2023):

All models are saved to the directory @igorschlum mentioned on mac, or to /usr/share/ollama/.ollama/models on Linux. Or if you set OLLAMA_MODELS, then you can put them anywhere.

<!-- gh-comment-id:1826466448 --> @technovangelist commented on GitHub (Nov 26, 2023): All models are saved to the directory @igorschlum mentioned on mac, or to /usr/share/ollama/.ollama/models on Linux. Or if you set OLLAMA_MODELS, then you can put them anywhere.
Author
Owner

@igorschlum commented on GitHub (Nov 26, 2023):

@technovangelist Is it possible to share LLM files between different users on MacOS? They could be put in

/Users/Shared/Library/Application\ Support

<!-- gh-comment-id:1826735032 --> @igorschlum commented on GitHub (Nov 26, 2023): @technovangelist Is it possible to share LLM files between different users on MacOS? They could be put in /Users/Shared/Library/Application\ Support
Author
Owner

@Talleyrand-34 commented on GitHub (Nov 26, 2023):

(1)(deck@steamdeck test)$ OLLAMA_HOME=~/.ollama/models/
(deck@steamdeck test)$ ollama pull orca-mini
pulling manifest
pulling 66002b78c70a... 39% ▕███████████████████████████████ ▏(780 MB/2.0 GB, 3.6 MB/s) [5m8s:1m8s]
Error: write /usr/share/ollama/.ollama/models/blobs/sha256:66002b78c70a22ab25e16cc9a1736c6cc6335398c7312e3eb33db202350afe66-partial: no space left on device

a way to specify the download path?

Also i suggest this should be done from cli

<!-- gh-comment-id:1826764649 --> @Talleyrand-34 commented on GitHub (Nov 26, 2023): (1)(deck@steamdeck test)$ OLLAMA_HOME=~/.ollama/models/ (deck@steamdeck test)$ ollama pull orca-mini pulling manifest pulling 66002b78c70a... 39% ▕███████████████████████████████ ▏(780 MB/2.0 GB, 3.6 MB/s) [5m8s:1m8s] Error: write /usr/share/ollama/.ollama/models/blobs/sha256:66002b78c70a22ab25e16cc9a1736c6cc6335398c7312e3eb33db202350afe66-partial: no space left on device a way to specify the download path? Also i suggest this should be done from cli
Author
Owner

@technovangelist commented on GitHub (Dec 8, 2023):

You included the solution in your example. You need to set OLLAMA_MODELS. But you need to set it for the serve process. I assume you are on Linux, so check out https://github.com/jmorganca/ollama/blob/main/docs/faq.md#how-can-i-change-where-ollama-stores-models

<!-- gh-comment-id:1847975807 --> @technovangelist commented on GitHub (Dec 8, 2023): You included the solution in your example. You need to set OLLAMA_MODELS. But you need to set it for the `serve` process. I assume you are on Linux, so check out https://github.com/jmorganca/ollama/blob/main/docs/faq.md#how-can-i-change-where-ollama-stores-models
Author
Owner

@Talleyrand-34 commented on GitHub (Dec 12, 2023):

You included the solution in your example. You need to set OLLAMA_MODELS. But you need to set it for the serve process. I assume you are on Linux, so check out https://github.com/jmorganca/ollama/blob/main/docs/faq.md#how-can-i-change-where-ollama-stores-models

It is not the solution, i want to specify where to download models and where the temporary folder should be place. As it is seen in my previous message the process fails due to i cannot specify the temporal folder. When i revised the code i saw that the temporary folder could not be modified by any chance, it is a string embedded in the code

<!-- gh-comment-id:1852727344 --> @Talleyrand-34 commented on GitHub (Dec 12, 2023): > You included the solution in your example. You need to set OLLAMA_MODELS. But you need to set it for the `serve` process. I assume you are on Linux, so check out https://github.com/jmorganca/ollama/blob/main/docs/faq.md#how-can-i-change-where-ollama-stores-models It is not the solution, i want to specify where to download models and where the temporary folder should be place. As it is seen in my previous message the process fails due to i cannot specify the temporal folder. When i revised the code i saw that the temporary folder could not be modified by any chance, it is a string embedded in the code
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#62688