What is the issue?
I've followed the instructions at https://github.com/ollama/ollama/blob/main/docs/faq.md#where-are-models-stored on Linux to change the path where models get stored. However, the model storage path changed from /usr/share/ollama/.ollama/models in the initial install to ~/.ollama/models. The absolute path I want to save the models to is /data/models.
What did you expect to see?
I expected to see the blobs/ and manifests/ directories moved to /data/models, not to ~/.ollama/models.
Steps to reproduce
sudo mkdir -p /data/models #new path to store models 2. sudo chown myUser:myUser /data/models 3. sudo systemctl edit ollama.service
- Enter
Environment="OLLAMA_MODELS=/data/models" 5. Save and close systemd service file (saves to /etc/systemd/system/ollama.service.d/override.conf)
- Ctrl+C in the terminal running
ollama serve
sudo systemctl daemon-reload
sudo systemctl restart ollama
ollama serve in separate terminal
ollama show stablelm2:latest #new models/ path is /home/myUser/.ollama/models
Are there any recent changes that introduced the issue?
N/A, I tested this out with a fresh install of Ollama using curl -fsSL https://ollama.com/install.sh | sh.
OS
Linux
Architecture
No response
Platform
No response
Ollama version
0.1.31
GPU
Nvidia
GPU info
NVIDIA RTX A6000 (48GB)
CPU
No response
Other software
N/A
What is the issue?
I've followed the instructions at https://github.com/ollama/ollama/blob/main/docs/faq.md#where-are-models-stored on Linux to change the path where models get stored. However, the model storage path changed from /usr/share/ollama/.ollama/models in the initial install to ~/.ollama/models. The absolute path I want to save the models to is /data/models.
What did you expect to see?
I expected to see the blobs/ and manifests/ directories moved to /data/models, not to ~/.ollama/models.
Steps to reproduce
sudo mkdir -p /data/models #new path to store models2.sudo chown myUser:myUser /data/models3.sudo systemctl edit ollama.serviceEnvironment="OLLAMA_MODELS=/data/models"5. Save and close systemd service file (saves to/etc/systemd/system/ollama.service.d/override.conf)ollama servesudo systemctl daemon-reloadsudo systemctl restart ollamaollama servein separate terminalollama show stablelm2:latest #new models/ path is /home/myUser/.ollama/modelsAre there any recent changes that introduced the issue?
N/A, I tested this out with a fresh install of Ollama using
curl -fsSL https://ollama.com/install.sh | sh.OS
Linux
Architecture
No response
Platform
No response
Ollama version
0.1.31
GPU
Nvidia
GPU info
NVIDIA RTX A6000 (48GB)
CPU
No response
Other software
N/A