最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to change where OLLAMA models are saved on linux - Stack Overflow

programmeradmin3浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 2

export OLLAMA_MODELS="/path/to/models"

you need to set this environment variable

发布评论

评论列表(0)

  1. 暂无评论