[PR #897] [MERGED] allow for a configurable ollama model storage directory #36253

Closed
opened 2026-04-22 20:56:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/897
Author: @BruceMacD
Created: 10/24/2023
Status: Merged
Merged: 10/27/2023
Merged by: @BruceMacD

Base: mainHead: brucemacd/ollama-home


📝 Commits (5)

📊 Changes

4 files changed (+37 additions, -21 deletions)

View changed files

📝 api/client.go (+0 -4)
📝 docs/faq.md (+4 -0)
📝 server/images.go (+15 -6)
📝 server/modelpath.go (+18 -11)

📄 Description

  • set OLLAMA_MODELS in the environment that ollama is running in to change where models are stored
  • update docs
$ OLLAMA_MODELS=/Users/bruce/ollama_models ollama serve
# store models in /Users/bruce/ollama_models

Resolves #228 #153

I'll hold off on merging this until #847 is in to avoid causing that PR pain.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/897 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 10/24/2023 **Status:** ✅ Merged **Merged:** 10/27/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/ollama-home` --- ### 📝 Commits (5) - [`c7116f6`](https://github.com/ollama/ollama/commit/c7116f6c550f454ec046947896468e1937fd4140) allow for a configurable ollama models directory - [`eac6bf3`](https://github.com/ollama/ollama/commit/eac6bf3c813ddc1aaff3055a3d660ff500394917) Update faq.md - [`1479090`](https://github.com/ollama/ollama/commit/1479090185e2c3c436876315f086a0d00362db55) remove models dir validation - [`c9a04df`](https://github.com/ollama/ollama/commit/c9a04dfb09dfae2b4eed75f7d57a082687f7a241) Update modelpath.go - [`40fe04a`](https://github.com/ollama/ollama/commit/40fe04a5be35d21f082263c2899e03c4ee688b43) PR feedback ### 📊 Changes **4 files changed** (+37 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+0 -4) 📝 `docs/faq.md` (+4 -0) 📝 `server/images.go` (+15 -6) 📝 `server/modelpath.go` (+18 -11) </details> ### 📄 Description - set `OLLAMA_MODELS` in the environment that ollama is running in to change where models are stored - update docs ```bash $ OLLAMA_MODELS=/Users/bruce/ollama_models ollama serve # store models in /Users/bruce/ollama_models ``` Resolves ~#228~ #153 I'll hold off on merging this until #847 is in to avoid causing that PR pain. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-22 20:56:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#36253