[GH-ISSUE #1953] config for the server to change the location of the models #63165

Closed
opened 2026-05-03 12:21:00 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @aemonge on GitHub (Jan 12, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/1953

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

Originally created by @aemonge on GitHub (Jan 12, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/1953 Can we have a /etc/ollama.json file to change the default path for the models?
Author
Owner

@oliverbob commented on GitHub (Jan 15, 2024):

This could be useful for migration scenarios.

<!-- gh-comment-id:1891996078 --> @oliverbob commented on GitHub (Jan 15, 2024): This could be useful for migration scenarios.
Author
Owner

@pdevine commented on GitHub (Jan 15, 2024):

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

<!-- gh-comment-id:1892850807 --> @pdevine commented on GitHub (Jan 15, 2024): @aemonge you can change this right now with the `OLLAMA_MODELS` env variable. What platform are you using?
Author
Owner

@aemonge commented on GitHub (Jan 16, 2024):

I'm using arch linux.

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

<!-- gh-comment-id:1893553614 --> @aemonge commented on GitHub (Jan 16, 2024): I'm using arch linux. I know, I can change individual MODEL settings, but would be nice to have a global config
Author
Owner

@bmabir17 commented on GitHub (Jan 30, 2024):

@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 ?

<!-- gh-comment-id:1917825623 --> @bmabir17 commented on GitHub (Jan 30, 2024): > @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 ?
Author
Owner

@easp commented on GitHub (Jan 30, 2024):

@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

<!-- gh-comment-id:1917859468 --> @easp commented on GitHub (Jan 30, 2024): @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
Author
Owner

@oliverbob commented on GitHub (Jan 31, 2024):

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.

<!-- gh-comment-id:1918226545 --> @oliverbob commented on GitHub (Jan 31, 2024): 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.
Author
Owner

@aemonge commented on GitHub (Feb 1, 2024):

Thanks for the clarification @easp

<!-- gh-comment-id:1921529656 --> @aemonge commented on GitHub (Feb 1, 2024): Thanks for the clarification @easp
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#63165