[GH-ISSUE #1625] Is there a way to install ollama and download models on a external SSD on mac M1 ? #902

Closed
opened 2026-04-12 10:34:44 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @pramitsawant on GitHub (Dec 20, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1625

On Macbook Pro M1
The models are downloaded to this path /Users/{username}/.ollama/models/manifests/registry.ollama.ai/library

I use a external ssd where i download and keep all less recently used apps and other files.

can we have an option to set model download path ?

Originally created by @pramitsawant on GitHub (Dec 20, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1625 On Macbook Pro M1 The models are downloaded to this path /Users/{username}/.ollama/models/manifests/registry.ollama.ai/library I use a external ssd where i download and keep all less recently used apps and other files. can we have an option to set model download path ?
Author
Owner

@mattbisme commented on GitHub (Dec 20, 2023):

This is a good idea. I don't seem to recall a configuration option for putting the models on another location.

<!-- gh-comment-id:1864917889 --> @mattbisme commented on GitHub (Dec 20, 2023): This is a good idea. I don't seem to recall a configuration option for putting the models on another location.
Author
Owner

@justinh-rahb commented on GitHub (Dec 20, 2023):

In the meantime, you could use LM Studio to download and store models elsewhere and create custom modelfiles to import them. You won't have the advantage of the ollama model download management of course, but it'll accomplish your goal.

<!-- gh-comment-id:1865048590 --> @justinh-rahb commented on GitHub (Dec 20, 2023): In the meantime, you could use LM Studio to download and store models elsewhere and create custom modelfiles to import them. You won't have the advantage of the ollama model download management of course, but it'll accomplish your goal.
Author
Owner

@prantlf commented on GitHub (Dec 21, 2023):

You could try symlinking ~/.ollama to your external disk.

<!-- gh-comment-id:1866103601 --> @prantlf commented on GitHub (Dec 21, 2023): You could try symlinking `~/.ollama` to your external disk.
Author
Owner

@easp commented on GitHub (Dec 22, 2023):

Symlinking ~/.ollama or ~/.ollama/models is the best way to go right now.

The ollama app will use the value of the OLLAMA_MODELS environment variable if you launch it from a shell like soOLLAMA_MODELS=DIRPATH start /Applications/Ollama.app , but the problem is that there is no good way to set the variable that works across restarts. You have to disable the normal Launch at Login functionality and instead set up your own launchd job.

<!-- gh-comment-id:1867136337 --> @easp commented on GitHub (Dec 22, 2023): Symlinking ~/.ollama or ~/.ollama/models is the best way to go right now. The ollama app will use the value of the OLLAMA_MODELS environment variable if you launch it from a shell like so`OLLAMA_MODELS=DIRPATH start /Applications/Ollama.app` , but the problem is that there is no good way to set the variable that works across restarts. You have to disable the normal Launch at Login functionality and instead set up your own launchd job.
Author
Owner

@technovangelist commented on GitHub (Jan 3, 2024):

hi @pramitsawant It looks like the comment from @easp solves your issue. That is, in fact, the right way to achieve this. I'll go ahead and close this issue, but if you still have a problem, reopen, and we can continue to look at it. There is a FAQ in the Ollama docs that covers how to set environment variables on different platforms. Thanks so much for being part of this great community.

<!-- gh-comment-id:1875883233 --> @technovangelist commented on GitHub (Jan 3, 2024): hi @pramitsawant It looks like the comment from @easp solves your issue. That is, in fact, the right way to achieve this. I'll go ahead and close this issue, but if you still have a problem, reopen, and we can continue to look at it. There is a FAQ in the Ollama docs that covers how to set environment variables on different platforms. Thanks so much for being part of this great community.
Author
Owner

@hasandenizuk commented on GitHub (Feb 23, 2024):

Any updates on this? I have a full C drive
edit: Solved: https://github.com/ollama/ollama/issues/2551

<!-- gh-comment-id:1962133809 --> @hasandenizuk commented on GitHub (Feb 23, 2024): Any updates on this? I have a full C drive edit: **Solved**: https://github.com/ollama/ollama/issues/2551
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#902