As far as I understood from , when we download a model through OLLAMA, Ollama models are stored in the ~/.ollama/models directory.
Is there a way to change this default directory, and make OLLAMA read from another directory like ~/projects/foo/modelX/ ? Or can we make the OLLAMA download the model to this directory in the first place?
Thanks!
As far as I understood from https://klu.ai/glossary/ollama, when we download a model through OLLAMA, Ollama models are stored in the ~/.ollama/models directory.
Is there a way to change this default directory, and make OLLAMA read from another directory like ~/projects/foo/modelX/ ? Or can we make the OLLAMA download the model to this directory in the first place?
Thanks!
Share Improve this question edited Feb 17 at 8:27 alift asked Feb 17 at 7:52 aliftalift 1,9402 gold badges15 silver badges28 bronze badges1 Answer
Reset to default 2export OLLAMA_MODELS="/path/to/models"
you need to set this environment variable