[GH-ISSUE #4973] OLLAMA_MODEL_DIR is not reflecting on MacOS #3142

Closed
opened 2026-04-12 13:37:08 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @yusufaly on GitHub (Jun 11, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4973

What is the issue?

I tried both the executable or home brew ollama and in both cases OLLAMA_MODEL_DIR is not reflecting.
launchctl getenv OLLAMA_MODEL_DIR does show the location and I presisted it on a plist file to work after restart.
I have also tried the old school export OLLAMA_MODEL_DIR= in the ~/.zshrc file to no luck.

Not sure what else to do.

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

No response

Originally created by @yusufaly on GitHub (Jun 11, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4973 ### What is the issue? I tried both the executable or home brew ollama and in both cases OLLAMA_MODEL_DIR is not reflecting. launchctl getenv OLLAMA_MODEL_DIR does show the location and I presisted it on a plist file to work after restart. I have also tried the old school export OLLAMA_MODEL_DIR= in the ~/.zshrc file to no luck. Not sure what else to do. ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-12 13:37:09 -05:00
Author
Owner

@pdevine commented on GitHub (Jun 13, 2024):

Hey @yusufaly The env variable is OLLAMA_MODELS. You can get a full list of supported environment variables w/ ollama serve -h.

<!-- gh-comment-id:2166964796 --> @pdevine commented on GitHub (Jun 13, 2024): Hey @yusufaly The env variable is `OLLAMA_MODELS`. You can get a full list of supported environment variables w/ `ollama serve -h`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#3142