Ollama for Windows is still at the pre-prod stage at the time of this writing, so there are some known (and definitely lots of unknown) bugs. One issue I ran into was the size of the “models” folder and how to move it to another disk.

The default location of the models folder is C:\Users\%username%\.ollama\models. Knowing how Windows likes disk space, chances are, your drive “C” is packed as a clown car at a circus convention, and some Ollama model files can be tens of gigabytes in size.

Unless you plan on living forever and have the patience of a saint, I wouldn’t recommend relocating this folder to a network drive. Make sure you have a large SSD attached to your computer’s fastest data port.

The official way of moving the Ollama “models” folder under Windows calls for the creation of a new user environmental variable:

  1. Open “Windows Settings.”
  2. Go to “System.”
  3. Select “About.”
  4. Select “Advanced System Settings.”
  5. Go to the “Advanced” tab (now you’re really advanced).
  6. Select Environment Variables.
  7. Click on New.
  8. Create a variable called OLLAMA_MODELS pointing to where you want to store the models.
  9. This being Windows and all, reboot your PC.

However, if this method actually works for you, then Ollama devs must’ve fixed something in their code, or you’re using a version of Windows created by Microsoft from a parallel universe without Bill Gates.

Here’s a more sysadmin-style approach that has no choice but to succeed. First, right-click on that Ollama icon in the system tray and select “Quit Ollama.” If you’re using Open WebUI running via a Docker container, you’ll need to stop it.

Now, move your existing “models” folder from the original locations to its new home. Once this is done, open cmd.exe in admin mode and create a link like so (adjust the parameters to match your configuration):

mklink /D C:\Users\username\.ollama\models D:\Docker\Ollama\Models

The rest is simple: start Ollama and the WebUI Docker container. Now, you can download all the models your heart desires until you run out of space on your new disk.