Skip to content

Models being saved to /home/myUser/.ollama instead of $OLLAMA_MODELS #3585

Description

@vrdeeznuts

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

  1. sudo mkdir -p /data/models #new path to store models 2. sudo chown myUser:myUser /data/models 3. sudo systemctl edit ollama.service
  2. Enter Environment="OLLAMA_MODELS=/data/models" 5. Save and close systemd service file (saves to /etc/systemd/system/ollama.service.d/override.conf)
  3. Ctrl+C in the terminal running ollama serve
  4. sudo systemctl daemon-reload
  5. sudo systemctl restart ollama
  6. ollama serve in separate terminal
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions