[GH-ISSUE #8684] OLLAMA_MODELS env variable not working to customize the models download path #5627

Closed
opened 2026-04-12 16:54:21 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @siddharthdashore on GitHub (Jan 30, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8684

What is the issue?

I'm trying to update the OLLAMA_MODELS env variable based models download path on my MacBook Pro M4 Pro 24GB/512GB, but after following commands it's still taking the default path.

Commands:

  1. Stop Ollama App
  2. vi ~/.zshrc
  3. add: export OLLAMA_MODELS="/Volumes/Extreme-Pro/GenAI-Helper/ollama/models"
  4. source ~/.zshrc
  5. Start Ollama App
  6. ollama pull phi4

After above steps, i'm expecting ollama should use my external SSD based path from zshrc but it's still using the default path (/Users/siddharthdashore/.ollama/models)

Workaround:
Create a Symbolic Link (ln -s /Volumes/Extreme-Pro/GenAI-Helper/ollama/models /Users/siddharthdashore/.ollama/models)

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.5.7

Originally created by @siddharthdashore on GitHub (Jan 30, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8684 ### What is the issue? I'm trying to update the OLLAMA_MODELS env variable based models download path on my MacBook Pro M4 Pro 24GB/512GB, but after following commands it's still taking the default path. **Commands:** 1. Stop Ollama App 2. vi ~/.zshrc 3. add: export OLLAMA_MODELS="/Volumes/Extreme-Pro/GenAI-Helper/ollama/models" 4. source ~/.zshrc 5. Start Ollama App 6. ollama pull phi4 After above steps, i'm expecting ollama should use my external SSD based path from zshrc but it's still using the default path (/Users/siddharthdashore/.ollama/models) **Workaround:** Create a Symbolic Link (ln -s /Volumes/Extreme-Pro/GenAI-Helper/ollama/models /Users/siddharthdashore/.ollama/models) ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.5.7
GiteaMirror added the bug label 2026-04-12 16:54:21 -05:00
Author
Owner

@rick-github commented on GitHub (Jan 30, 2025):

https://github.com/ollama/ollama/issues/8520

<!-- gh-comment-id:2623353899 --> @rick-github commented on GitHub (Jan 30, 2025): https://github.com/ollama/ollama/issues/8520
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5627