[GH-ISSUE #8555] Request for Custom Installation Directory in Ollama on Windows to Avoid System Drive Space Issues #31282

Closed
opened 2026-04-22 11:35:55 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @lanyur on GitHub (Jan 24, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8555

I hope that the installation of Ollama on Windows can include an option to specify the installation directory. The system drive on Windows often runs out of space due to the Windows update mechanism. Moreover, if there is no configuration to specify the directory during installation, the downloaded large model files will also be installed under the system drive by default, which is very inconvenient.

Originally created by @lanyur on GitHub (Jan 24, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8555 I hope that the installation of Ollama on Windows can include an option to specify the installation directory. The system drive on Windows often runs out of space due to the Windows update mechanism. Moreover, if there is no configuration to specify the directory during installation, the downloaded large model files will also be installed under the system drive by default, which is very inconvenient.
GiteaMirror added the feature request label 2026-04-22 11:35:55 -05:00
Author
Owner

@ag2s20150909 commented on GitHub (Jan 24, 2025):

Changing Install Location

OllamaSetup.exe /DIR=D:\Your desired location 

see Changing Install Location

Changing Model Location

set OLLAMA_MODELS

OLLAMA_MODELS="path to models"

see:Changing Model Location

<!-- gh-comment-id:2611448677 --> @ag2s20150909 commented on GitHub (Jan 24, 2025): Changing Install Location ``` OllamaSetup.exe /DIR=D:\Your desired location ``` see [Changing Install Location](https://github.com/ollama/ollama/blob/main/docs/windows.md#changing-install-location) Changing Model Location set `OLLAMA_MODELS` ``` OLLAMA_MODELS="path to models" ``` see:[Changing Model Location](https://github.com/ollama/ollama/blob/main/docs/windows.md#changing-model-location)
Author
Owner

@lanyur commented on GitHub (Jan 24, 2025):

Changing Install Location

OllamaSetup.exe /DIR=D:\Your desired location 

see Changing Install Location

Changing Model Location

set OLLAMA_MODELS

OLLAMA_MODELS="path to models"

see:Changing Model Location

thank u, i got it

<!-- gh-comment-id:2611543710 --> @lanyur commented on GitHub (Jan 24, 2025): > Changing Install Location > > ``` > OllamaSetup.exe /DIR=D:\Your desired location > ``` > > see [Changing Install Location](https://github.com/ollama/ollama/blob/main/docs/windows.md#changing-install-location) > > Changing Model Location > > set `OLLAMA_MODELS` > > ``` > OLLAMA_MODELS="path to models" > ``` > > see:[Changing Model Location](https://github.com/ollama/ollama/blob/main/docs/windows.md#changing-model-location) thank u, i got it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#31282