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!
export OLLAMA_MODELS="/path/to/models"
you need to set this environment variable