Where Ollama, LM Studio and Hugging Face Models Live on a Mac

A local model is just a large file you can download again. The trick is removing it with the tool that placed it.

Model Ollama, LM Studio và Hugging Face trên Mac nằm ở đâu, gỡ thế nào

A seven-billion-parameter model is a few gigabytes on disk. A second one is a few more. After a month of trying local assistants, Storage settings may show a fat grey slice, or you may notice a hidden folder in your home directory that you do not remember creating.

The files are ordinary downloads. They are not a mysterious “AI cache,” and they are not the system. The useful work is to see which tool placed each model, and to remove only the ones you no longer run, with that tool’s own command. Three tools cover almost every case on a Mac: Ollama, LM Studio, and anything that uses the Hugging Face hub cache.

1. How large a local model really is

Difficulty1 of 5

A comparison of typical on-disk sizes for local AI models, from a 3B model around two gigabytes up to a 70B model of roughly forty gigabytes
One model is a few gigabytes. A handful of them is a serious slice of a 256 GB Mac. Example data.

Open-weight models are stored as large weight files, often in GGUF or a similar format. A small 3B model might be a couple of gigabytes. A 7B or 13B model you actually enjoy chatting with is often 4–8 GB. A 70B model can be tens of gigabytes on its own.

Nothing in System Settings names these folders. They live under your home directory, often in a hidden path, so they tend to land in System Data or simply go unseen. A read-only look at the three usual places:

du -sh ~/.ollama/models ~/.lmstudio/models ~/.cache/huggingface/hub 2>/dev/null

If a path is missing, you do not have that tool’s models, and you can skip its section. If one of them is huge, that is the one to read next.

A local model is a download you can measure. Start by asking which folder is actually large.

2. Ollama: never delete the blob files by hand

Difficulty3 of 5

A Terminal window running ollama list, which prints installed models with their size, and the ollama rm command used to remove one
ollama list only reads. ollama rm is the supported way to remove a model. Example output.

Ollama’s default store is ~/.ollama/models. Official documentation places the models there, and mentions OLLAMA_MODELS if you have moved the store to another disk.

The important detail is how the store is built. Ollama keeps layer blobs that more than one model can share. A 7B chat model and a variant of the same family may point at some of the same files. If you drag the blobs folder to the Trash because it looks large, you can break models you still want.

See what is installed. This only reads:

ollama list

To remove a model you no longer run:

ollama rm model-name

Ollama then drops the blobs that nothing else references, and leaves the ones that other models still need. That is the whole reason to use the command instead of Finder.

Two files next to the store should stay where they are: ~/.ollama/id_ed25519 and its .pub counterpart. Those are keys, not models.

Ollama shares files between models. Remove a model with ollama rm, never by deleting blobs yourself.

3. The Hugging Face hub cache

Difficulty2 of 5

A diagram of the Hugging Face hub cache under ~/.cache/huggingface/hub, with model folders marked rebuildable and the token file marked leave alone
Models in the hub cache can be downloaded again. The token file is a credential. Example data.

Python scripts, notebooks and a number of apps download models into ~/.cache/huggingface/hub. Hugging Face’s own guide to managing that cache is the place to start: it explains how the hub is laid out, and how to list or prune it without wandering through Finder.

A simple, read-only measure:

du -sh ~/.cache/huggingface/hub

If you have the huggingface_hub CLI, hf cache ls (or the equivalent cache command in your installed version) lists what is there. Pruning then removes revisions you no longer need, and the next time a script loads a model, it downloads again. That can take a while for a large checkpoint, which is expected: the files are rebuildable, not unique work.

Leave ~/.cache/huggingface/token and stored_tokens alone. They are sign-in credentials, not models, and they are tiny.

The hub cache is a download folder. Prune models; leave the token.

4. LM Studio’s models folder

Difficulty2 of 5

LM Studio’s models folder, with one directory per publisher and model, each marked as something the app can download again from its Discover tab
LM Studio can fetch a model again from Discover. Example data.

LM Studio keeps what you have downloaded in ~/.lmstudio/models, usually one folder per publisher and model name. There is no shared blob store to trip over, which makes this the most straightforward of the three.

Quit LM Studio first, so you are not deleting a model it has loaded. Then remove the model in the app, or move that model’s folder to the Trash. If you want it later, LM Studio can download it again from its Discover tab.

A read-only look at what is there:

du -hd1 ~/.lmstudio/models 2>/dev/null | sort -h

If LM Studio is not installed and the folder is still large, those are leftovers from an app you already removed, and they will not be read again.

LM Studio’s models are ordinary folders. Quit the app, then remove the ones you no longer run.

Conclusions

Decision diagram with two questions: is its cause still alive, and if you remove it, does it come back
The same two questions you would ask of any large folder on a Mac.

Local models look mysterious only until you name the folder. After that, they sort like any other large download:

  1. Is its cause still alive? A model you still run is doing its job. A model you tried once and forgot is just a file.
  2. If I remove it, does it come back? Yes, as a download, from Ollama, the Hugging Face hub or LM Studio’s Discover tab. Keys and tokens do not; leave them.

Remove the models you no longer run, with the tool that placed them. Leave keys and tokens where they are.

If you would rather see those models listed for you, Haikos Clean shows Hugging Face and LM Studio models with a note that they can be downloaded again, and never ticks them for you. For Ollama, it only shows sizes and a command you can copy, ollama rm, because those models share files on disk. It does not touch your Hugging Face token or Ollama keys. For a wider look at what else hides in System Data, start with What Is System Data on a Mac? The caches that coding tools leave behind are a separate question, covered in Cursor, Claude Code and Codex caches on a Mac.

Questions people ask

Where does Ollama store models on a Mac?

By default, Ollama keeps them in ~/.ollama/models inside your home folder. Official documentation also describes an OLLAMA_MODELS environment variable if you have moved the store. List what is installed with ollama list, which only reads. To remove a model, use ollama rm and the model name, rather than deleting files in Finder. Several models can share the same blob files, so a manual delete can break models you still run.

Is it safe to delete the Hugging Face cache on a Mac?

The files in ~/.cache/huggingface/hub are copies of models and datasets that a script or app can download again the next time it needs them. That can take a while for a large model, but the files themselves are rebuildable. Use the cache commands from huggingface_hub, such as listing and pruning, so you do not touch your sign-in token. The token files next to the hub folder are credentials, not models, and should be left alone.

How do I delete a model I downloaded in LM Studio?

LM Studio keeps downloaded models in ~/.lmstudio/models, usually arranged by publisher and model name. Quit LM Studio first, then remove the model you no longer run, either in the app or by moving that model’s folder to the Trash. LM Studio can download it again later from its Discover tab. If a model is still loaded, wait until the app is closed so you are not deleting a file it has open.

Sources

Paths and commands were checked against these pages on the date above.

Mac storage

Delete Old .dmg and .pkg Installers on a Mac

How to find old .dmg and .pkg installers in Downloads, when it is safe to move them to the Trash, and when an installer is worth keeping on purpose.

5 min read

All guides