[GH-ISSUE #9250] ollama run deepseek-r1:671b it always downloads the model to the default location #31789

Closed
opened 2026-04-22 12:33:30 -05:00 by GiteaMirror · 8 comments
Owner

Originally created by @klyuhang9 on GitHub (Feb 20, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9250

What is the issue?

"I am running ollama run deepseek-r1:671b on Linux, and it always downloads the model to the default location. How can I customize the download location? I have tried setting the environment variable using export OLLAMA_MODELS_DIR=/search/odin3/klyuhangwu/llm/model, but it doesn't seem to work. What might I be doing wrong, or is there another way to specify a custom path for the models?" Thanks~

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @klyuhang9 on GitHub (Feb 20, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9250 ### What is the issue? "I am running ollama run deepseek-r1:671b on Linux, and it always downloads the model to the default location. How can I customize the download location? I have tried setting the environment variable using export OLLAMA_MODELS_DIR=/search/odin3/klyuhangwu/llm/model, but it doesn't seem to work. What might I be doing wrong, or is there another way to specify a custom path for the models?" Thanks~ ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-22 12:33:30 -05:00
Author
Owner

@rick-github commented on GitHub (Feb 20, 2025):

Set OLLAMA_MODELS (not OLLAMA_MODELS_DIR) in the server environment.

<!-- gh-comment-id:2671519325 --> @rick-github commented on GitHub (Feb 20, 2025): Set [`OLLAMA_MODELS`](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-set-them-to-a-different-location) (not OLLAMA_MODELS_DIR) in the [server environment](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-configure-ollama-server).
Author
Owner

@klyuhang9 commented on GitHub (Feb 21, 2025):

Set OLLAMA_MODELS (not OLLAMA_MODELS_DIR) in the server environment.

I try , not work out, still download in /root/.ollama/models

<!-- gh-comment-id:2673258365 --> @klyuhang9 commented on GitHub (Feb 21, 2025): > Set [`OLLAMA_MODELS`](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-set-them-to-a-different-location) (not OLLAMA_MODELS_DIR) in the [server environment](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-configure-ollama-server). I try , not work out, still download in /root/.ollama/models
Author
Owner

@rick-github commented on GitHub (Feb 21, 2025):

Server logs may help in debugging.

<!-- gh-comment-id:2673909358 --> @rick-github commented on GitHub (Feb 21, 2025): [Server logs](https://github.com/ollama/ollama/blob/main/docs/troubleshooting.md#how-to-troubleshoot-issues) may help in debugging.
Author
Owner

@klyuhang9 commented on GitHub (Feb 21, 2025):

Server logs may help in debugging.

Hi, I try to open tha log ~/.ollama/logs/server.log, but I find that there is no log in the path ~/.ollama/logs/server.log . My system is linux

<!-- gh-comment-id:2673924285 --> @klyuhang9 commented on GitHub (Feb 21, 2025): > [Server logs](https://github.com/ollama/ollama/blob/main/docs/troubleshooting.md#how-to-troubleshoot-issues) may help in debugging. Hi, I try to open tha log ~/.ollama/logs/server.log, but I find that there is no log in the path ~/.ollama/logs/server.log . My system is linux
Author
Owner

@rick-github commented on GitHub (Feb 21, 2025):

If you system is Linux, then you should follow the instructions for a Linux system.

<!-- gh-comment-id:2673931572 --> @rick-github commented on GitHub (Feb 21, 2025): If you system is Linux, then you should follow the instructions for a Linux system.
Author
Owner

@boris-korotkov commented on GitHub (Mar 8, 2025):

hey guys, what is the default path for the downloaded models in windows?

<!-- gh-comment-id:2707866456 --> @boris-korotkov commented on GitHub (Mar 8, 2025): hey guys, what is the default path for the downloaded models in windows?
Author
Owner
<!-- gh-comment-id:2708104121 --> @rick-github commented on GitHub (Mar 8, 2025): https://github.com/ollama/ollama/blob/main/docs/faq.md#where-are-models-stored
Author
Owner

@boris-korotkov commented on GitHub (Mar 8, 2025):

https://github.com/ollama/ollama/blob/main/docs/faq.md#where-are-models-stored

Thanks a lot Rick!

<!-- gh-comment-id:2708471059 --> @boris-korotkov commented on GitHub (Mar 8, 2025): > https://github.com/ollama/ollama/blob/main/docs/faq.md#where-are-models-stored Thanks a lot Rick!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#31789