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
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/nullIf 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
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 listTo remove a model you no longer run:
ollama rm model-nameOllama 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
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/hubIf 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 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 -hIf 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
Local models look mysterious only until you name the folder. After that, they sort like any other large download:
- 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.
- 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.