SiftMac
Guide · Updated 21 November 2026

How to move Ollama and LM Studio models to an external drive

By Mohit Nippanikar, who makes SiftMac

The short answer
On this page
  1. Before you start
  2. Move Ollama’s models
  3. Move LM Studio’s models
  4. Hugging Face, and one model in two apps
  5. If something goes wrong
  6. Questions

1. Before you start

See how much there is to move. ollama list shows each Ollama model with its size, and this totals the default folders:

du -sh ~/.ollama/models ~/.lmstudio/models ~/.cache/lm-studio/models 2>/dev/null

2. Move Ollama’s models

On a Mac, Ollama keeps models in ~/.ollama/models: a blobs folder with the model data, and a manifests folder that names each model. Move the whole folder, so the two stay together.

1. Copy the models to the drive

ditto copies what’s inside models into a new folder on the drive:

ditto ~/.ollama/models /Volumes/AIDrive/ollama-models

2. Point Ollama at the new folder

In the Ollama app: open its Settings, and under Model location choose /Volumes/AIDrive/ollama-models. Recent versions of the app have this setting, and pass the folder to Ollama’s server as OLLAMA_MODELS when it starts. Where the app has it, it takes precedence over the environment variable.

Or with the environment variable, the way Ollama’s FAQ describes for the Mac app. Run this, then quit and reopen Ollama:

launchctl setenv OLLAMA_MODELS /Volumes/AIDrive/ollama-models

A value set with launchctl setenv doesn’t survive a restart of the Mac, so run it again afterwards, or use the app’s setting, which the app remembers. If you run ollama serve yourself, put the variable in front of it instead: OLLAMA_MODELS=/Volumes/AIDrive/ollama-models ollama serve.

3. Check, then remove the old copy

Run ollama list: the same models should be there, and one should start with ollama run. Then clear the old folder, in Finder (⇧⌘G, ~/.ollama/models, move what’s inside to the Trash) or in Terminal:

rm -rf ~/.ollama/models/*

Leave the rest of ~/.ollama where it is: Ollama keeps its configuration and logs there. From now on, ollama pull saves new models to the drive.

3. Move LM Studio’s models

LM Studio keeps downloaded models in ~/.lmstudio/models, or ~/.cache/lm-studio/models in older versions: a folder for each publisher, a folder for each model inside it, and the model files inside that. Its docs show this layout, and LM Studio expects it in the new place too. Copy the whole folder:

ditto ~/.lmstudio/models /Volumes/AIDrive/lmstudio-models
  1. Open LM Studio and go to My Models. LM Studio’s docs say that’s where you change the models directory; choose /Volumes/AIDrive/lmstudio-models.
  2. Check that your models are listed and that one loads.
  3. In Finder, move what’s inside the old models folder to the Trash, then empty it.

A GGUF file you downloaded outside LM Studio can be added with lms import <path/to/model.gguf>, which its docs describe as experimental.

4. Hugging Face, and one model in two apps

Python tools that download from Hugging Face keep models in ~/.cache/huggingface/hub. Hugging Face’s docs name the variables that move it: HF_HOME for everything it stores (by default ~/.cache/huggingface), or HF_HUB_CACHE for just the downloaded models. They’re read when a tool starts, so set one in your shell profile, such as ~/.zshrc, and open a new Terminal window:

export HF_HOME=/Volumes/AIDrive/huggingface

Each app keeps models in its own format: Ollama’s blobs, LM Studio’s GGUF files, Hugging Face’s cache. So the same model downloaded in two apps takes its space twice. Pick one app per model, and remove the copies you don’t use with each app’s own command.

5. If something goes wrong

Questions

Can Ollama and LM Studio share one models folder?

No. Ollama stores models as blobs named by their checksum, with manifests that name them; LM Studio expects model files in publisher and model folders. Give each app its own folder; both can sit on the same drive.

Do models run slower from an external drive?

Mostly when a model loads, since that’s when it’s read from the drive. Once loaded, it runs from memory as before. A fast SSD keeps the wait short.

Will new downloads go to the drive?

Yes. Once Ollama’s server is using the new folder, ollama pull saves there, and LM Studio downloads into the models directory you chose.

What happens if I unplug the drive?

The models aren’t there until you plug it back in. Quit the apps before ejecting, and connect the drive before starting them; otherwise Ollama starts with an empty default folder and can download models to your internal disk again.

How SiftMac handles it. Its AI files category lists Ollama, LM Studio and Hugging Face models in their default folders in your home folder, each with its size. Ollama’s are sized by the layers no other model shares, and removed with ollama rm. None is picked for you, and a model you remove is deleted straight away rather than kept on the Undo Shelf, since you can download it again. Models you’ve moved to an external drive are outside its scan, and off your Mac’s own disk.

Download SiftMac · scanning is free, and so is your first 2 GB of cleaning · See how it works