ollama icon indicating copy to clipboard operation
ollama copied to clipboard

config for the server to change the location of the models

Open aemonge opened this issue 1 year ago • 3 comments

Can we have a /etc/ollama.json file to change the default path for the models?

aemonge avatar Jan 12 '24 14:01 aemonge

This could be useful for migration scenarios.

oliverbob avatar Jan 15 '24 11:01 oliverbob

@aemonge you can change this right now with the OLLAMA_MODELS env variable. What platform are you using?

pdevine avatar Jan 15 '24 22:01 pdevine

I'm using arch linux.

I know, I can change individual MODEL settings, but would be nice to have a global config

aemonge avatar Jan 16 '24 11:01 aemonge

@aemonge you can change this right now with the OLLAMA_MODELS env variable. What platform are you using?

@pdevine can suggest how i can use this env variable while serving ollama with docker ?

bmabir17 avatar Jan 30 '24 20:01 bmabir17

@aemonge the OLLAMA_MODELS environment variable isn't a per-model setting. It's global. https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-set-them-to-a-different-location

easp avatar Jan 30 '24 20:01 easp

But what if we not only choose the location of the model but "migrate" the entire model entries? Docs for permissions, rsync or whatever should be included, because by nature, "ollama" is "bound" to scale.

oliverbob avatar Jan 31 '24 01:01 oliverbob

Thanks for the clarification @easp

aemonge avatar Feb 01 '24 14:02 aemonge