Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to install ollama and download models on a external SSD on mac M1 ? #1625

Closed
pramitsawant opened this issue Dec 20, 2023 · 6 comments

Comments

@pramitsawant
Copy link

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 ?

@mattbisme
Copy link

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

@justinh-rahb
Copy link
Contributor

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.

@prantlf
Copy link

prantlf commented Dec 21, 2023

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

@easp
Copy link
Contributor

easp commented 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.

@technovangelist
Copy link
Contributor

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.

@hasandenizuk
Copy link

hasandenizuk commented Feb 23, 2024

Any updates on this? I have a full C drive
edit: Solved: #2551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants