[GH-ISSUE #6553] Cannot set custom folder for storing models #50633

Closed
opened 2026-04-28 16:41:13 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @anonymux1 on GitHub (Aug 29, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6553

What is the issue?

I have run sudo systemctl edit ollama.service, and added the following lines using the text editor.

[Service]
Environment = OLLAMA_MODELS = "/home//AI/ollama_models"

i ran systemctl daemon-reload
systemctl restart ollama

Also rebooted, but models are still being stored in /usr/share/ollama/.ollama/models

OS

Linux

GPU

AMD

CPU

Intel

Ollama version

0.3.8

Originally created by @anonymux1 on GitHub (Aug 29, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6553 ### What is the issue? I have run sudo systemctl edit ollama.service, and added the following lines using the text editor. [Service] Environment = OLLAMA_MODELS = "/home/<username>/AI/ollama_models" i ran systemctl daemon-reload systemctl restart ollama Also rebooted, but models are still being stored in /usr/share/ollama/.ollama/models ### OS Linux ### GPU AMD ### CPU Intel ### Ollama version 0.3.8
GiteaMirror added the bug label 2026-04-28 16:41:13 -05:00
Author
Owner

@rick-github commented on GitHub (Aug 29, 2024):

Remove the spaces.

<!-- gh-comment-id:2317600196 --> @rick-github commented on GitHub (Aug 29, 2024): Remove the spaces.
Author
Owner

@vap0rtranz commented on GitHub (Sep 2, 2024):

Remove the spaces.

Thanks for catching this.

For anyone else who bumps into this, the FAQ has an example with syntax for setting env variables:

How Do I Configure Ollama Server

<!-- gh-comment-id:2324589146 --> @vap0rtranz commented on GitHub (Sep 2, 2024): > Remove the spaces. Thanks for catching this. For anyone else who bumps into this, the FAQ has an example with syntax for setting env variables: [How Do I Configure Ollama Server](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-configure-ollama-server)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#50633