Skip to content

How-ToSSD

How to Move Ollama Models to Another Drive on Windows (OLLAMA_MODELS)

Ollama stores models in C:\Users\<name>\.ollama\models by default. To use another drive, quit Ollama, set a user environment variable called OLLAMA_MODELS to a folder on that drive, then restart Ollama and check with ollama ls. Re-pull models or copy the old folder across, keeping the original until it works.

By , Editorial team

2 min read

How to Move Ollama Models to Another Drive on Windows (OLLAMA_MODELS)

Local language models are big. Ollama's own Windows documentation warns that models can take tens to hundreds of GB, and by default they all live on your system drive. If C: is filling up, you can tell Ollama to use another drive with one environment variable. This guide follows Ollama's official documentation; Forge PC hasn't tested every drive or set-up.

Where Ollama keeps models

Ollama's FAQ lists the default model folder on Windows as:

C:\Users\%username%\.ollama\models

The Ollama app itself installs in your home directory (under %LOCALAPPDATA%\Programs\Ollama) and doesn't need Administrator rights. Moving the models doesn't move the app.

Step 1: choose a drive and make a folder

Pick a drive with plenty of free space; an internal SSD is a sensible home for files this large. Create a folder such as D:\OllamaModels. If you're adding a drive for this, our guide to installing an M.2 SSD covers the hardware side and best 2TB SSDs suggests sensible capacities.

Step 2: quit Ollama

Ollama's docs say to quit Ollama first by clicking its icon in the taskbar and choosing Quit.

Step 3: set OLLAMA_MODELS

  1. Open Settings and search for environment variables.

  2. Click Edit environment variables for your account.

  3. Under your user variables, click New. Set the name to OLLAMA_MODELS and the value to your new folder, for example D:\OllamaModels.

  4. Click OK to save.

Step 4: move your existing models (optional)

Ollama's docs explain how to change the location but don't describe moving existing files. The simplest documented route is to re-download the models you need with ollama pull after the change. If you have a slow connection, copying the contents of the old models folder into the new one while Ollama is closed is a common approach, but keep the old copy until you've confirmed ollama ls lists your models.

Step 5: restart Ollama and check

Start Ollama again from the Start menu (or open a new terminal started after you saved the variable, as Ollama's Windows docs advise). Run:

ollama ls

Your models should appear. If the list is empty, check the variable name and path for typos and that you restarted Ollama after saving it. Our guide to managing Ollama models covers removing models you no longer need.

Good to know

  • Ollama's Windows docs note that if you've changed the OLLAMA_MODELS location, the uninstaller won't remove your downloaded models, so delete the folder yourself if you uninstall.

Our verdict

To move Ollama's models off C:, quit Ollama, set a user environment variable called OLLAMA_MODELS pointing at a folder on another drive, copy your existing models across if you want to keep them, then restart Ollama and run ollama list. It takes a few minutes and can free tens or hundreds of gigabytes on your system drive.

The bottom line

To move Ollama's models off C:, quit Ollama, set a user environment variable called OLLAMA_MODELS pointing at a folder on another drive, copy your existing models across if you want to keep them, then restart Ollama and run ollama list. It takes a few minutes and can free tens or hundreds of gigabytes on your system drive.

In this article

Sources

  1. 01Ollama, FAQ (Where are models stored? / Setting environment variables on Windows)
  2. 02Ollama, Windows documentation
  3. 03Ollama, CLI reference

About the author

Forge PC Staff

Editorial team

The shared byline for articles researched, written and edited by the Forge PC editorial team. How we source, check and correct our work is set out in our editorial policy.

More from Forge PC Staff

Read next

How to Check Your Wi-Fi Signal Strength in Windows 11

How-To

How to Check Your Wi-Fi Signal Strength in Windows 11

Check Wi-Fi signal strength in Windows 11 from the taskbar bars, Settings > Network & internet, or exactly with netsh wlan show interfaces (the Signal percentage). Windows Central treats 80-100% as reliable and below 60% as weak. netsh wlan show wlanreport summarises recent wireless sessions.

Forge PC Staff2 min

How to Fix Windows Search Not Working in Windows 11

How-To

How to Fix Windows Search Not Working in Windows 11

If Windows 11 search stops finding files or apps, follow Microsoft's fixes in order: end SearchHost.exe in Task Manager, install updates, run the Search and Indexing troubleshooter, check Classic or Enhanced indexed locations, then rebuild the index and allow up to 24 hours.

Forge PC Staff3 min

How to Turn On the New Run Dialog in Windows 11 (and What's Changed)

How-To

How to Turn On the New Run Dialog in Windows 11 (and What's Changed)

Windows 11's KB5132057 preview update adds an opt-in redesigned Run dialog with Fluent Design, dark mode, a ~\ shortcut to your user folder and, by Microsoft's measurement, a 94ms median time-to-show. Turn it on in Settings > System > Advanced > New Run dialog, and off again the same way.

Forge PC Staff2 min

MBR vs GPT: Which Partition Style Should Your SSD Use in Windows 11?

Versus

MBR vs GPT: Which Partition Style Should Your SSD Use in Windows 11?

GPT is the modern partition style: Windows allows up to 128 partitions, each with a unique GUID, and 64-bit Windows boots from GPT on UEFI systems. MBR supports four primary partition entries and suits only very old hardware. Microsoft's MBR2GPT converts a system disk without deleting data.

Forge PC Staff2 min