-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
Add OLLAMA_HOME
for setting ~/.ollama
#4656
Conversation
OLLAMA_HOME
for setting ~/.ollamaOLLAMA_HOME
for setting ~/.ollama
With regards to #228, while this technically removes "clutter from the user home directory", this is just sweeping that clutter under the rug. I made #4382 to try and address this, but had questions and haven't had any communication from any core contributors. |
I don't think this solution is "just sweeping that clutter under the rug". It is allowing the user to place the files where they want to keep them. Organizing them however they see fit for their system. I personally agree with you that following XDG Base Directory is great and that's how I would do it on my system, by setting |
Except Yes, you can move the models directory, and I get that everything else is so small that it's not a huge deal, but I imagine as Ollama develops more and more will be piled into this one directory. It's not even about using specs just because they're nice. Putting stuff in the proper directories allows easy cleanup of files after uninstall, while keeping configuration. It looks like they are working on desktop applications, meaning a large number of non-terminal users will be trying it out. The average desktop user isn't going to install Ollama, install some 3Gb+ models, then uninstall and know to delete some random directory to free up space, but they might have a cleanup util that would. |
Just 0.02 from a long time Linux user who wants to configure
So I expected So it you can teach |
Hey @abitrolly, you would put |
So what's the point in |
@maaslalani I factored out your |
Fixes #228
This PR adds the optional configuration for
OLLAMA_HOME
to prevent clutteringthe user's home directory.
OLLAMA_HOME
is optional and uses the current behavior if not provided.If
OLLAMA_MODELS
is not explicitly, the default value is~/$OLLAMA_HOME/models
.