[GH-ISSUE #1723] Ollama is not loading models from Symlinked folders #978

Closed
opened 2026-04-12 10:40:19 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @gerroon on GitHub (Dec 27, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1723

Hi

Is it possible that OIlama is against symlinked that are coming from network drives? Is there a OS locked IO that would prevent such a thing? I am using WSL2 on Win 10, I am symlinking the ~/.ollama folder to a network drive location since my VM drive is limited for all the models.

Ollama serve works but querying does not load any answers.

Originally created by @gerroon on GitHub (Dec 27, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1723 Hi Is it possible that OIlama is against symlinked that are coming from network drives? Is there a OS locked IO that would prevent such a thing? I am using WSL2 on Win 10, I am symlinking the `~/.ollama` folder to a network drive location since my VM drive is limited for all the models. Ollama serve works but querying does not load any answers.
Author
Owner

@technovangelist commented on GitHub (Dec 27, 2023):

Hi @gerroon , thanks for submitting the issue. If the models are in the correct location, is it working as expected? Have you tried using the OLLAMA_MODELS environment variable? Take a look at https://github.com/jmorganca/ollama/blob/main/docs/faq.md#how-do-i-set-them-to-a-different-location for instructions on this. There is a question above that for how to set the environment variables on linux which is what wsl2 is running. Let us know if that works for you.

<!-- gh-comment-id:1869965102 --> @technovangelist commented on GitHub (Dec 27, 2023): Hi @gerroon , thanks for submitting the issue. If the models are in the correct location, is it working as expected? Have you tried using the OLLAMA_MODELS environment variable? Take a look at https://github.com/jmorganca/ollama/blob/main/docs/faq.md#how-do-i-set-them-to-a-different-location for instructions on this. There is a question above that for how to set the environment variables on linux which is what wsl2 is running. Let us know if that works for you.
Author
Owner

@gerroon commented on GitHub (Dec 27, 2023):

Thanks I did not think about it, I will take a look at it.

<!-- gh-comment-id:1869969611 --> @gerroon commented on GitHub (Dec 27, 2023): Thanks I did not think about it, I will take a look at it.
Author
Owner

@technovangelist commented on GitHub (Dec 28, 2023):

Did that solve your issue @gerroon ?

<!-- gh-comment-id:1871500964 --> @technovangelist commented on GitHub (Dec 28, 2023): Did that solve your issue @gerroon ?
Author
Owner

@gerroon commented on GitHub (Dec 28, 2023):

I moved to a local drive with symlink, it works. SO symlinking is not the issue but one from a networked drive seems to be.

<!-- gh-comment-id:1871540931 --> @gerroon commented on GitHub (Dec 28, 2023): I moved to a local drive with symlink, it works. SO symlinking is not the issue but one from a networked drive seems to be.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#978